Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.06.2005, 00:33   #1
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default recalling equipment

is there a way to take away a piece of equipment or adena from everyone after a costly glich.
Dave is offline  
Old 28.06.2005, 01:12   #2
EntroX
Архивный участник
 
Join Date: May 2005
Posts: 373
Default

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

Yours.
EntroX
EntroX is offline  
Old 28.06.2005, 05:56   #3
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Look up some basic sql queries.

ie....

Code:
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.

Code:
UPDATE user_data SET char_name = 'newchar' WHERE char_name = 'oldchar'
Basic SQL is really helpful. Google it
Sakumi is offline  
Old 28.06.2005, 17:30   #4
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Server Down + SQL = Safe Adena and Equip Removal.

Basic SQL rulz xD.

Oso
Osito2Dancer is offline  
Old 04.07.2005, 16:44   #5
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default Ok heres the deal

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?
Dave is offline  
Old 04.07.2005, 18:41   #6
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

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..
Sakumi is offline  
Old 04.07.2005, 18:50   #7
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

adena ID is 57
BiGBoY is offline  
Old 04.07.2005, 19:15   #8
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

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
Osito2Dancer is offline  
Old 05.07.2005, 00:54   #9
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default ran sql query

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?
Dave is offline  
Old 05.07.2005, 03:55   #10
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

You will want to run the code when the l2 server is offline.
Sakumi is offline  
Old 05.07.2005, 14:43   #11
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default worked great

worked great thnx...
Dave is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:38.