AOC_PRC8/_module/nss/mode_change.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

24 lines
575 B
Plaintext

#include "rank"
void main()
{
object oPC = GetPCSpeaker();
object oMod = GetModule();
object oItem;
SetLocalInt(oPC, "iKilled", 0);
SetLocalInt(oPC, "iDied", 0);
SetLocalInt(oMod, "mod_mode", 1);
SetLocked(GetObjectByTag("arena_crafter"), FALSE);
SetLocked(GetObjectByTag("arena_warehouse"), FALSE);
PlaySound("gui_select");
PlaySound("sce_positive");
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
FloatingTextStringOnCreature("Inventory Purged", oPC);
GetRank(oPC);
}