Jump to content
  • 0

R > Check Equipment Type


mawjustin

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

Hi Team,

 

Is it possible to check if the equipped item in Left Hand is a Weapon or a Shield?
I'm trying to separate the Enchantments for Weapon and Shield.

If I will use EQI_HAND_L as a parameter Sinx can easily bypass this by wearing 2 weapons left and right.
I want to add a scan if the selected equipment is a Shield type.

 

Thank you.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   1
  • Joined:  11/24/22
  • Last Seen:  

(getiteminfo(getequipid(EQI_HAND_L),ITEMINFO_TYPE)

getiteminfo = Returns some values of an item. Price, Weight, etc... (info of Doc)
getequipid = Returns id from specific part of equipment.
ITEMINFOTYPE = type of equipment, can be a weapon or armor(shield).

I hope it helps you.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

6 hours ago, Vichomax14 said:
(getiteminfo(getequipid(EQI_HAND_L),ITEMINFO_TYPE)

getiteminfo = Returns some values of an item. Price, Weight, etc... (info of Doc)
getequipid = Returns id from specific part of equipment.
ITEMINFOTYPE = type of equipment, can be a weapon or armor(shield).

I hope it helps you.


Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...