Page 1 of 1
character_skills cleanup
Posted: Wed Feb 10, 2010 11:06 pm
by momo61
Hey guys,
What is the best way to delete all the existing regular skills that are NOT enchanted from the character_skills table?
The reason for doing this is 1) cleanup the whole gameserver database and 2) ensure that characters dont have stacked skills.
So again, best way to delete regular skills from the character_skills table that are NOT enchanted (power, chance, mana, elemental etc.)
Re: character_skills cleanup
Posted: Thu Feb 11, 2010 11:51 pm
by Notorious
Maybe this:
Code: Select all
DELETE FROM character_skills WHERE skill_level < 101;
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 1:03 pm
by mgbhard
That would also erase forgotten scroll skills, bad idea
I've ask about this but didn't get any response.
I don't remind in what chronicle, but l2j use to have a skill cleaning script before. Is really usefull, specially when every day 3 - 5 chars, get bugged while adding or changing their subclass
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 1:05 pm
by janiii
mgbhard wrote:That would also erase forgotten scroll skills, bad idea
I've ask about this but didn't get any response.
I don't remind in what chronicle, but l2j use to have a skill cleaning script before. Is really usefull, specially when every day 3 - 5 chars, get bugged while adding or changing their subclass
check old-forum . there was a script for skill cleaning, but would need a rework for gracia.
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 1:16 pm
by mgbhard
janiii wrote:mgbhard wrote:That would also erase forgotten scroll skills, bad idea
I've ask about this but didn't get any response.
I don't remind in what chronicle, but l2j use to have a skill cleaning script before. Is really usefull, specially when every day 3 - 5 chars, get bugged while adding or changing their subclass
check old-forum . there was a script for skill cleaning, but would need a rework for gracia.
I've check but couldn't find it, could you plz give us a link?
Thx janiii
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 1:26 pm
by janiii
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 1:55 pm
by momo61
i have forgotten skills as auto-learn skills. so, should i go ahead and use Notorious' SQL query ?
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 2:04 pm
by mgbhard
momo61 wrote:i have forgotten skills as auto-learn skills. so, should i go ahead and use Notorious' SQL query ?
I guess yes, but a backup is your best friend.
Janiii why wasn't this feauture commited, any side effect?
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 2:56 pm
by _DS_
This feature was not committed due to: forgotten scrolls, subclass cert skills.
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 3:22 pm
by mgbhard
_DS_ wrote:This feature was not committed due to: forgotten scrolls, subclass cert skills.
I've applied the patch by hand, added the skills (forgotten and subclass) at the allowed list, and it seems to work well, i'll test it on live tomorrow, and paste the list here so any who wants it can use it.
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 3:35 pm
by _DS_
Useless with so many skills non-checked.
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 4:21 pm
by blacksea
this script it was very good to find characters with 2 class skills, now even with flood protection i still find from time to time characters with skills from another class.
Re: character_skills cleanup
Posted: Fri Feb 12, 2010 4:39 pm
by mgbhard
_DS_ wrote:Useless with so many skills non-checked.
Anyway, it's better that 50 chars, with stacked subs...
At least till that problem is solved.