20 lines
299 B
Plaintext
20 lines
299 B
Plaintext
//Put this script OnExit
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetExitingObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oItem;
|
|
oItem = GetFirstItemInInventory(oPC);
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if (GetTag(oItem)=="arenatoken") DestroyObject(oItem);
|
|
|
|
oItem = GetNextItemInInventory(oPC);
|
|
}
|
|
|
|
}
|