diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 9f7d9fb2f8..ccb7536694 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -68,6 +68,7 @@ public final class HomeBoard implements IParseBoardHandler private static final String[] CUSTOM_COMMANDS = { Config.PREMIUM_SYSTEM_ENABLED && Config.COMMUNITY_PREMIUM_SYSTEM_ENABLED ? "_bbspremium" : null, + Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsexcmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null, Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null, @@ -150,6 +151,15 @@ public final class HomeBoard implements IParseBoardHandler returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false); } + else if (command.startsWith("_bbsexcmultisell")) + { + final String fullBypass = command.replace("_bbsexcmultisell;", ""); + final String[] buypassOptions = fullBypass.split(","); + final int multisellId = Integer.parseInt(buypassOptions[0]); + final String page = buypassOptions[1]; + returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); + MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, true); + } else if (command.startsWith("_bbssell")) { final String page = command.replace("_bbssell;", ""); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 9f7d9fb2f8..ccb7536694 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -68,6 +68,7 @@ public final class HomeBoard implements IParseBoardHandler private static final String[] CUSTOM_COMMANDS = { Config.PREMIUM_SYSTEM_ENABLED && Config.COMMUNITY_PREMIUM_SYSTEM_ENABLED ? "_bbspremium" : null, + Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsexcmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null, Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null, @@ -150,6 +151,15 @@ public final class HomeBoard implements IParseBoardHandler returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false); } + else if (command.startsWith("_bbsexcmultisell")) + { + final String fullBypass = command.replace("_bbsexcmultisell;", ""); + final String[] buypassOptions = fullBypass.split(","); + final int multisellId = Integer.parseInt(buypassOptions[0]); + final String page = buypassOptions[1]; + returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); + MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, true); + } else if (command.startsWith("_bbssell")) { final String page = command.replace("_bbssell;", ""); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 9f7d9fb2f8..ccb7536694 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -68,6 +68,7 @@ public final class HomeBoard implements IParseBoardHandler private static final String[] CUSTOM_COMMANDS = { Config.PREMIUM_SYSTEM_ENABLED && Config.COMMUNITY_PREMIUM_SYSTEM_ENABLED ? "_bbspremium" : null, + Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsexcmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null, Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null, @@ -150,6 +151,15 @@ public final class HomeBoard implements IParseBoardHandler returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false); } + else if (command.startsWith("_bbsexcmultisell")) + { + final String fullBypass = command.replace("_bbsexcmultisell;", ""); + final String[] buypassOptions = fullBypass.split(","); + final int multisellId = Integer.parseInt(buypassOptions[0]); + final String page = buypassOptions[1]; + returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); + MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, true); + } else if (command.startsWith("_bbssell")) { final String page = command.replace("_bbssell;", ""); diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 9f7d9fb2f8..ccb7536694 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -68,6 +68,7 @@ public final class HomeBoard implements IParseBoardHandler private static final String[] CUSTOM_COMMANDS = { Config.PREMIUM_SYSTEM_ENABLED && Config.COMMUNITY_PREMIUM_SYSTEM_ENABLED ? "_bbspremium" : null, + Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsexcmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null, Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null, @@ -150,6 +151,15 @@ public final class HomeBoard implements IParseBoardHandler returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false); } + else if (command.startsWith("_bbsexcmultisell")) + { + final String fullBypass = command.replace("_bbsexcmultisell;", ""); + final String[] buypassOptions = fullBypass.split(","); + final int multisellId = Integer.parseInt(buypassOptions[0]); + final String page = buypassOptions[1]; + returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); + MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, true); + } else if (command.startsWith("_bbssell")) { final String page = command.replace("_bbssell;", ""); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 9f7d9fb2f8..ccb7536694 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -68,6 +68,7 @@ public final class HomeBoard implements IParseBoardHandler private static final String[] CUSTOM_COMMANDS = { Config.PREMIUM_SYSTEM_ENABLED && Config.COMMUNITY_PREMIUM_SYSTEM_ENABLED ? "_bbspremium" : null, + Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsexcmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbsmultisell" : null, Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null, Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null, @@ -150,6 +151,15 @@ public final class HomeBoard implements IParseBoardHandler returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false); } + else if (command.startsWith("_bbsexcmultisell")) + { + final String fullBypass = command.replace("_bbsexcmultisell;", ""); + final String[] buypassOptions = fullBypass.split(","); + final int multisellId = Integer.parseInt(buypassOptions[0]); + final String page = buypassOptions[1]; + returnHtml = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"); + MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, true); + } else if (command.startsWith("_bbssell")) { final String page = command.replace("_bbssell;", "");