Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
////////////////////////////////////////////////////////////////////////////////
// Library - No Removal of Books
// opw_lib_nrb
// By Don Anderson
// dandersonru@msn.com
//
// Place this script in the Trigger On Enter Event
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oPC = GetEnteringObject();
string sLocal = "LIBRARYBOOK";
string sBook = "LibraryBook";
int nHasBook = GetLocalInt(oPC,sLocal);
if(nHasBook == 1)
{
//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);
}
DeleteLocalInt(oPC,sLocal);
}
}