24 lines
575 B
Plaintext
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);
|
|
}
|