summaryrefslogtreecommitdiff
path: root/npc/012-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-24 18:37:06 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-24 18:37:06 -0300
commit353af3184a6f38c565f169155737c86bd3f5577f (patch)
tree6675269996cf4bcde32db14e068d50d50466a738 /npc/012-1
parente9ae317ce07469a7de1d4680672bb376eb788ee8 (diff)
downloadserverdata-353af3184a6f38c565f169155737c86bd3f5577f.tar.gz
serverdata-353af3184a6f38c565f169155737c86bd3f5577f.tar.bz2
serverdata-353af3184a6f38c565f169155737c86bd3f5577f.tar.xz
serverdata-353af3184a6f38c565f169155737c86bd3f5577f.zip
LoF Bot Quest for @Cordo
As promised. The coin can also be obtained by farming, if player sells it.
Diffstat (limited to 'npc/012-1')
-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);