Jump to content
  • 0

help Armor Types


MojoMojo

Question


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

I did this question for weapons equipment:

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!

Using:

getiteminfo(<item ID>,<type>)

I can define if the equipment is a weapon or armor.

And i can read the weapon type by:

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

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

But NOW i want my NPC recognize the type of the armor: armor/manteau/shoes/headgear/accessoty1 and 2

How can i do it?

Edited by MojoMojo
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  137
  • Reputation:   23
  • Joined:  06/08/12
  • Last Seen:  

EQI_HEAD_TOP (1) Upper headgear

EQI_ARMOR (2) Armor

EQI_HAND_L (3) Left hand (weapon/shield)

EQI_HAND_R (4) Right hand (weapon)

EQI_GARMENT (5) Garment

EQI_SHOES (6) Shoes

EQI_ACC_L (7) Left accessory

EQI_ACC_R (8) Right accessory

EQI_HEAD_MID (9) Middle headgear

EQI_HEAD_LOW (10) Lower headgear

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:  

EQI_HEAD_TOP (1) Upper headgear

EQI_ARMOR (2) Armor

EQI_HAND_L (3) Left hand (weapon/shield)

EQI_HAND_R (4) Right hand (weapon)

EQI_GARMENT (5) Garment

EQI_SHOES (6) Shoes

EQI_ACC_L (7) Left accessory

EQI_ACC_R (8) Right accessory

EQI_HEAD_MID (9) Middle headgear

EQI_HEAD_LOW (10) Lower headgear

But i can use those like this?

If equipment is a garment, STR + 1

if (getiteminfo(getequipid(.@item_1),11)==EQI_GARMENT){ bonus bStr,1; }

Correct?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

hey i think the == 10 means slot, since in the descriptioon of the card is "+bonus if slotted

i saw it here

*getiteminfo(<item ID>,<type>)

This function will look up the item with the specified ID number in the database

and return the info set by TYPE argument.

It will return -1 if there is no such item.

Valid types are:

0 - Buy Price; 1 - Sell Price; 2 - Item Type;

3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..

if = 0, then monsters don't drop it at all (rare or a quest item)

if = 10000, then this item is sold in NPC shops only

4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;

10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

uhh im not really sure haha!

im also trying to figured out how to make it work for armors too, in item bonus..

Edited by critica
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:  

In the:

if (getiteminfo(getequipid(.@item_1),11)==10){ bonus bStr,1; }

==10 mean rod, since getiteminfo(ID),11 reffers to LOOK

0 - Buy Price; 1 - Sell Price; 2 - Item Type;

3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..

if = 0, then monsters don't drop it at all (rare or a quest item)

if = 10000, then this item is sold in NPC shops only

4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;

10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

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