PoA_PRC8/_module/nss/ispeak.nss

17 lines
398 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetLastUsedBy();
int nItems = 0;
object oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem) == TRUE)
{
nItems ++;
oItem = GetNextItemInInventory(oPC);
}
DelayCommand(1.5, AssignCommand(OBJECT_SELF, ActionSpeakString
("<c<><63> >You have - " + IntToString(nItems) + " - total Items in your inventory.", TALKVOLUME_TALK)));
}