Hello guys, I have allmost finished my community board for acis, and later I can share it with you.. I cannot fix only one thing, When I use multisell for CB the window opens but when I try to buy the items, its not possible.. If I do the same through NPC it works. I am not so familiar with java, I started 2 weeks ago to build my CB, the code inside java community board is:
else if (command.startsWith("_bbsmultisell;")) { if(activeChar.isDead() || activeChar.isAlikeDead() || activeChar.isInSiege() || activeChar.isCastingNow() || activeChar.isInCombat() || activeChar.isAttackingNow() || activeChar.isInOlympiadMode() || activeChar.isInJail() || activeChar.isFlying() || activeChar.getKarma() > 0 || activeChar.isInDuel()){ activeChar.sendMessage("U cant use shop"); return; } StringTokenizer st = new StringTokenizer(command, ";"); st.nextToken(); int multisell = Integer.parseInt(st.nextToken()); MultisellData.getInstance().separateAndSend(Integer.parseInt(st.nextToken()), activeChar, false, 0); }
I found a similar code on internet and I adapt it like that.. I dont know what should I change or add or maybe import something else.. I appriciate any help, suggestion, code! ( my thought is that the error is in the last line of the code) Thanks
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.
On April 11 at 18:00 server time (GMT +2), the open beta test of our upcoming Chronicle 2 update will begin!
We invite everyone to join, explore the world of C2 ahead of the official launch, and share your feedback.
📌 Players who find bugs during OBT will receive CoL as a reward:
- 1 CoL for each staticmeshes bug For example, passing through textures, stairs, etc.
- 2 CoL or more for server-side bugs (depending on severity).
You can report bugs via support on Discord or on the forum.
Open beta testing will last approximately until 15.04 20:00 (GMT +2).
Your activity and input will help us improve the game!
The download links will be available later.
Question
stormv
Hello guys, I have allmost finished my community board for acis, and later I can share it with you.. I cannot fix only one thing, When I use multisell for CB the window opens but when I try to buy the items, its not possible.. If I do the same through NPC it works. I am not so familiar with java, I started 2 weeks ago to build my CB, the code inside java community board is:
else if (command.startsWith("_bbsmultisell;"))
{
if(activeChar.isDead() || activeChar.isAlikeDead() || activeChar.isInSiege() || activeChar.isCastingNow() || activeChar.isInCombat() || activeChar.isAttackingNow() || activeChar.isInOlympiadMode() || activeChar.isInJail() || activeChar.isFlying() || activeChar.getKarma() > 0 || activeChar.isInDuel()){
activeChar.sendMessage("U cant use shop");
return;
}
StringTokenizer st = new StringTokenizer(command, ";");
st.nextToken();
int multisell = Integer.parseInt(st.nextToken());
MultisellData.getInstance().separateAndSend(Integer.parseInt(st.nextToken()), activeChar, false, 0);
}
I found a similar code on internet and I adapt it like that.. I dont know what should I change or add or maybe import something else.. I appriciate any help, suggestion, code! ( my thought is that the error is in the last line of the code) Thanks
Edited by stormv10 answers to this question
Recommended Posts
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.