Initial upload
Initial upload
This commit is contained in:
20
_module/nss/takedeathtrigg.nss
Normal file
20
_module/nss/takedeathtrigg.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//Created by Guile 02/03/04
|
||||
//Put this script OnEnter to take death tokens out of PC's Inventory
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oItem;
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="death") DestroyObject(oItem);
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user