• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Reset promoted vocations to normal vocations

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,513
Solutions
27
Reaction score
866
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Solution
No need to over think it, always back up your DB before changes so you can be as wreckless as you want <3
PhpMyAdmin -> Select DB -> Select Export from top -> Save .db file named BeforeSystemName.db
Now you will always have a backup of the database "before adding system" ;D

Lua:
UPDATE `players` SET `vocation` = 1 WHERE `vocation`= 5;
UPDATE `players` SET `vocation` = 2 WHERE `vocation`= 6;
UPDATE `players` SET `vocation` = 3 WHERE `vocation`= 7;
UPDATE `players` SET `vocation` = 4 WHERE `vocation`= 8;
This query does not have a setter for vocation.If you want remain vocations but just downgrade from promoted state then check if voc is >4, and if yes then substract 4.
So if MS is 5 and Sorcerer is 1 after substracting 5-4 will be 1 again.
 
This query does not have a setter for vocation.If you want remain vocations but just downgrade from promoted state then check if voc is >4, and if yes then substract 4.
So if MS is 5 and Sorcerer is 1 after substracting 5-4 will be 1 again.

Thanks! Any idea of how the query should exactly be?
I'm worried of not screwing the database, otherwise, patching it back is a pain

Thanks in advance
Regards!
 
No need to over think it, always back up your DB before changes so you can be as wreckless as you want <3
PhpMyAdmin -> Select DB -> Select Export from top -> Save .db file named BeforeSystemName.db
Now you will always have a backup of the database "before adding system" ;D

Lua:
UPDATE `players` SET `vocation` = 1 WHERE `vocation`= 5;
UPDATE `players` SET `vocation` = 2 WHERE `vocation`= 6;
UPDATE `players` SET `vocation` = 3 WHERE `vocation`= 7;
UPDATE `players` SET `vocation` = 4 WHERE `vocation`= 8;
 
Last edited:
Solution
Back
Top