Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
void ZEP_PurifyItem(object oItem) {
if (GetLocalInt(oItem, "ZEP_CR_TEMPITEM")) {
PrintString("Destroyed: "+GetName(oItem));
DestroyObject(oItem);
}
}
void main() {
object oPC = GetEnteringObject();
if (GetLocalInt(oPC, "ZEP_CR_STARTED")) {
ZEP_PurifyItem(GetItemInSlot(INVENTORY_SLOT_CHEST, oPC));
ZEP_PurifyItem(GetItemInSlot(INVENTORY_SLOT_HEAD, oPC));
ZEP_PurifyItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC));
ZEP_PurifyItem(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC));
object oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem)) {
ZEP_PurifyItem(oItem);
oItem = GetNextItemInInventory(oPC);
}
DeleteLocalInt(oPC, "ZEP_CR_STARTED");
}
}