summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/quest_db.conf4
-rw-r--r--npc/003-1/aidan.txt57
2 files changed, 61 insertions, 0 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 6571eff32..52963edf5 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -84,6 +84,10 @@ quest_db: (
Id: 14
Name: "General_Janus"
},
+{
+ Id: 15
+ Name: "General_Hunter"
+},
// ID 31 to 50: Candor Quests
{
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;
}
+
+