summaryrefslogtreecommitdiff
path: root/npc/commands/exp.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-17 20:31:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-17 20:31:44 -0300
commitd268aa8698255224840967852161425dc52ee27c (patch)
treebd19ed1013ff348737a5177fb18b04b8840bbbe4 /npc/commands/exp.txt
parentced07558ad91c741bbb28bbe2f86b105de59e4bb (diff)
downloadserverdata-d268aa8698255224840967852161425dc52ee27c.tar.gz
serverdata-d268aa8698255224840967852161425dc52ee27c.tar.bz2
serverdata-d268aa8698255224840967852161425dc52ee27c.tar.xz
serverdata-d268aa8698255224840967852161425dc52ee27c.zip
Fix bug in Runestaff.
@gethexp - Gives EXP to Homunculus (if homunculus is sleeping, packets will be sent but server will disregard it)
Diffstat (limited to 'npc/commands/exp.txt')
-rw-r--r--npc/commands/exp.txt12
1 files changed, 12 insertions, 0 deletions
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;
}