Skip to content

Button & Method....

Featured Replies

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 !

  • Author

Fixed. Thanks to @lucabruns

  • Zake locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.