diff options
author | smokexyz <sagunkho@hotmail.com> | 2017-07-04 20:09:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 20:09:08 +0530 |
commit | dc98b569d9ea5eb396720bf68da617d81560229f (patch) | |
tree | 78ae3f5db1ea73d994d91cfe7812e41efaacdf50 /src/map | |
parent | 181b1ff7960fb7ddfc9d8519471bc2a97b6fd22b (diff) | |
parent | c27b17f0771f9cff8b9cc962b5d13dbc8b6924e1 (diff) | |
download | hercules-dc98b569d9ea5eb396720bf68da617d81560229f.tar.gz hercules-dc98b569d9ea5eb396720bf68da617d81560229f.tar.bz2 hercules-dc98b569d9ea5eb396720bf68da617d81560229f.tar.xz hercules-dc98b569d9ea5eb396720bf68da617d81560229f.zip |
Merge pull request #1773 from dastgir/bug/item-options
Item option fixes
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/script.c b/src/map/script.c index dbeae5fbc..8184639e6 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14064,7 +14064,7 @@ BUILDIN(getequippedoptioninfo) /** * Gets the option information of an equipment. - * *getequipoptioninfo(<equip_index>,<slot>,<type>); + * *getequipoption(<equip_index>,<slot>,<type>); * * @param equip_index as the Index of the Equipment. * @param slot as the slot# of the Item Option (1 to MAX_ITEM_OPTIONS) @@ -14081,24 +14081,24 @@ BUILDIN(getequipoption) if (sd == NULL) { script_pushint(st, -1); - ShowError("buildin_getequipoptioninfo: Player not attached!\n"); + ShowError("buildin_getequipoption: Player not attached!\n"); return false; } if (slot <= 0 || slot > MAX_ITEM_OPTIONS) { script_pushint(st, -1); - ShowError("buildin_getequipoptioninfo: Invalid option slot %d (Min: 1, Max: %d) provided.\n", slot, MAX_ITEM_OPTIONS); + ShowError("buildin_getequipoption: Invalid option slot %d (Min: 1, Max: %d) provided.\n", slot, MAX_ITEM_OPTIONS); return false; } if (equip_index > 0 && equip_index <= ARRAYLENGTH(script->equip)) { if ((i = pc->checkequip(sd, script->equip[equip_index - 1])) == -1) { - ShowError("buildin_getequipoptioninfo: No equipment is equipped in the given index %d.\n", equip_index); + ShowError("buildin_getequipoption: No equipment is equipped in the given index %d.\n", equip_index); script_pushint(st, -1); return false; } } else { - ShowError("buildin_getequipoptioninfo: Invalid equipment index %d provided.\n", equip_index); + ShowError("buildin_getequipoption: Invalid equipment index %d provided.\n", equip_index); script_pushint(st, 0); return false; } @@ -14112,7 +14112,7 @@ BUILDIN(getequipoption) val = sd->status.inventory[i].option[slot-1].value; break; default: - ShowError("buildin_geteqiupoptioninfo: Invalid option data type %d provided.\n", opt_type); + ShowError("buildin_getequipoption: Invalid option data type %d provided.\n", opt_type); script_pushint(st, -1); break; } |