Jump to content
  • 0

Button & Method....


Question

Posted

Hello everyone, folks, i have a problem. I want to do smth. In community board a button which give to player inventory slots. And here i need help, on method for slots adding. Method is like this :
 

if (command.startsWith("_bbstopCharactersBuySlots"))
			{
				
				if (activeChar.destroyItemByItemId("", Config.SLOTS_PRICE_ID, Config.SLOTS_PRICE_COUNT, activeChar, true))
				{
					activeChar.getInventoryLimit();
					activeChar.sendUserInfo(true);
					activeChar.sendMessage("You expanded your inventory slots by 10!");
				}
				else
				{
					activeChar.sendMessage("You don't have 30 NightMare Crystal");
				}
			}
			separateAndSend(content, activeChar);
		}

I'm sure it is wrong something here, but i need help. It is not so easy as i hear. But together, we can make this.  
Thanks for understanding!

P.S.-I need a good help, thank you again !

3 answers to this question

Recommended Posts

  • 0
Posted

You will have to set player's limit to some number not just "get". Also, you don't have to send userinfo to player but inventory update packet.

Guest
This topic is now closed to further replies.


×
×
  • Create New...