summaryrefslogtreecommitdiff
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
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)
-rw-r--r--db/re/item_db.conf2
-rw-r--r--npc/commands/exp.txt12
2 files changed, 13 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index af5768c54..480eea3d0 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -12027,7 +12027,7 @@ item_db: (
Buy: 9999999
Sell: 0
Weight: 3000
- Range: 1
+ Range: 9
Loc: ["EQP_HAND_R", "EQP_HAND_L"]
WeaponLv: 1
EquipLv: 1
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;
}