Various community board merchant improvements.
This commit is contained in:
4
trunk/dist/game/config/Custom.properties
vendored
4
trunk/dist/game/config/Custom.properties
vendored
@@ -601,6 +601,10 @@ CommunityTeleportPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityBuffPrice = 0
|
||||
|
||||
# Disable Community Board while in combat.
|
||||
# Default: True
|
||||
CommunityCombatDisabled = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Faction System (Good vs Evil)
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="50000000"/>
|
||||
<production id="18069" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="30000000"/>
|
||||
<production id="18035" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="20000000"/>
|
||||
<production id="18001" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="50000000"/>
|
||||
<production id="18083" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="35000000"/>
|
||||
<production id="18049" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="18015" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="18033" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="35562" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="15246" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="5000"/>
|
||||
<production id="886" count="2"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="22104" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="500"/>
|
||||
<production id="736" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="500"/>
|
||||
<production id="9546" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="1336100"/> <!-- Adena -->
|
||||
<production id="78" count="1" chance="100"/> <!-- Great Sword -->
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="1336100"/> <!-- Adena -->
|
||||
<production id="23066" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="319200"/> <!-- Adena -->
|
||||
<production id="357" count="1" chance="100"/> <!-- Zubei's Breastplate -->
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="24000"/>
|
||||
<production id="8732" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="2540000"/>
|
||||
<production id="9588" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="750000"/>
|
||||
<production id="6622" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="40000000"/>
|
||||
<production id="6379" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="74946000"/>
|
||||
<production id="9860" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="75000000"/>
|
||||
<production id="15575" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="205668000"/>
|
||||
<production id="15871" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="1419" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="28671000"/>
|
||||
<production id="13687" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="20000000"/>
|
||||
<production id="13950" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="50000000"/>
|
||||
<production id="2375" count="1"/>
|
||||
|
@@ -65,6 +65,12 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
@Override
|
||||
public boolean parseCommunityBoardCommand(String command, L2PcInstance activeChar)
|
||||
{
|
||||
if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_COMBAT_DISABLED && activeChar.isInCombat())
|
||||
{
|
||||
activeChar.sendMessage("You can't use the Community Board right now.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("_bbshome") || command.equals("_bbstop"))
|
||||
{
|
||||
final String customPath = Config.CUSTOM_CB_ENABLED ? "Custom/" : "";
|
||||
@@ -95,6 +101,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false);
|
||||
return true;
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_MULTISELLS && command.startsWith("_bbssell"))
|
||||
{
|
||||
@@ -103,6 +110,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
activeChar.sendPacket(new BuyList(BuyListData.getInstance().getBuyList(423), activeChar.getAdena(), 0));
|
||||
activeChar.sendPacket(new ExBuySellList(activeChar, false));
|
||||
return true;
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_TELEPORTS && command.startsWith("_bbsteleport"))
|
||||
{
|
||||
@@ -150,7 +158,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
5
trunk/dist/game/data/xsd/multisell.xsd
vendored
5
trunk/dist/game/data/xsd/multisell.xsd
vendored
@@ -8,10 +8,7 @@
|
||||
<xs:sequence minOccurs="1" maxOccurs="1">
|
||||
<xs:element name="npc" minOccurs="1" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:positiveInteger">
|
||||
<xs:minInclusive value="1" />
|
||||
<xs:maxInclusive value="65535" />
|
||||
</xs:restriction>
|
||||
<xs:restriction base="xs:integer" />
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="5000"/>
|
||||
<production id="886" count="2"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="500"/>
|
||||
<production id="736" count="1"/>
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="1336100"/> <!-- Adena -->
|
||||
<production id="78" count="1" chance="100"/> <!-- Great Sword -->
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="319200"/> <!-- Adena -->
|
||||
<production id="357" count="1" chance="100"/> <!-- Zubei's Breastplate -->
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>-1</npc> <!-- CB -->
|
||||
</npcs>
|
||||
<item>
|
||||
<ingredient id="57" count="10000000"/>
|
||||
<production id="1419" count="1"/>
|
||||
|
@@ -65,6 +65,12 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
@Override
|
||||
public boolean parseCommunityBoardCommand(String command, L2PcInstance activeChar)
|
||||
{
|
||||
if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_COMBAT_DISABLED && activeChar.isInCombat())
|
||||
{
|
||||
activeChar.sendMessage("You can't use the Community Board right now.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("_bbshome") || command.equals("_bbstop"))
|
||||
{
|
||||
final String customPath = Config.CUSTOM_CB_ENABLED ? "Custom/" : "";
|
||||
@@ -95,6 +101,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false);
|
||||
return true;
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_MULTISELLS && command.startsWith("_bbssell"))
|
||||
{
|
||||
@@ -103,6 +110,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
activeChar.sendPacket(new BuyList(BuyListData.getInstance().getBuyList(423), activeChar.getAdena(), 0));
|
||||
activeChar.sendPacket(new ExBuySellList(activeChar, false));
|
||||
return true;
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_TELEPORTS && command.startsWith("_bbsteleport"))
|
||||
{
|
||||
@@ -150,7 +158,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -8,10 +8,7 @@
|
||||
<xs:sequence minOccurs="1" maxOccurs="1">
|
||||
<xs:element name="npc" minOccurs="1" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:positiveInteger">
|
||||
<xs:minInclusive value="1" />
|
||||
<xs:maxInclusive value="65535" />
|
||||
</xs:restriction>
|
||||
<xs:restriction base="xs:integer" />
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
|
Reference in New Issue
Block a user