21 lines
438 B
Plaintext
21 lines
438 B
Plaintext
//Created By Genisys 5/20/08
|
|
//Put this script in the OnExit Event of a tracks trigger or Area-(preferred).
|
|
void main()
|
|
{
|
|
//Take all Arena Tokens from the player when they exit..
|
|
object oPC = GetExitingObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oItem;
|
|
oItem = GetFirstItemInInventory(oPC);
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if (GetTag(oItem)=="arenatoken") DestroyObject(oItem);
|
|
|
|
oItem = GetNextItemInInventory(oPC);
|
|
}
|
|
|
|
}
|