Jump to content

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...