Shargast_PRC8/_module/Chapter 2/nss/idcust_inititem.nss

15 lines
319 B
Plaintext
Raw Normal View History

2024-08-03 14:13:18 -04:00
int StartingConditional()
{
object oPlayer = GetPCSpeaker();
int iSlot = GetLocalInt( OBJECT_SELF, "iSlot");
object oItem = GetItemInSlot( iSlot, oPlayer);
SetCustomToken(5501, GetName( oItem));
int iItemType = GetBaseItemType( oItem);
SetLocalInt( OBJECT_SELF, "ItemType", iItemType);
return TRUE;
}