character_skills cleanup

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

character_skills cleanup

Post 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.)
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: character_skills cleanup

Post by Notorious »

Maybe this:

Code: Select all

DELETE FROM character_skills WHERE skill_level < 101;
mgbhard
Posts: 228
Joined: Mon May 05, 2008 10:34 pm

Re: character_skills cleanup

Post by mgbhard »

That would also erase forgotten scroll skills, bad idea :P

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
Image
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: character_skills cleanup

Post by janiii »

mgbhard wrote:That would also erase forgotten scroll skills, bad idea :P

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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
mgbhard
Posts: 228
Joined: Mon May 05, 2008 10:34 pm

Re: character_skills cleanup

Post by mgbhard »

janiii wrote:
mgbhard wrote:That would also erase forgotten scroll skills, bad idea :P

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
Image
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: character_skills cleanup

Post by janiii »

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: character_skills cleanup

Post by momo61 »

i have forgotten skills as auto-learn skills. so, should i go ahead and use Notorious' SQL query ?
mgbhard
Posts: 228
Joined: Mon May 05, 2008 10:34 pm

Re: character_skills cleanup

Post 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?
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: character_skills cleanup

Post by _DS_ »

This feature was not committed due to: forgotten scrolls, subclass cert skills.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
mgbhard
Posts: 228
Joined: Mon May 05, 2008 10:34 pm

Re: character_skills cleanup

Post 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.
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: character_skills cleanup

Post by _DS_ »

Useless with so many skills non-checked.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: character_skills cleanup

Post 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.
mgbhard
Posts: 228
Joined: Mon May 05, 2008 10:34 pm

Re: character_skills cleanup

Post 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.
Image
Post Reply