17 lines
398 B
Plaintext
17 lines
398 B
Plaintext
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þþ >You have - " + IntToString(nItems) + " - total Items in your inventory.", TALKVOLUME_TALK)));
|
|
}
|