Insert item

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
MKas
Posts: 25
Joined: Wed Apr 15, 2009 10:57 am

Insert item

Post by MKas »

Hi,
how to insert item into db while server is running? Is it possible?
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Insert item

Post by momo61 »

go into items table and add an item with a unique itemID
MKas
Posts: 25
Joined: Wed Apr 15, 2009 10:57 am

Re: Insert item

Post by MKas »

I tried. Early everything was allright, but now after some update it doesn't works. Item don't appears visible until server restart.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Insert item

Post by _DS_ »

NEVER manually add items to the table while server is running ! This will ends in duplicated ids and problems.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Insert item

Post by qwerty13 »

If you want give item to player try telnet. Or maybe some php script working with telnet?
MKas
Posts: 25
Joined: Wed Apr 15, 2009 10:57 am

Re: Insert item

Post by MKas »

With telnet is problem too. You cannot give an item when player are offline.
Early I inserted items to db with id lower than minimal server id. That works but items appears visible only after server restart.
itskidd
Posts: 14
Joined: Thu Jul 16, 2009 1:37 am

Re: Insert item

Post by itskidd »

I dont recommend adding items using the database when the server is running.. if you wanna give someone an item.. wouldnt spawning it on a gm character and then trading it to them alittle more umm.. what u call it.. "Not a bugged meathod".. As far as I know when you add to the database while the server is running, that doesn't work out to well..

Try spawning item with admin then trade?
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: Insert item

Post by blacksea »

i used to add items when server running and chars offline until today with dropcalc and i didnt have a problem, now the item dissapear.
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: Insert item

Post by lishawj »

I had used the method below occasionally to give item to offline characters and I had never had a problem......YET.

1. Create/spawn the item on a GM character.
2. While both GM and receiving character are offline (server is running), I change the "owner_id" of the object(s) to the recipient's "owner_id".
3. When the recipient next logs in (whenever he/she does log in), the item are now in the recipient's inventory.
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Insert item

Post by Notorious »

Shouldn't there be an easy way to give a player a quest-object?

And what about GM deleting items from a players inventory, shouldn't there be such an option?

How do one see what is inside a clans warehouse?
MKas
Posts: 25
Joined: Wed Apr 15, 2009 10:57 am

Re: Insert item

Post by MKas »

lishawj wrote:I had used the method below occasionally to give item to offline characters and I had never had a problem......YET.

1. Create/spawn the item on a GM character.
2. While both GM and receiving character are offline (server is running), I change the "owner_id" of the object(s) to the recipient's "owner_id".
3. When the recipient next logs in (whenever he/she does log in), the item are now in the recipient's inventory.
Thanks, I think I will use that way.
Post Reply