Jump to content
  • 0

getiteminfo/const update


Peopleperson49

Question


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

I was wondering if somebody would make a source mod that allowed you to determine the exact type of item equipable items. For example if you getiteminfo(getequipid(ItemID),2) it will give you a 4 for a weapon and 5 for anything else (including accesories which is not listed in the doc/item_db.txt). I suggest expanding it to include the following item types: HEAD_TOP, ARMOR, HAND_L, HAND_R, GARMENT, SHOES, ACC_L, ACC_R, HEAD_MID, HEAD_LOW, SHIELD. This would very useful for a lot of features and checks expecially refiners where you might only want to restrict or only allow specific types of items for some reason. I'm not sure what the exact numbers would be for item types, possibly leave the 4/5 as it is and just use new numbers for what I listed before.

Peopleperson49

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

why not use

getiteminfo(..,5)
4 sex

5 equip

6 weight

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

Thanks for the reply I had already figured this out, but should of came back an reposted.

Peopleperson49

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...