summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-09 14:10:36 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-09 14:10:36 -0200
commitf7175aee74f0a3aa9d1585eb648187914ab4120e (patch)
tree1e80e5450b8a9f10d9657ed0d6f9def860c679ef
parent9bb8e29c61145a7ffc1dc7b8359356d47540b6c7 (diff)
downloadserverdata-f7175aee74f0a3aa9d1585eb648187914ab4120e.tar.gz
serverdata-f7175aee74f0a3aa9d1585eb648187914ab4120e.tar.bz2
serverdata-f7175aee74f0a3aa9d1585eb648187914ab4120e.tar.xz
serverdata-f7175aee74f0a3aa9d1585eb648187914ab4120e.zip
Grand Hunter Quest now rewards a proper amount of XP
-rw-r--r--npc/functions/mobhunter.txt21
1 files changed, 9 insertions, 12 deletions
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt
index f40a9f137..5bd07eec5 100644
--- a/npc/functions/mobhunter.txt
+++ b/npc/functions/mobhunter.txt
@@ -121,42 +121,41 @@ function script GHQ_GetRewardsOnCompletion {
mes l("Current progress: @@/10000 @@", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter))));
mes "";
GHMEMO[getq(General_Hunter)]=getq2(General_Hunter);
+ .@xp=atoi(strmobinfo(3, GHQ_GetMonsterIDByQuestID(getq(General_Hunter))))*3150;
+ getexp .@xp, 100;
switch (GHQ_GetMonsterIDByQuestID(getq(General_Hunter))) {
case Maggot:
setq General_Hunter, 0, 0;
Zeny=Zeny+25000;
inventoryplace MaggotCocoon, 1;
makepet(Maggot); // Works the same, even if I'm using mob_db constant
- getexp 15750, 100;
mesn;
mesq l("Good job, here is 25,000 GP and 15,750 EXP.");
mesq l("And your rare, a @@! Enjoy!", getitemlink(MaggotCocoon));
+ mesc l("Gained @@ XP", .@xp);
close;
case Snake:
setq General_Hunter, 0, 0;
Zeny=Zeny+300000;
getitem StrangeCoin, 80;
- getexp 15750, 100;
mesn;
mesq l("Good job, here is @@ GP and @@ @@!", format_number(300000), format_number(80), getitemlink(StrangeCoin));
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
case Scorpion:
setq General_Hunter, 0, 0;
Zeny=Zeny+100000;
- getexp 15750, 100;
mesn;
mesq l("Good job, here is 100,000 GP!");
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
case ForestMushroom:
setq General_Hunter, 0, 0;
Zeny=Zeny+175000;
getitem StrangeCoin, 60;
- getexp 15750, 100;
mesn;
mesq l("Good job, here is @@ GP and @@ @@!", format_number(175000), format_number(60), getitemlink(StrangeCoin));
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
case Pinkie:
setq General_Hunter, 0, 0;
@@ -164,25 +163,23 @@ function script GHQ_GetRewardsOnCompletion {
getexp 15750, 100;
mesn;
mesq l("And your rare, a @@! Enjoy!", getitemlink(PinkHelmet));
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
case Moggun:
setq General_Hunter, 0, 0;
Zeny=Zeny+150000;
getitem StrangeCoin, 60;
- getexp 15750, 100;
mesn;
mesq l("Good job, here is @@ GP and @@ @@!", format_number(150000), format_number(60), getitemlink(StrangeCoin));
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
case Fluffy:
setq General_Hunter, 0, 0;
Zeny=Zeny+125000;
getitem StrangeCoin, 60;
- getexp 15750, 100;
mesn;
mesq l("Good job, here is @@ GP and @@ @@!", format_number(125000), format_number(60), getitemlink(StrangeCoin));
- mesc l("Gained @@ XP", "15750");
+ mesc l("Gained @@ XP", .@xp);
close;
}
mesc l("ILLEGAL SCRIPT LOGIC REACHED, PLEASE REPORT. (GHQ_GROC)", 1);