Getequipname - HerculesWS/Hercules GitHub Wiki

Table of Contents

Syntax

  • getequipname(<equipment></equipment>);

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

Category:Script Command
⚠️ **GitHub.com Fallback** ⚠️