[HELP] All Characters back to level 1

06/18/2020 16:52 Miracle`#1
Help please.. Anyone have a command that all characters back to level 1? Is that in SQL right? Execute command?
06/18/2020 17:03 netHoxInc#2
You could use a sql query, yes. Just leave it condition less or check for 'is 1==1'
query will be forced to success and set the level of any char to your needs.

Im not playing arround with SQL much so i dont got the commands in mind, still google will probably first-hit-you up.
06/18/2020 20:14 sebariio#3
USE CHARACTER_01_DBF;
UPDATE dbo.CHARACTER_TBL SET m_nLevel = 1
06/18/2020 21:17 Drabur#4
Are you sure you want to set all players to level 1 without reset statpoints etc?
06/19/2020 14:28 sebariio#5
Quote:
Originally Posted by Drabur View Post
Are you sure you want to set all players to level 1 without reset statpoints etc?
He wants help to reset level
Anyway a reset with database is a bad idea even if you change the statpoints
06/19/2020 14:35 Miracle`#6
Oh sorry i forgot to mention to reset also the statpoints :o

What is the command please. Need your help guys..
06/20/2020 12:03 .S0ulSeller#7
[Only registered and activated users can see links. Click Here To Register...]

Quote:
Originally Posted by Miracle` View Post
Execute command?
Yes.
06/20/2020 12:40 cookie69#8
Quote:
Originally Posted by Miracle` View Post
Oh sorry i forgot to mention to reset also the statpoints :o

What is the command please. Need your help guys..
void CMover::InitLevel( int nJob, LONG nLevel, BOOL bGamma )
06/20/2020 14:58 sebariio#9
I think the best way could be:
1. check last connexion date with if (lastConnexionDate < theDateYouWantToReset)
2. use InitLevel() but you will have to check if player has unauthorized equipment for a lv1
3. if player has equipment, you'll have to unequip it but it will be a problem if he has inventory full
06/20/2020 20:26 cookie69#10
Quote:
Originally Posted by sebariio View Post
I think the best way could be:
1. check last connexion date with if (lastConnexionDate < theDateYouWantToReset)
2. use InitLevel() but you will have to check if player has unauthorized equipment for a lv1
3. if player has equipment, you'll have to unequip it but it will be a problem if he has inventory full
well, he didn't clarify what he is doing and what he wants clearly..if it is a wipe out then I guess he needs to put all chars level 1 and destroy every equipment (wipe the inventories, emails,banks...)