Insert item
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 25
- Joined: Wed Apr 15, 2009 10:57 am
Insert item
Hi,
how to insert item into db while server is running? Is it possible?
how to insert item into db while server is running? Is it possible?
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Insert item
go into items table and add an item with a unique itemID
-
- Posts: 25
- Joined: Wed Apr 15, 2009 10:57 am
Re: Insert item
I tried. Early everything was allright, but now after some update it doesn't works. Item don't appears visible until server restart.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Insert item
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;
public static final int PI = 3.1415926535897932384626433832795;
- qwerty13
- Posts: 640
- Joined: Mon Feb 02, 2009 9:57 am
- Location: Europe
- Contact:
Re: Insert item
If you want give item to player try telnet. Or maybe some php script working with telnet?
-
- Posts: 25
- Joined: Wed Apr 15, 2009 10:57 am
Re: Insert item
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.
Early I inserted items to db with id lower than minimal server id. That works but items appears visible only after server restart.
-
- Posts: 14
- Joined: Thu Jul 16, 2009 1:37 am
Re: Insert item
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?
Try spawning item with admin then trade?
-
- Posts: 458
- Joined: Fri Oct 05, 2007 1:29 am
Re: Insert item
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.
-
- Posts: 253
- Joined: Thu Apr 30, 2009 12:29 am
Re: Insert item
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.
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.
- Notorious
- Posts: 501
- Joined: Thu May 28, 2009 3:50 pm
- Location: Sweden
Re: Insert item
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?
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?
-
- Posts: 25
- Joined: Wed Apr 15, 2009 10:57 am
Re: Insert item
Thanks, I think I will use that way.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.