Community AlphaAlpha MUADMINS
ENEnglish
Sign in
On MuADMINSConfig ScannerDrop your files zip: rates, drops, spots, limitsOpenOn MuADMINSMeet us on DiscordAsk for help, share what you are building and talk MU with other server owners.Open
← All solutions
Server setupS2, S6, S16, S17, S18, S20

How do I reset a character with SQL on MuEmu, Louis, MSPro, X-Team or MuDevs files (ResetCount) with the server closed?

Written by MuADMINS from the sourceNot verified

Columns: Character.ResetCount and MasterResetCount (X-Team also ResetDay, ResetWek, ResetMon and MasterResetDay / Wek / Mon for the daily, weekly and monthly limits). The server reads and writes them with WZ_GetResetInfo / WZ_SetResetInfo @Account, @Name, @Reset, @ResetDay, @ResetWek, @ResetMon.

  1. Close the GameServers (an online character is saved back from memory and your change is lost). Back up.
  2. Look first:
SELECT Name, AccountID, cLevel, ResetCount, MasterResetCount, LevelUpPoint FROM Character WHERE Name = 'CharName';
  1. Reset one character that reached the level:
UPDATE Character SET cLevel = 1, Experience = 0, ResetCount = ResetCount + 1
WHERE Name = 'CharName' AND AccountID = 'account1' AND cLevel >= 400;
  1. Add points (LevelUpPoint) only if your reset rules give them.

Rankings: WebEngine (xteam.tables.php) shows ResetCount as resets and MasterResetCount as grand resets.

Source: X-Team S17 DB/MuOnline.sql (Character, WZ_GetResetInfo, WZ_SetResetInfo), MuDevs S18 MuOnline DB Create Script.sql, MuEmu based S16 MuOnline.sql; WebEngine 1.2.7 includes/config/xteam.tables.php.

Written by MuADMINS
Did this help?

Still stuck? Search MuGPS Ask the MU Assistant

MuADMINS Community Alpha: free and community made, in active development.