PoA_PRC8/_module/nss/takearenatoken.nss

21 lines
438 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//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);
}
}