summaryrefslogtreecommitdiff
path: root/npc/000-2-1/alige.txt
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2011-12-25 13:06:24 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2011-12-25 13:06:24 +0100
commitd0e1db7a3ead45a97d44154aecebbe9ac297c631 (patch)
tree8cc602905f5ee288a3ebf12d78ed23a9d32e35c5 /npc/000-2-1/alige.txt
parentc376a1a79b50d048aa4bad87ab07143dae77ba4d (diff)
downloadserverdata-d0e1db7a3ead45a97d44154aecebbe9ac297c631.tar.gz
serverdata-d0e1db7a3ead45a97d44154aecebbe9ac297c631.tar.bz2
serverdata-d0e1db7a3ead45a97d44154aecebbe9ac297c631.tar.xz
serverdata-d0e1db7a3ead45a97d44154aecebbe9ac297c631.zip
Fixed Alige talking everytime you step over him
Note that the quest is still broken, since the quest var never gets set to 2.
Diffstat (limited to 'npc/000-2-1/alige.txt')
-rw-r--r--npc/000-2-1/alige.txt30
1 files changed, 20 insertions, 10 deletions
diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt
index 4e0df5657..861d2ea08 100644
--- a/npc/000-2-1/alige.txt
+++ b/npc/000-2-1/alige.txt
@@ -12,19 +12,29 @@
// 0 first talking (before food)
// 1 already talked
-000-2-1.gat,33,31,0,1 script Alige 301,1,1{
+000-2-1.gat,33,33,0,1 script AligeTrigger 0,1,1,{
+ OnTouch:
+ if (geta2(ShipQuests, ShipQuests_Alige) > 0) close;
+ doevent "Alige::OnFirstEncounter";
+ close;
+}
- if (geta2(ShipQuests, ShipQuests_Alige) == 1) goto l_AskForFood;
+000-2-1.gat,33,31,0,1 script Alige 301,{
- mesn l("Hidden person");
- mesq l("Hey, psst! You're not a sailor, right?");
+ if (geta2(ShipQuests, ShipQuests_Alige) == 2) goto l_AskForFood;
+ goto OnFirstEncounter;
- menu
- l("I am, who are you?"), -,
- l("I'm not."), l_NeedHelp;
+ OnFirstEncounter:
+ seta2 ShipQuests, ShipQuests_Alige, 1;
+ mesn l("Hidden person");
+ mesq l("Hey, psst! You're not a sailor, right?");
- mesn l("Hidden person doesn't answer");
- close;
+ menu
+ l("I am, who are you?"), -,
+ l("I'm not."), l_NeedHelp;
+
+ mesn l("Hidden person doesn't answer");
+ close;
l_NeedHelp:
@@ -66,7 +76,7 @@
next;
- if (geta2(ShipQuests, ShipQuests_Alige) == 1) goto l_AskForFood;
+ if (geta2(ShipQuests, ShipQuests_Alige) == 2) goto l_AskForFood;
goto l_Accept;