Aschbourne_PRC8/_module/nss/mk_cb_iprp_inlbl.nss

16 lines
476 B
Plaintext
Raw Permalink Normal View History

#include "mk_inc_itm_disp"
void main()
{
object oPC = OBJECT_SELF;
object oItem = GetLocalObject(oPC, MK_ITM_DISP_CALLBACK_OBJECT);
string sLabel = GetName(oItem);
int nBaseItemType = GetBaseItemType(oItem);
if ((GetItemStackSize(oItem)>1) || (MK_Get2DAInt("baseitems", "Stacking", nBaseItemType, 1) > 1))
{
sLabel += (" #" + IntToString(GetItemStackSize(oItem)));
}
SetLocalString(OBJECT_SELF, MK_ITM_DISP_CALLBACK_LABEL, sLabel);
}