From b81ba68b3fba3d882744ac9f26c4869b830a2a66 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 17:34:10 -0300 Subject: And the event label has been renamed in Hercules, adjust correctly --- npc/functions/global_event_handler.txt | 1 + npc/functions/mob_points.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index aa06a38b..7780ad8b 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -16,6 +16,7 @@ OnPCKillEvent: callfunc "elanore_decrease_exp"; // decrease heal exp for doing bad things end; +OnNPCKillEvent: OnMobKillEvent: MobPoints(); end; diff --git a/npc/functions/mob_points.txt b/npc/functions/mob_points.txt index cecf645e..da92ad34 100644 --- a/npc/functions/mob_points.txt +++ b/npc/functions/mob_points.txt @@ -6,7 +6,7 @@ // fix_mobkill(mobID) → Manual fix for scripted mobs function script fix_mobkill { killedrid=getarg(0); - doevent "#mobptsys::OnNPCKillEvent"; + doevent "#GlobalHandler::OnNPCKillEvent"; return; } -- cgit v1.2.3-70-g09d2