Jump to content
  • 0

getequipid cant check costume Equip?


Nash

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

Hey Guys ,

m trying to make a npc which check if the player has equiped The item and if player has equiped the item it warps him to pvp room

Here Atm m using 

if((getequipid(1) == 27092)

But this does not checks The Costume Equip 

is it possible to make it check costume equip and if yes

How is it possible?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  25
  • Reputation:   2
  • Joined:  12/25/11
  • Last Seen:  

*getequipid(<equipment slot>)

This function returns the item ID of the item equipped in the equipment slot 
specified on the invoking character. If nothing is equipped there, it returns -1. 
Valid equipment slots are:

EQI_HEAD_TOP (1)          - Upper Headear
EQI_ARMOR (2)             - Armor (jackets, robes)
EQI_HAND_L (3)            - Left hand (weapons, shields)
EQI_HAND_R (4)            - Right hand (weapons)
EQI_GARMENT (5)           - Garment (mufflers, hoods, manteaus)
EQI_SHOES (6)             - Footgear (shoes, boots)
EQI_ACC_L (7)             - Accessory 1
EQI_ACC_R (8)             - Accessory 2
EQI_HEAD_MID (9)          - Middle Headgear (masks, glasses)
EQI_HEAD_LOW (10)         - Lower Headgear (beards, some masks)
EQI_COSTUME_HEAD_LOW (11) - Lower Costume Headgear
EQI_COSTUME_HEAD_MID (12) - Middle Costume Headgear
EQI_COSTUME_HEAD_TOP (13) - Upper Costume Headgear
EQI_COSTUME_GARMENT (14)  - Costume Garment
EQI_AMMO (15)    		  - Arrow/Ammunition
EQI_SHADOW_ARMOR (16)     - Shadow Armor
EQI_SHADOW_WEAPON (17)    - Shadow Weapon
EQI_SHADOW_SHIELD (18)    - Shadow Shield
EQI_SHADOW_SHOES (19)     - Shadow Shoes
EQI_SHADOW_ACC_R (20)     - Shadow Accessory 2
EQI_SHADOW_ACC_L (21)     - Shadow Accessory 1

getequipid(1) change to 11-14

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

its not working its not checking Top costume item  T_T

 

if((getequipid(13) == 27092) || (getequipid(13) == 24275)|| (getequipid(13) == 24276) || (getequipid(13) == 24277) || (getequipid(13) == 

24273) || (getequipid(13) == 24280) || (getequipid(13) == 27080) || (getequipid(13) == 24249))
Edited by Nash
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...