Jump to content

check item equipped


Recommended Posts

if pc.get_wear(4) == 469 then
	chat("You have weapon 469 equiped.")
end

4 is the slot number of weapons

469 is vnum of the weapon

these are slot numbers

Spoiler

enum EWearPositions
{
	WEAR_BODY,				// 0
	WEAR_HEAD,				// 1
	WEAR_FOOTS,				// 2
	WEAR_WRIST,				// 3
	WEAR_WEAPON,				// 4
	WEAR_NECK,				// 5
	WEAR_EAR,				// 6
	WEAR_UNIQUE1,				// 7
	WEAR_UNIQUE2,				// 8
	WEAR_ARROW,				// 9
	WEAR_SHIELD,				// 10
    	WEAR_ABILITY1,  			// 11
    	WEAR_ABILITY2,  			// 12
    	WEAR_ABILITY3,  			// 13
    	WEAR_ABILITY4,  			// 14
    	WEAR_ABILITY5,  			// 15
	WEAR_ABILITY6,  			// 16
    	WEAR_ABILITY7,  			// 17
    	WEAR_ABILITY8,  			// 18
	WEAR_COSTUME_BODY,			// 19
	WEAR_COSTUME_HAIR,			// 20
	WEAR_COSTUME_MOUNT,			// 21
	WEAR_COSTUME_SASH,			// 22
	WEAR_COSTUME_WEAPON,			// 23
	WEAR_RING1,				// 24
	WEAR_RING2,				// 25
	WEAR_BELT,				// 26
	
	WEAR_MAX = 32
};

 

  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.