character_skills cleanup
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
character_skills cleanup
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.)
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.)
- Notorious
- Posts: 501
- Joined: Thu May 28, 2009 3:50 pm
- Location: Sweden
Re: character_skills cleanup
Maybe this:
Code: Select all
DELETE FROM character_skills WHERE skill_level < 101;
-
- Posts: 228
- Joined: Mon May 05, 2008 10:34 pm
Re: character_skills cleanup
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

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

- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: character_skills cleanup
check old-forum . there was a script for skill cleaning, but would need a rework for gracia.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
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 228
- Joined: Mon May 05, 2008 10:34 pm
Re: character_skills cleanup
I've check but couldn't find it, could you plz give us a link?janiii wrote:check old-forum . there was a script for skill cleaning, but would need a rework for gracia.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
Thx janiii

- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: character_skills cleanup
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: character_skills cleanup
i have forgotten skills as auto-learn skills. so, should i go ahead and use Notorious' SQL query ?
-
- Posts: 228
- Joined: Mon May 05, 2008 10:34 pm
Re: character_skills cleanup
I guess yes, but a backup is your best friend.momo61 wrote:i have forgotten skills as auto-learn skills. so, should i go ahead and use Notorious' SQL query ?
Janiii why wasn't this feauture commited, any side effect?

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: character_skills cleanup
This feature was not committed due to: forgotten scrolls, subclass cert skills.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 228
- Joined: Mon May 05, 2008 10:34 pm
Re: character_skills cleanup
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._DS_ wrote:This feature was not committed due to: forgotten scrolls, subclass cert skills.

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: character_skills cleanup
Useless with so many skills non-checked.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 458
- Joined: Fri Oct 05, 2007 1:29 am
Re: character_skills cleanup
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.
-
- Posts: 228
- Joined: Mon May 05, 2008 10:34 pm
Re: character_skills cleanup
Anyway, it's better that 50 chars, with stacked subs..._DS_ wrote:Useless with so many skills non-checked.
At least till that problem is solved.
