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 !