Its a global enchant decrease issue.

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
Bru7aL
Posts: 14
Joined: Fri Jan 08, 2010 12:03 pm

Its a global enchant decrease issue.

Post by Bru7aL »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

I'd like to know how can i decrease all max enchanted weapons/armors/jewels automaticly. What i mean : I have a server with max enchant +24 but it was all about the Master Yogi Event, so now i'd like to take the MAX enchant back to +16 but there are already players with stuffs +24. So my question is how can i decrease all those over +16 enchanted items back to +16?
rigid
Posts: 175
Joined: Thu Dec 17, 2009 7:20 am

Re: Its a global enchant decrease issue.

Post by rigid »

open " item " tables
find " enchant " = 24
change to 14
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Its a global enchant decrease issue.

Post by Probe »

this SQL query should do the trick (run it on your database, make sure you back up before this!!!!)

Code: Select all

UPDATE `items` SET `enchant_level` = 16 WHERE `enchant_level` > 16;
Bru7aL
Posts: 14
Joined: Fri Jan 08, 2010 12:03 pm

Re: Its a global enchant decrease issue.

Post by Bru7aL »

Couldnt find any item enchanted to more then +10 ... and there are many items enchanted over +10 for example ... its pretty weird isnt it ?


p.s. lemme try your way, and tnx in advance :))
Last edited by Bru7aL on Thu Feb 11, 2010 4:56 pm, edited 1 time in total.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Its a global enchant decrease issue.

Post by Probe »

the query will find all these items for you
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Its a global enchant decrease issue.

Post by janiii »

Probe wrote:this SQL query should do the trick (run it on your database, make sure you back up before this!!!!)

Code: Select all

UPDATE `items` SET `enchant_level` = 16 WHERE `enchant_level` > 16;
imo this could damage some other data, as the enchant_level is used also for other things like lottery ticket or pet level.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Its a global enchant decrease issue.

Post by Probe »

you sure? isn't that what loc_data is for?
or does enchant level store pet level for pet collars?
Bru7aL
Posts: 14
Joined: Fri Jan 08, 2010 12:03 pm

Re: Its a global enchant decrease issue.

Post by Bru7aL »

Seems like its working. Thank you VERY much!
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Its a global enchant decrease issue.

Post by janiii »

i would be more cautious and run this query (checking if the item is a weapon):

Code: Select all

UPDATE items SET enchant_level = 16 WHERE enchant_level > 16 AND item_id IN (SELECT item_id FROM weapon);
//too late.. poor players with pets..
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Its a global enchant decrease issue.

Post by BiggBoss »

janiii wrote: //too late.. poor players with pets..
:lol:
Image
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Its a global enchant decrease issue.

Post by Probe »

btw.. he wanted to put armor and jewelery to +16 as well
and since pet collars are etcitems, maybe best to do:

Code: Select all

UPDATE items SET enchant_level = 16 WHERE enchant_level > 16 AND item_id IN (SELECT item_id FROM weapon,armor);
Post Reply