2026/06/09 Update
Moved Player Tool check from Heartbeat to onEnter & onLevelup. Added Trash Barrel to several areas. Updated ms_name_inc
This commit is contained in:
15
_module/nss/trash_barrel.nss
Normal file
15
_module/nss/trash_barrel.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
// This script will destroy any item placed inside of the trash barrel.
|
||||
// Place OnClosed of placeable.
|
||||
|
||||
// Created by Zunath on August 12, 2007
|
||||
|
||||
void main()
|
||||
{
|
||||
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
DestroyObject(oItem);
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user