summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-22 10:34:39 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-22 10:34:39 -0300
commit068c14436d6752953cdc3a5349da217a849dd71b (patch)
tree88cd02bfc6f138ba157f2e8d74bbb88518cac01f /npc/003-1
parenta6cb86383bf2926a448da5c54b775a322886a031 (diff)
downloadserverdata-068c14436d6752953cdc3a5349da217a849dd71b.tar.gz
serverdata-068c14436d6752953cdc3a5349da217a849dd71b.tar.bz2
serverdata-068c14436d6752953cdc3a5349da217a849dd71b.tar.xz
serverdata-068c14436d6752953cdc3a5349da217a849dd71b.zip
Prototype of Greater Hunter Quest, as Saulc requested
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/aidan.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/npc/003-1/aidan.txt b/npc/003-1/aidan.txt
index 748f4a09e..0a52454ec 100644
--- a/npc/003-1/aidan.txt
+++ b/npc/003-1/aidan.txt
@@ -72,8 +72,54 @@
mesn l("Aidan, the Monster Guide");
mesq l("You currently have @@ Monster Points. These points are acquired while killing monsters.", Mobpt);
+ if (getq(General_Hunter) == 0) goto L_Register;
+ mesn;
+ mesq l("Current Progress: @@/1000 kills", getq2(General_Hunter));
+ if (getq2(General_Hunter) >= 1000) goto L_Finish;
close;
+L_Register:
+ next;
+ mesn;
+ mesq l("We have a special program, where you kill 1000 of a monster and get great rewards!");
+ select
+ l("I'm not interested."),
+ l("(Lv 20) Maggots"),
+ l("(Lv 60) Snakes");
+
+ switch (@menu) {
+ case 2:
+ setq(General_Hunter, 1);
+ mesn;
+ mesq l("Good luck! Don't come back until you reach 1000 kills!");
+ close;
+ break;
+ case 3:
+ setq(General_Hunter, 2);
+ mesn;
+ mesq l("Good luck! Don't come back until you reach 1000 kills!");
+ close;
+ break;
+ default:
+ close;
+ }
+
+L_Finish:
+ switch (getq(General_Hunter)) {
+ case 1:
+ setq General_Hunter, 0, 0;
+ Zeny=Zeny+5000;
+ mesn;
+ mesq l("Good job, here is 5,000 GP.");
+ close;
+ case 2:
+ setq General_Hunter, 0, 0;
+ Zeny=Zeny+25000;
+ mesn;
+ mesq l("Good job, here is 25,000 GP.");
+ close;
+ }
+
OnInit:
.@npcId = getnpcid(0, .name$);
setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
@@ -86,4 +132,15 @@ OnInit:
.sex = G_MALE;
.distance = 5;
end;
+
+
+OnNPCKillEvent:
+ if (getq(General_Hunter) == 0) end;
+ if (getq(General_Hunter) == 1 && killedrid == Maggot)
+ setq2 General_Hunter, getq2(General_Hunter)+1;
+ if (getq(General_Hunter) == 2 && killedrid == Snake)
+ setq2 General_Hunter, getq2(General_Hunter)+1;
+ end;
}
+
+