Hello Friends, i wanna add to my home community board a buttons, for example (buffer, gatekeeper). I write in the BoardsManager.java the command and in the ServicesBBSManager.java the command but in the game i am getting the message "the command _bbspipin;gatekeeper is not implemented yet.
I dont know how can add this addons, has anyone the possibility to help me please?.
publicclassBoardsManager{publicvoid handleCommands(L2GameClient client,String command){
L2PcInstance activeChar = client.getActiveChar();if(activeChar == null){return;}if(SunriseEvents.cbBypass(activeChar, command)){return;}if(CommunityDonateConfigs.COMMUNITY_DONATE_ALLOW && command.startsWith(CommunityDonateConfigs.BYPASS_COMMAND)){DonateBBSManager.getInstance().cbByPass(command, activeChar);return;}if(!Config.ENABLE_COMMUNITY){
activeChar.sendPacket(SystemMessageId.CB_OFFLINE);return;}if(command.startsWith(ServicesBBSManager.getInstance()._servicesBBSCommand)){ServicesBBSManager.getInstance().cbByPass(command, activeChar);return;}if(command.startsWith("_bbspipin")){ServicesBBSManager.getInstance().cbByPass(command, activeChar);}if(command.startsWith("_bbsclan")){ClanBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbsmemo")){// TopicBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbstopics")){TopicBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbsposts")){PostBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbstop")){TopBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbshome")){TopBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_maillist")){MailBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_friendlist_0_")|| command.startsWith("_bbs_friends")|| command.startsWith("_bbsfriends")){}elseif(command.startsWith("_bbsloc")){// RegionBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbsgetfav")|| command.startsWith("bbs_add_fav")|| command.startsWith("_bbsdelfav_")){FavoriteBBSManager.getInstance().cbByPass(command, activeChar);}elseif(command.startsWith("_bbslink")){// RegionBBSManager.getInstance().cbByPass(command, activeChar);}else{ShowBoard sb =newShowBoard("<html><body><br><br><center>the command: "+ command +" is not implemented yet</center><br><br></body></html>","101");
activeChar.sendPacket(sb);
activeChar.sendPacket(newShowBoard(null,"102"));
activeChar.sendPacket(newShowBoard(null,"103"));}}publicvoid handleWriteCommands(L2GameClient client,String url,String arg1,String arg2,String arg3,String arg4,String arg5){
L2PcInstance activeChar = client.getActiveChar();if(activeChar == null){return;}if(url.equals("Topic")){TopicBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}elseif(url.equals("Post")){PostBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}elseif(url.equals("Region")){// Future usage// RegionBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}elseif(url.equals("Friends")){// Future usage// FriendsBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}elseif(url.equals("Notice")){ClanBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}elseif(url.equals("Mail")){MailBBSManager.getInstance().parsewrite(url, arg1, arg2, arg3, arg4, arg5, activeChar);}else{// no nothing}return;}// This will be used for favorite bbs manager/** The bypasses used by the players. */private final Map<Integer,String> _bypasses =newConcurrentHashMap<>();/**
* Sets the last bypass used by the player.
* @param player the player
* @param title the title
* @param bypass the bypass
*/publicvoid addBypass(L2PcInstance player,String title,String bypass){
_bypasses.put(player.getObjectId(), title +"&"+ bypass);}/**
* Removes the last bypass used by the player.
* @param player the player
* @return the last bypass used
*/publicString removeBypass(L2PcInstance player){return _bypasses.remove(player.getObjectId());}publicstaticBoardsManager getInstance(){returnSingletonHolder._instance;}privatestaticclassSingletonHolder{protectedstatic final BoardsManager _instance =newBoardsManager();}}// CLASS SERVICESBBSManagerpublicclassServicesBBSManager extends BaseBBSManager{publicString _servicesBBSCommand =CommunityServicesConfigs.BYPASS_COMMAND;@Overridepublicvoid cbByPass(String command, L2PcInstance activeChar){if(!CommunityServicesConfigs.COMMUNITY_SERVICES_ALLOW){
activeChar.sendMessage("This function is disabled by admin.");return;}String path ="data/html/CommunityBoard/services/";String filepath ="";String content ="";if(command.equals(_servicesBBSCommand +"")){BoardsManager.getInstance().addBypass(activeChar,"Service Command", command);
filepath = path +"main.htm";
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(), filepath);
separateAndSend(content, activeChar);}elseif(command.startsWith("_bbspipin"+";gatekeeper")){BoardsManager.getInstance().addBypass(activeChar,"Service Command", command);
filepath = path +"main.htm";
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(), filepath);
separateAndSend(content, activeChar);}elseif(command.startsWith(_servicesBBSCommand +";gatekeeper")){BoardsManager.getInstance().addBypass(activeChar,"Service Gatekeeper", command);StringTokenizer st =newStringTokenizer(command,";");
st.nextToken();
st.nextToken();String file = st.nextToken();
path ="data/html/CommunityBoard/services/gatekeeper/";
sendHtm(activeChar, filepath, path, file, command);}elseif(command.startsWith(_servicesBBSCommand +";")){StringTokenizer st =newStringTokenizer(command,";");
st.nextToken();String file = st.nextToken();
sendHtm(activeChar, filepath, path, file, command);}elseif(command.startsWith(_servicesBBSCommand +"_sendMultisell")){BoardsManager.getInstance().addBypass(activeChar,"Service Multisell", command);if(!CommunityServicesConfigs.COMMUNITY_SERVICES_SHOP_ALLOW){
activeChar.sendMessage("This function is disabled by admin.");return;}if(!CommunityServicesConfigs.COMMUNITY_SERVICES_SHOP_NONPEACE &&!activeChar.isInsideZone(ZoneIdType.PEACE)){
activeChar.sendMessage("You cannot use this function outside peace zone.");}else{try{String multisell = commandSeperator(command);int multi =Integer.valueOf(multisell);switch(multi){case90525:
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(),"data/html/CommunityBoard/services/symbolMaker.htm");break;case90526:
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(),"data/html/CommunityBoard/services/warehouse.htm");break;case90539:case90540:case90541:
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(),"data/html/CommunityBoard/services/exclusiveShop.htm");break;default:
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(),"data/html/CommunityBoard/services/gmshop.htm");break;}if((multi ==90527)||(multi ==90528)||(multi ==90529)||(multi ==90530)||(multi ==90531)||(multi ==90532)||(multi ==90533)||(multi ==90534)||(multi ==90535)||(multi ==90536)||(multi ==90537)||(multi ==90538)){
content =HtmCache.getInstance().getHtm(activeChar, activeChar.getHtmlPrefix(),"data/html/CommunityBoard/services/blacksmith.htm");}
separateAndSend(content, activeChar);if(CommunityServicesConfigs.MULTISELL_LIST.contains(multi)){
activeChar.setIsUsingAioMultisell(true);MultisellData.getInstance().separateAndSend(multi, activeChar, null,false);}else{SecurityActions.startSecurity(activeChar,SecurityType.COMMUNITY_SYSTEM);}}catch(Exception e){SecurityActions.startSecurity(activeChar,SecurityType.COMMUNITY_SYSTEM);}}}
and continues
I created a system of FAKES to improve my GeoEngine, but I'm having problems with blocks. I've tried everything to fix it, but a block going from the inside out bugs the player's movement and freezes them. However, the reverse doesn't cause this bug. If I'm outside and click inside, the path is traced normally, but if it's reversed, it bugs at the fence. I've created several debugs and read all kinds of GeoEngine versions, but I haven't had any success. Can someone give me some insight into graphical data?
When fakes spawn, they are given possible routes, but they don't follow them. If there's a target, instead of following the correctly drawn path, it simply uses a straight line.
The legendary L2Elixir you remember from 2008 is officially back — remastered, refreshed, and reborn!
Our x3 Interlude server launched on 28 November, and the community is growing every single day.
🔥 Fresh start
🔥 Active players joining daily
🔥 Long-term project — Licensed for over 5 years from PlayINERA.
🔥 True 2008 nostalgia with modern stability & polish
If you were part of the original Elixir family, this is your chance to relive the magic.
If you’re new — welcome to a classic Lineage II experience built with passion, not profit.
Join the battles. Join the nostalgia.
Join L2Elixir Reborn.
Website: https://l2elixir.org/
Discord: https://discord.gg/5ydPHvhbxs
Question
barao45
Hello Friends, i wanna add to my home community board a buttons, for example (buffer, gatekeeper). I write in the BoardsManager.java the command and in the ServicesBBSManager.java the command but in the game i am getting the message "the command _bbspipin;gatekeeper is not implemented yet.
I dont know how can add this addons, has anyone the possibility to help me please?.
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now