17 lines
455 B
Plaintext
17 lines
455 B
Plaintext
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++;
|
|
}
|
|
}
|