Jump to content
  • 0

Inventory duplicate item


Question

Posted (edited)

Hello dear Maxcheaters, in L2jFrozen 1132 has anybody came across addItem inventory visual update error? Not sure whether some pocket send or update is not happening correctly or wht. When you use addItem in java, DM event for example, on each kill you give reward, the items in inventory have visual error, it shows the new stack of (reward items) plus the old stack. It fixes when you do re-relogin in the game. Example: if you had 5 medals, you received 5 medals for the next kill, it displays as 10 medals (new stack) PLUS old 5 medal stack. It doesn't exist physically, only visually not updating correctly in real-time. Could someone help please?

Edited by l2life

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
2 hours ago, Banshee Garnet said:

u miss the inventoryupdate packet

Thank you for you reply. I believe I had it set and was following my inventory update pocket not to miss it, with the issue still being there, here is a snippet of same DM example:

if (Config.DM_ENABLE_KILL_REWARD) 
{ 
	// Notify the player about the item addition
	SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S);
	sm.addItemName(Config.DM_KILL_REWARD_ID);
	sm.addNumber(Config.DM_KILL_REWARD_AMOUNT);
	pk.sendPacket(sm);
	// Update inventory and broadcast user information
	InventoryUpdate iu = new InventoryUpdate();
	iu.addNewItem(pk.getInventory().addItem("DM Kill Reward", Config.DM_KILL_REWARD_ID, Config.DM_KILL_REWARD_AMOUNT, this, null));
	pk.sendPacket(iu);
	pk.broadcastUserInfo();
}

 

Edited by l2life
  • 0
Posted
16 minutes ago, l2life said:

Thank you for you reply. I believe I had it set and was following my inventory update pocket not to miss it, with the issue still being there, here is a snippet of same DM example:

if (Config.DM_ENABLE_KILL_REWARD) 
{ 
	// Notify the player about the item addition
	SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S);
	sm.addItemName(Config.DM_KILL_REWARD_ID);
	sm.addNumber(Config.DM_KILL_REWARD_AMOUNT);
	pk.sendPacket(sm);
	// Update inventory and broadcast user information
	InventoryUpdate iu = new InventoryUpdate();
	iu.addNewItem(pk.getInventory().addItem("DM Kill Reward", Config.DM_KILL_REWARD_ID, Config.DM_KILL_REWARD_AMOUNT, this, null));
	pk.sendPacket(iu);
	pk.broadcastUserInfo();
}

 

do you have contact details?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock