PDA

View Full Version : recalling equipment


Dave
28.06.2005, 00:33
is there a way to take away a piece of equipment or adena from everyone after a costly glich.

EntroX
28.06.2005, 01:12
I guess you could use a SQL Querry, i dont know exactly how to do them, but thats a way.

Yours.
EntroX

Sakumi
28.06.2005, 05:56
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

Dave
04.07.2005, 16:44
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?

Sakumi
04.07.2005, 18:41
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..

BiGBoY
04.07.2005, 18:50
adena ID is 57

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

Dave
05.07.2005, 00:54
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?

Sakumi
05.07.2005, 03:55
You will want to run the code when the l2 server is offline.

Dave
05.07.2005, 14:43
worked great thnx...