Shargast_PRC8/_module/Chapter 2/nss/idcust_inititem.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

15 lines
319 B
Plaintext

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;
}