Files
Anphillia_PRC8/_module/nss/zep_cr_nocheat.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

23 lines
787 B
Plaintext

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");
}
}