summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/fishing.txt4
-rw-r--r--npc/functions/treasure.txt3
2 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 56415e6eb..52f9fcc9a 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -225,6 +225,10 @@ function script fishing {
specialeffect(.@success_fx, SELF, playerattached());
getexp getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)+(BaseLevel/10), 0; // xp gain is equivalent to bait rarity + BaseLevel boost
+ // MobPt gain is equivalent to bait rarity.
+ if (MPQUEST)
+ Mobpt+=getvariableofnpc(.bait_ids[@bait_d+1], .@npc$);
+
if(!checkweight(.@fish_id, 1))
{
dispbottom l("You caught a @@ but had no room in your inventory to carry it.", getitemlink(.@fish_id));
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 0698d56ee..83da812e4 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -49,6 +49,9 @@ function script TreasureBox {
inventoryplace .@loot, 1;
mesc l("You find @@ inside!", getitemlink(.@loot));
getitem .@loot, 1;
+ // Get Monster points for treasure hunting (20% from job level)
+ if (MPQUEST)
+ Mobpt+=(JobLevel/5);
} else {
mesc l("You find @@ inside!", l("nothing"));
}