diff options
-rw-r--r-- | npc/functions/mobhunter.txt | 21 |
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); |