generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
25
_module/nss/opw_lib_onenter.nss
Normal file
25
_module/nss/opw_lib_onenter.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Library - Destroy Library Books On Client Enter
|
||||
// opw_lib_onenter
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Place this script in the Client On Enter Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
string sBook = "LibraryBook";
|
||||
|
||||
//Check For Library Books in Inventory
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
string sItem;
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
sItem = GetTag(oItem);
|
||||
if(sItem == sBook) DestroyObject(oItem,0.1);
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user