• 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!

Lua How to Reset MagicLevel and Skills?

mezuf98

New Member
Joined
Jul 4, 2016
Messages
37
Reaction score
0
Need to set player magiclevel to 0 and skills to 10.

I tried something like this setBaseMagicLevel(0) and other things but nothing... Someone can healp me?

Thanks!
 
make the talkaction kick the player and query database to reset
afaik there is no way to remove skills from a player ingame
there is player:addSkillTries(), but if you try to add a negative value it seems like it internprets it like an overflow (e.g -1 tries for SKILL_CLUB got me form 10->67 axe on a sorc :D )
 
make the talkaction kick the player and query database to reset
afaik there is no way to remove skills from a player ingame
there is player:addSkillTries(), but if you try to add a negative value it seems like it internprets it like an overflow (e.g -1 tries for SKILL_CLUB got me form 10->67 axe on a sorc :D )
Hmm, ok i will try this thank you
 
mm i think you can use this
Code:
//Players
UPDATE players SET level = 1, experience = 0, maglevel = 0, health = 150, healthmax = 150, mana = 0, manamax = 0, manaspent = 0, redskulltime = 0, soul = 100, town_id = 0, cap = 400, vocation = 0, posx = 32097, posy = 32219, posz = 7, lastlogin = 0, lastlogout = 0, lastip = 0, rank_id = 0, guildnick = '', bless1 = 0, bless2 = 0, bless3 = 0, bless4 = 0, bless5 = 0, bank_balance = 0;

//Skills
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 0;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 1;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 2;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 3;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 4;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 5;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 6;
 
mm i think you can use this
Code:
//Players
UPDATE players SET level = 1, experience = 0, maglevel = 0, health = 150, healthmax = 150, mana = 0, manamax = 0, manaspent = 0, redskulltime = 0, soul = 100, town_id = 0, cap = 400, vocation = 0, posx = 32097, posy = 32219, posz = 7, lastlogin = 0, lastlogout = 0, lastip = 0, rank_id = 0, guildnick = '', bless1 = 0, bless2 = 0, bless3 = 0, bless4 = 0, bless5 = 0, bank_balance = 0;

//Skills
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 0;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 1;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 2;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 3;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 4;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 5;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 6;
Dosn't work, but thanks i trying a lot here
 
Last edited:
Back
Top Bottom