From d268aa8698255224840967852161425dc52ee27c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Aug 2019 20:31:44 -0300 Subject: Fix bug in Runestaff. @gethexp - Gives EXP to Homunculus (if homunculus is sleeping, packets will be sent but server will disregard it) --- npc/commands/exp.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/commands/exp.txt') diff --git a/npc/commands/exp.txt b/npc/commands/exp.txt index 763653f94..7f9d15d6f 100644 --- a/npc/commands/exp.txt +++ b/npc/commands/exp.txt @@ -18,6 +18,18 @@ OnCall: getexp .@d, 0; end; +OnHomun: + if (!gethominfo(0)) { + dispbottom l("No homunculus found!"); + end; + } + .@delta$ = .@atcmd_parameters$[0]; + .@d = atoi(.@delta$); + + gethomunexp .@d; + end; + OnInit: bindatcmd "getexp", "@getexp::OnCall", 5, 99, 1; + bindatcmd "gethexp", "@getexp::OnHomun", 99, 99, 1; } -- cgit v1.2.3-70-g09d2