Jump to content
  • 0

help Item Type


MojoMojo

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

For a NPC read some item info, we can use:

getiteminfo(<item ID>,<type>)

But i need that my NPC recognize the item type (i will use equipments). It should define if the equipmnent is a SWORD, KNIFE, ROD, etc. . .

I found the script on the Necromancer_Card:

if (getiteminfo(getequipid(EQI_HAND_R),11)==10){ bonus bInt,1; bonus bIgnoreMdefRate,2; }

But i really don't understand it. I may assume that the 10(...==10){...), is the reference to the ROD, but i don't know the reference for the others, like knife, sword, axe, etc...

GIMME A LIGHT!

Edited by MojoMojo
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

Hi.

From the doc:

        0: bare fist
       1: Daggers
       2: One-handed swords
       3: Two-handed swords
       4: One-handed spears
       5: Two-handed spears
       6: One-handed axes
       7: Two-handed axes
       8: Maces
       9: Unused
       10: Staves
       11: Bows
       12: Knuckles
       13: Musical Instruments
       14: Whips
       15: Books
       16: Katars
       17: Revolvers
       18: Rifles
       19: Gatling guns
       20: Shotguns
       21: Grenade launchers
       22: Fuuma Shurikens

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Thank you!

Edited by MojoMojo
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...