View Full Version : recalling equipment
is there a way to take away a piece of equipment or adena from everyone after a costly glich.
I guess you could use a SQL Querry, i dont know exactly how to do them, but thats a way.
Yours.
EntroX
Look up some basic sql queries.
ie....
USE lin2world
UPDATE user_data SET owner = '0' WHERE item_id = '666'
You'll want to check the rows I chose, not sure if 'owner' and 'item_id' are correct coll. names, but the SQL should be correct. This will set the over of the item to nobody of the item you choose, ie 666 in my example.
You can also use this code to update other things, ie name.
UPDATE user_data SET char_name = 'newchar' WHERE char_name = 'oldchar'
Basic SQL is really helpful. Google it ;)
Osito2Dancer
28.06.2005, 17:30
Server Down + SQL = Safe Adena and Equip Removal.
Basic SQL rulz xD.
Oso
During a testing phase, about 15 characters got rich 150ml and up..I would like to take back that adena..can I do this and if so how?
You could do that with those statements we supplied above.
You will want to use enterprise manager to browse the lin2world database, to become familure with it, before attempting any code like above.
A side note: The adena item number is 87, or 89.. something of that sort. Its not listed as adena, but as an item with a quanitity like everything else. This may help..
Osito2Dancer
04.07.2005, 19:15
update user_item set amount='0' where item_type='57' and amount > '10000000'
That resets all adena to 0, whenever there is more than 10mil.
Oso
I ran the query and it said 21 rows where effected. I check 1 player and they still had 100ml .. does a sql server restart need to happen?
You will want to run the code when the l2 server is offline.