summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorEmistry <Equinox1991@gmail.com>2016-08-10 23:35:26 +0800
committerEmistry <Equinox1991@gmail.com>2016-08-10 23:35:26 +0800
commit11f49f71ba681d2d4190e4d2f329d6722273a8d8 (patch)
tree140c23976debd28cc63b68dce7c2187142cc1306 /src/map
parent2731ce5374e14db47691e1b3f7d00773369de835 (diff)
downloadhercules-11f49f71ba681d2d4190e4d2f329d6722273a8d8.tar.gz
hercules-11f49f71ba681d2d4190e4d2f329d6722273a8d8.tar.bz2
hercules-11f49f71ba681d2d4190e4d2f329d6722273a8d8.tar.xz
hercules-11f49f71ba681d2d4190e4d2f329d6722273a8d8.zip
Enable @b/joblvl trigger OnPCLvUpEvent
- OnPCBaseLvUpEvent - OnPCJobLvUpEvent
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 5b337e759..de79ae0c4 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1407,6 +1407,8 @@ ACMD(baselevelup)
pc->baselevelchanged(sd);
if(sd->status.party_id)
party->send_levelup(sd);
+ npc->script_event(sd, NPCE_BASELVUP); // Trigger OnPCBaseLvUpEvent
+
return true;
}
@@ -1455,6 +1457,7 @@ ACMD(joblevelup)
clif->updatestatus(sd, SP_NEXTJOBEXP);
clif->updatestatus(sd, SP_SKILLPOINT);
status_calc_pc(sd, SCO_FORCE);
+ npc->script_event(sd, NPCE_JOBLVUP); // Trigger OnPCJobLvUpEvent
return true;
}