diff options
Diffstat (limited to 'npc/commands/exp.txt')
-rw-r--r-- | npc/commands/exp.txt | 12 |
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; } |