summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorBuildTools <unconfigured@null.spigotmc.org>2018-02-24 18:52:46 +0100
committerBuildTools <unconfigured@null.spigotmc.org>2018-02-24 18:52:46 +0100
commit94f18cbac15c6d60b8ad58abe55dd6f9fbbb2c38 (patch)
tree20857998452a8a35c710492b502ba519ab4003fc /npc
parent2f0fc8cc685cc9eeba960c18c5cba97013bb681b (diff)
downloadserverdata-94f18cbac15c6d60b8ad58abe55dd6f9fbbb2c38.tar.gz
serverdata-94f18cbac15c6d60b8ad58abe55dd6f9fbbb2c38.tar.bz2
serverdata-94f18cbac15c6d60b8ad58abe55dd6f9fbbb2c38.tar.xz
serverdata-94f18cbac15c6d60b8ad58abe55dd6f9fbbb2c38.zip
committing once again
Diffstat (limited to 'npc')
-rw-r--r--npc/005-1/maya.txt65
1 files changed, 58 insertions, 7 deletions
diff --git a/npc/005-1/maya.txt b/npc/005-1/maya.txt
index 5b6a5afee..263313c53 100644
--- a/npc/005-1/maya.txt
+++ b/npc/005-1/maya.txt
@@ -1,15 +1,66 @@
// TMW2 scripts.
// Author:
// Saulc
+// GonzoDark
// Variables:
-// CandorQuests_Maya
+// 0 CandorQuests_Maya
// Values:
-// 0 Default.
-// 1 5 cotton cloth -> candor shirt
-// 2 if end meye quest -> 10k + pearl + (random item) --> pearl ring
-// 3 wolvern tooth +20k + 2000monster point ->claw pendant
+// 00 Default, no quest selected.
+// 01 First quest accepted: Need 3 cotton cloth and 3 maggot slime
+// 02 First quest completed: Reward Candor shirt
+// 03 wolvern tooth +20k + 2000monster point ->claw pendant
+005-1,42,37,0 script Maya NPC_RAIJIN_FEMALE_LEGION_ARTIS,0,0,{
+ .@maya = getq(CandorQuests_Maya);
-005-1,42,37,0 script Maya NPC_RAIJIN_FEMALE_LEGION_ARTIS,{
- hello;
+ if (.@maya == 0)
+ goto L_QuestNotStarted;
+ if (.@maya == 1)
+ goto L_QuestAccepted;
+ if (.@maya == 2)
+ goto L_NextQuestPending;
+
+L_QuestNotStarted:
+ mesn;
+ mesq l("Hi there, I can always use a helping hand around here, are you the one for the job?");
+ mes "";
+ menu
+ l("Sure"),L_Next,
+ l("No, thanks."),L_Close;
+
+L_Next:
+ mes "";
+ mesn;
+ mesq l("Good! First, let us test if you are resourceful. Bring me 3 @@ and 3 @@. That should be enough!", getitemlink("Cotton Cloth"),getitemlink("Maggot Slime"));
+ setq CandorQuests_Maya, 1;
+ close;
+
+L_QuestAccepted:
+ mesn;
+ mesq l("I see you have brought @@/3 @@ and @@/3 @@ for me",countitem("Cotton Cloth"),getitemlink("Cotton Cloth"),countitem("Maggot Slime"),getitemlink("Maggot Slime"));
+ mes "";
+ menu
+ rif(countitem("Cotton Cloth") >= 3 && countitem("Maggot Slime") >= 3, l("Here they are!")), L_QuestCompleted,
+ rif(countitem("Cotton Cloth") < 3 && countitem("Maggot Slime") < 3, l("Oh, then I don't have enough! I'll bring more later!")), L_Close;
+ close;
+
+L_Close:
+ close;
+
+L_QuestCompleted:
+ mesn;
+ mesq l("Thanks for the help.");
+ setq CandorQuests_Maya, 2;
+ close;
+
+L_NextQuestPending:
+mesn;
+mesq l("Thanks again for the help. You have proven that you are resourceful. Come back again later.");
+close;
+
+
+OnInit:
+ .sex = G_FEMALE;
+ .distance = 4;
+ end;
}