summaryrefslogtreecommitdiff
path: root/npc/018-4-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-03 12:05:01 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-03 12:05:31 -0300
commit42d9b3c26880d645c4b65f80686eeecf4a07f903 (patch)
tree23da98257316a3e70532e00625b4046cd0445f22 /npc/018-4-2
parent5aa67a4b49b6cfdcb45203c72a5671b163216313 (diff)
downloadserverdata-42d9b3c26880d645c4b65f80686eeecf4a07f903.tar.gz
serverdata-42d9b3c26880d645c4b65f80686eeecf4a07f903.tar.bz2
serverdata-42d9b3c26880d645c4b65f80686eeecf4a07f903.tar.xz
serverdata-42d9b3c26880d645c4b65f80686eeecf4a07f903.zip
Fafi Dragon Summon. Do not use %%a
Diffstat (limited to 'npc/018-4-2')
-rw-r--r--npc/018-4-2/susanne.txt66
1 files changed, 66 insertions, 0 deletions
diff --git a/npc/018-4-2/susanne.txt b/npc/018-4-2/susanne.txt
index 6771f3ca2..62eb2cc6d 100644
--- a/npc/018-4-2/susanne.txt
+++ b/npc/018-4-2/susanne.txt
@@ -43,6 +43,8 @@ L_Yes:
mesn;
mesq l("Thank you...");
setq LoFQuest_Fairy, 1;
+ if (!mobcount(Susanne::OnKillFafi))
+ goto L_Spawn;
close;
OnKillFafi:
@@ -89,7 +91,71 @@ L_Noob:
close;
L_Coward:
+ if (!mobcount(Susanne::OnKillFafi))
+ goto L_Check;
mesn;
mesq l("What are you doing talking to me? Go fight, you coward!");
close;
+
+L_Check:
+ if (.respawnTime > gettimetick(2)){
+ mesn;
+ mesq l("Just wait. Fafi dragons are slow to show up...");
+ } else {
+ mesn;
+ mesq l("The Fafi knows you are here to kill him. They are smart. But I can make a trap.");
+ next;
+ mesn;
+ mesq l("Bring me this and I'll spawn it for you:");
+ // .@q valid values are 1 (Starter) and 3 (Veteran)
+ mesc l("@@/@@ @@", countitem(ShadowHerb), .@q*5, getitemlink(ShadowHerb));
+ mesc l("@@/@@ @@", countitem(Moss), .@q*4, getitemlink(Moss));
+ mesc l("@@/@@ @@", countitem(Root), .@q*3, getitemlink(Root));
+ next;
+ mesn;
+ mesq l("I'll be attracted by the Shadow Herb. The moss will hide the roots, which will entrap it for a while.");
+ mesq l("So, do you have the items?");
+ if (askyesno() != ASK_YES) {
+ close;
+ }
+ mes "";
+ if (countitem(ShadowHerb) < .@q*5 ||
+ countitem(Moss) < .@q*4 ||
+ countitem(Root) < .@q*3) goto L_Fail;
+ if (.respawnTime > gettimetick(2)) {
+ mesn;
+ mesq l("Too slow.");
+ close;
+ }
+ delitem ShadowHerb, .@q*5;
+ delitem Moss, .@q*4;
+ delitem Root, .@q*3;
+ goto L_Spawn;
+ }
+ close;
+
+L_Spawn:
+ if (.respawnTime > gettimetick(2)){
+ mesn;
+ mesq l("Just wait. Fafi dragons are slow to show up...");
+ } else {
+ mesn;
+ mesc l("Screams");
+ mesq l("I hear a Fafi Dragon on THIS very island!!");
+ .respawnTime=gettimetick(2)+(60*90);
+ monster "018-4", any(59,78,95,118,134), any(54,64,79), strmobinfo(1, FafiDragon), FafiDragon, 1, "#Susanne::OnKillFafi";
+ }
+ close;
+
+L_Fail:
+ mesn;
+ mesq l("You're lucky that this is the Land Of Fire and I'm on a good mood, otherwise, I would have killed you for lying to me.");
+ close;
+
+OnInit:
+ .respawnTime=0;
+ .sex=G_FEMALE;
+ .distance=5;
+ end;
+
}