Getequipname

From Hercules Wiki
Revision as of 12:07, 18 April 2014 by Dastgirpojee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Syntax

  • getequipname(<equipment slot>);

Description

Returns the jname of the item equipped in the specified equipment slot on the invoking character, or an empty string ("") if nothing is equipped in that position.

Does the same thing as getitemname(getequipid(<slot>)). Useful for an NPC to state what your are wearing, or maybe saving as a string variable.

See 'getequipid' for a full list of valid equipment slots.

Examples

if (getequipname(EQI_HAND_L)==""){
   mes "You are wearing nothing on Left Hand";
} else {
   mes "You are wearing "+getequipname(EQI_HAND_L)+" on Left Hand";
}

See Also