summaryrefslogtreecommitdiff
path: root/npc/012-1/bot.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/012-1/bot.txt')
-rw-r--r--npc/012-1/bot.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/npc/012-1/bot.txt b/npc/012-1/bot.txt
index 1bd0bdbc4..dde000620 100644
--- a/npc/012-1/bot.txt
+++ b/npc/012-1/bot.txt
@@ -8,6 +8,7 @@
// Reward: Mouboo Figurine
012-1,82,59,0 script LOFBot NPC_PLAYER,{
+ .@q=getq(HurnscaldQuest_LOFPass);
if (rand2(1,5) % 2 == 1) {
mesn;
mesq l("Ah, @@ is sooo amazing!", $MOST_HEROIC$);
@@ -18,6 +19,9 @@
next;
mesn;
mesq l("They had a TMWA server, but the Monster King went hyperactive and... Well, it crashed here.");
+ if (.@q == 0) goto L_Quest;
+ if (.@q == 1) goto L_Report;
+ if (.@q == 2) goto L_Report; // To accomodate Pyn's node. Not required.
L_Menu:
mes "";
@@ -72,6 +76,50 @@ L_Close:
npctalkonce l("Ah, @@ is so amazing!", $MOST_HEROIC$);
close;
+L_Quest:
+ mesn;
+ mesq l("Actually, could I ask you a favor?");
+ next;
+ mesn;
+ mesq l("I want a %s so badly... Pyndragon, in the forge, the master blacksmith which makes powerful weapons for high levels, can give you one.", getitemlink(LOFCoin));
+ next;
+ mesn;
+ mesq l("Just tell him that I want to reconsider, and that I want the souvenir he offered me when I moved to Hurnscald.");
+ next;
+ setq HurnscaldQuest_LOFPass, 1;
+ goto L_Menu;
+
+L_Report:
+ mes l("Did you brought me a %s?", getitemlink(LOFCoin));
+ next;
+ if (askyesno() == ASK_YES) goto L_Check;
+ goto L_Menu;
+
+L_Check:
+ if (!countitem(LOFCoin)) goto L_NoItem;
+ inventoryplace MoubooFigurine, 1;
+ delitem LOFCoin, 1;
+ getitem MoubooFigurine, 1;
+ getexp 400, 20;
+ setq HurnscaldQuest_LOFPass, 3;
+ mesn;
+ mesq lg("Thanks, my friend.");
+ next;
+ mesn;
+ mesq l("Here, you can have this souvenir.");
+ mesc l("* Item obtained: %s", getitemlink(MoubooFigurine));
+ next;
+ goto L_Menu;
+
+L_NoItem:
+ mesn;
+ mesq l("I want a %s so badly... Pyndragon, in the forge, the master blacksmith which makes powerful weapons for high levels, can give you one.", getitemlink(LOFCoin));
+ next;
+ mesn;
+ mesq l("Just tell him that I want to reconsider, and that I want the souvenir he offered me when I moved to Hurnscald.");
+ next;
+ goto L_Menu;
+
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, CenturionHelmet);