JIV wrote:invetory update is only junk for client, screw it..
use
Code: Select all
public void addAdena(String process, long count, L2Object reference, boolean sendMessage)
ex:
Code: Select all
player.addAdena("X", 1000, null, false);
addAdena will do inv update for you...
The problem that I allready tryed that. addAdena and addItem works prity much the same way.
addAdena adds adenas to inventory, but it doesnt save anything to database. Client gets info that he reveided adenas, and in inventory I can see them, but it's only info that client has. After char relogin, adena is equal to 0 again. Server running in debug mode and no errors. Just simply it doesn't save anything to database. Server by itself is not meesed up or something like that. If I buy something from shop, items stays even after relogin.
This addAdena is used in L2PcInstance.java if that changes anything.
exact code that I'm trying rigth now:
L2PcInstance player = getActingPlayer();
player.addAdena("Loot", AdenaReward, null, false);
And no luck...