Item DB update and script command adjustment (#1739)

* Made getequipid script command accept EQI_COMPOUND_ON (-1) for current equipment slot when running in item script.
* Added new equipment index for current item in item script context.
* Fixed typo in Fulbuk_Card item script.
* Fixed typo in Lich_Lord_Card effect.
This commit is contained in:
Jittapan Pluemsumran
2017-06-15 00:35:32 +07:00
committed by Aleos
parent 264af55b42
commit 887efa4ea4
5 changed files with 26 additions and 24 deletions

View File

@@ -2517,12 +2517,14 @@ Note: SECURE_NPCTIMEOUT must be enabled for this to work.
\\
---------------------------------------
*getequipid(<equipment slot>{,<char_id>})
*getequipid({<equipment slot>,<char_id>})
This function returns the item ID of the item equipped in the equipment slot
specified on the invoking character. If nothing is equipped there, it returns -1.
This function returns the item ID of the item slot that calls the script
on the invoking character or the specified equipment slot. If nothing is
equipped there, it returns -1.
Valid equipment slots are:
EQI_COMPOUND_ON (-1) - Item slot that calls this script (In context of item script)
EQI_ACC_L (0) - Accessory 1
EQI_ACC_R (1) - Accessory 2
EQI_SHOES (2) - Footgear (shoes, boots)
@@ -2682,9 +2684,6 @@ This function returns the weapon level for the weapon equipped in the specified
equipment slot on the invoking character. For a list of equipment slots see
'getequipid'.
If -1 is passed as the equipment slot argument then the weapon level for the item calling this function,
assuming it is called by an item script, will be returned. Otherwise, 0 will be returned.
Only EQI_HAND_L and EQI_HAND_R normally make sense, since only weapons have
a weapon level. You can, however, probably, use this field for other equippable
custom items as a flag or something.