Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/realest_bookcase.nss
Normal file
16
_module/nss/realest_bookcase.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
object oItem = GetFirstItemInInventory();
|
||||
while (GetIsObjectValid(oItem) == TRUE)
|
||||
{
|
||||
if (GetStringLeft(GetResRef(oItem), 13) == "zorcobrochure")
|
||||
DestroyObject(oItem);
|
||||
oItem = GetNextItemInInventory();
|
||||
}
|
||||
int i = 1;
|
||||
while (GetLocalString(OBJECT_SELF, "BOOK"+IntToString(i)) != "")
|
||||
{
|
||||
CreateItemOnObject(GetLocalString(OBJECT_SELF, "BOOK"+IntToString(i)));
|
||||
i++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user