Changed folder name.
Changed folder name.
This commit is contained in:
36
_module/nss/removekey.nss
Normal file
36
_module/nss/removekey.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
object oItem;
|
||||
|
||||
|
||||
//This Script is executed by the cleantavernscript
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetExitingObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "thiskey")!= OBJECT_INVALID)
|
||||
{
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="barrel") DestroyObject(oItem);
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
}
|
||||
else if (GetItemPossessedBy(oPC, "barrel2")!= OBJECT_INVALID)
|
||||
{
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="barrel2") DestroyObject(oItem);
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user