Jump to content

Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...