Create a new database called
'
Control_PlayerReset'
Inside that database, add in this script:
HTML Code:
public function doPlayerReset(playerAccount, resetNumber)
{
if (temp.playerAccount in this.(@ "v" @ temp.resetNumber @ "-accounts"))
{
return false;
}
this.(@ "v" @ temp.resetVersion @ "-accounts").add(temp.playerAccount);
sendtorc("/reset " @ temp.playerAccount);
this.trigger("update", "");
}
Once you've added both of those two in, add in the Control-NPC [Or in a player-login sequence if there is one!] this script
HTML Code:
//Change the second value to the reset value for a quick reset
Control_PlayerReset.doPlayerReset(player.account, 1);