![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
is there a way to take away a piece of equipment or adena from everyone after a costly glich.
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
I guess you could use a SQL Querry, i dont know exactly how to do them, but thats a way.
Yours. EntroX |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2005
Posts: 555
|
Look up some basic sql queries.
ie.... Code:
USE lin2world UPDATE user_data SET owner = '0' WHERE item_id = '666' You can also use this code to update other things, ie name. Code:
UPDATE user_data SET char_name = 'newchar' WHERE char_name = 'oldchar'
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
Server Down + SQL = Safe Adena and Equip Removal.
Basic SQL rulz xD. Oso |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
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?
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 555
|
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.. |
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 216
|
adena ID is 57
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
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 |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
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?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2005
Posts: 555
|
You will want to run the code when the l2 server is offline.
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
worked great thnx...
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|