Its a global enchant decrease issue.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 14
- Joined: Fri Jan 08, 2010 12:03 pm
Its a global enchant decrease issue.
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?
» 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?
-
- Posts: 175
- Joined: Thu Dec 17, 2009 7:20 am
Re: Its a global enchant decrease issue.
open " item " tables
find " enchant " = 24
change to 14
find " enchant " = 24
change to 14
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: Its a global enchant decrease issue.
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;
-
- Posts: 14
- Joined: Fri Jan 08, 2010 12:03 pm
Re: Its a global enchant decrease issue.
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
)
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.
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: Its a global enchant decrease issue.
the query will find all these items for you
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Its a global enchant decrease issue.
imo this could damage some other data, as the enchant_level is used also for other things like lottery ticket or pet level.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;
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: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: Its a global enchant decrease issue.
you sure? isn't that what loc_data is for?
or does enchant level store pet level for pet collars?
or does enchant level store pet level for pet collars?
-
- Posts: 14
- Joined: Fri Jan 08, 2010 12:03 pm
Re: Its a global enchant decrease issue.
Seems like its working. Thank you VERY much!
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Its a global enchant decrease issue.
i would be more cautious and run this query (checking if the item is a weapon):
//too late.. poor players with pets..
Code: Select all
UPDATE items SET enchant_level = 16 WHERE enchant_level > 16 AND item_id IN (SELECT item_id FROM weapon);
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!
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: Its a global enchant decrease issue.
btw.. he wanted to put armor and jewelery to +16 as well
and since pet collars are etcitems, maybe best to do:
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);