summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-09-04 01:49:13 +0200
committerReid <reidyaro@gmail.com>2012-09-04 01:49:13 +0200
commit11559679db9c2cff7838076d52b05ad19dd529e5 (patch)
treea7180c51019213fb55c0ea9486bd500eb36c37f3 /npc
parent8f4a49ef6c68e41f3d6d93a2055a80e213453d17 (diff)
downloadserverdata-11559679db9c2cff7838076d52b05ad19dd529e5.tar.gz
serverdata-11559679db9c2cff7838076d52b05ad19dd529e5.tar.bz2
serverdata-11559679db9c2cff7838076d52b05ad19dd529e5.tar.xz
serverdata-11559679db9c2cff7838076d52b05ad19dd529e5.zip
Remove ShipQuests_TreasureChest const, and replace it by the fourth value of ShipQuests_Darlin.
Diffstat (limited to 'npc')
-rw-r--r--npc/000-1/chest.txt20
-rw-r--r--npc/000-1/darlin.txt17
2 files changed, 20 insertions, 17 deletions
diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt
index a6cc1ca4..984c8a80 100644
--- a/npc/000-1/chest.txt
+++ b/npc/000-1/chest.txt
@@ -4,16 +4,18 @@
// Hal9000
// Reid
// Description:
-// An opening treasure chest.
-// Variable:
-// ShipQuests_TreasureChest
-// Values:
-// 0 Not opened.
-// 1 Opened.
+// A treasure chest, with some... Treasures inside.
+// Variable:
+// x ShipQuests_Darlin
+// Values:
+// 0 Never talked with Darlin.
+// 1 Spoke, and received quest.
+// 2 Opened the treasure chest.
+// 3 Get back to Darlin.
000-1.gat,83,70,0 script Chest#1 316;2,{
- set @q, getq(ShipQuests_TreasureChest);
+ set @q, getq(ShipQuests_Darlin);
if (getnpcdir ("") == 4) goto l_Give;
setnpcdir 2;
@@ -22,8 +24,8 @@
close;
l_Give:
- if (@q > 0) goto l_Close;
- setq ShipQuests_TreasureChest, 1;
+ if (@q > 1) goto l_Close;
+ setq ShipQuests_Darlin, 2;
set zeny, zeny + 400;
getitem 508, 1;
getitem 509, 1;
diff --git a/npc/000-1/darlin.txt b/npc/000-1/darlin.txt
index adef7742..3d5bcfe5 100644
--- a/npc/000-1/darlin.txt
+++ b/npc/000-1/darlin.txt
@@ -4,18 +4,19 @@
// Description:
// Darlin talks from the top of the tall mast.
// Variable:
-// 0x ShipQuests_Darlin
+// x ShipQuests_Darlin
// Values:
-// 00 Does not speak
-// 01 Speak & Quest
-// 02
+// 0 Never talked with Darlin.
+// 1 Spoke, and received quest.
+// 2 Opened the treasure chest.
+// 3 Get back to Darlin.
000-1.gat,89,89,0,1 script Darlin 103;14,{
mesn;
set @q, getq(ShipQuests_Darlin);
- if (@q == 1) goto l_QuestGiven;
- if (@q > 1) goto l_QuestDone;
+ if (@q == 2) goto l_QuestGiven;
+ if (@q > 2) goto l_QuestDone;
mesq l("HEY! HEY YOU!");
next;
@@ -142,7 +143,7 @@ l_QuestGiven:
menu
l("I forgot where it was..."), -,
- rif(getq(ShipQuests_Darlin) == 1, l("Yes, it's a chest.")), l_Chest,
+ rif(getq(ShipQuests_Darlin) == 2, l("Yes, it's a chest.")), l_Chest,
l("Oh, nothing important."), l_Nothing;
mes "";
@@ -167,7 +168,7 @@ l_Chest:
next;
mesq l("IF YOU FIND SOMETHING, THEN IT'S GREAT!");
- setq ShipQuests_Darlin, 2;
+ setq ShipQuests_Darlin, 3;
goto l_Menu;
l_DangerAround: