// Evol Script
// Author: Gumi, Monwarez
function script GlobalDebugMenu {
function resetAll {
function doReset {
resetstatus;
resetskill;
resetlvl 1;
dispbottom b("ALL PERMANENT STATUS BOOSTS WERE ALSO RESET");
dispbottom l("Reset done!");
if (getarg(0,0) == 3) {
closedialog;
doevent "::OnGlobalQuestReset"; // executes in all quest npcs // FIXME: maybe have a `resetquest` buildin?
Zeny = 0;
BankVault = 0;
clearitem;
warp "000-0", 0, 0; // starting point
end; // script must end for doevent to execute
}
return;
}
clear;
setnpcdialogtitle l("Debug - Reset");
mes l("What do you want to reset?");
select
l("Abort"),
l("Reset stats, skills, level"),
l("Reset EVERYTHING"),
l("Return to Debug menu");
switch (@menu) {
case 2:
case 3: doReset @menu;
}
return;
}
do
{
clear;
setnpcdialogtitle l("Debug");
mes l("This menu allows you to modify your account data.");
mes "";
mes l("What do you want to do?");
select
l("Change my appearance"),
l("Change my quests"),
l("Reset"),
rif(getarg(0,0), l("Return to Super Menu"));
.@c = getarg(0,0) ? 2 : 1;
switch (@menu)
{
case 1: BarberDebug .@c; break;
case 4: GlobalQuestDebug .@c; break;
case 5: resetAll; break;
case 6: return;
}
} while(1);
}
- script @debug 32767,{
end;
OnCall:
if (!is_admin()) {
end;
}
GlobalDebugMenu;
closedialog;
end;
OnInit:
bindatcmd "debug", "@debug::OnCall", 99, 99, 1;
// TODO / FIXME: add a @test command that opens the help window for test-server
}