Support for custom community board delevel.
This commit is contained in:
parent
4ac4ce3c05
commit
f6c0fd7679
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_1.0_Ertheia/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1078,9 +1078,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2400,9 +2402,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_2.5_Underground/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1085,9 +1085,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2416,9 +2418,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_3.0_Helios/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1093,9 +1093,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2431,9 +2433,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1086,9 +1086,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2417,9 +2419,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_5.0_Salvation/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1086,9 +1086,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2417,9 +2419,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_5.5_EtinasFate/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1086,9 +1086,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2417,9 +2419,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_6.0_Fafurion/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1092,9 +1092,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
public static boolean COMMUNITY_PREMIUM_SYSTEM_ENABLED;
|
||||
@ -2428,9 +2430,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while in combat.
|
||||
# Default: True
|
||||
CommunityCombatDisabled = True
|
||||
|
108
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Watch_Down" fore="L2UI_CT1.OlympiadWnd_DF_Watch"></td></tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -73,7 +74,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
public static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -255,6 +257,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1265,9 +1265,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_COMBAT_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
@ -2730,9 +2732,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_COMBAT_DISABLED = CommunityBoard.getBoolean("CommunityCombatDisabled", true);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1030,9 +1030,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_COMBAT_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
@ -2312,9 +2314,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_Classic_2.1_Zaken/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1034,9 +1034,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_COMBAT_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
@ -2319,9 +2321,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_Classic_2.2_Antharas/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1034,9 +1034,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_COMBAT_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
@ -2319,9 +2321,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
@ -26,6 +26,10 @@ CommunityEnableBuffs = True
|
||||
# Default: True
|
||||
CommunityEnableHeal = True
|
||||
|
||||
# Enable delevel.
|
||||
# Default: False
|
||||
CommunityEnableDelevel = False
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
@ -38,6 +42,10 @@ CommunityBuffPrice = 0
|
||||
# Default: 0 (free)
|
||||
CommunityHealPrice = 0
|
||||
|
||||
# Price for Delevel.
|
||||
# Default: 0 (free)
|
||||
CommunityDelevelPrice = 0
|
||||
|
||||
# Disable Community Board while player has Karma.
|
||||
# Default: True
|
||||
CommunityKarmaDisabled = True
|
||||
|
108
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
108
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/ask.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Are you sure you want to delevel your character?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I agree!" action="bypass _bbsdelevel" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
105
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
105
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/complete.html
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center><font name="hs12" color="CDB67F">Congratulations!<br1>Your level was decreased!</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
108
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
108
L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/html/CommunityBoard/Custom/delevel/main.html
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
<html noscrollbar>
|
||||
<body>
|
||||
<table width=700>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=20>
|
||||
<tr>
|
||||
<td>
|
||||
%navigation%
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 height=455 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25 align="center"><font name="hs12" color="CDB67F">Delevel Manager</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=200 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 1. Make sure this is the character you want to delevel.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 2. Deleveling is irreversible.<br1></font></td></tr>
|
||||
<tr><td align="left"> <font color="CDB67F"> 3. Your skill levels will be decreased or removed accordingly.</font></td></tr>
|
||||
<tr>
|
||||
<td height=20></td>
|
||||
</tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr><td height=15 align="center"></td></tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table align=center border="0" height=85 >
|
||||
<tr>
|
||||
<td width=500 align=center>Proceed with character delevel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=500 align=center><button value="I want to delevel!" action="bypass _bbstop;delevel/ask.html" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table align=center border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI.SquareGray" width=500 height=1></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=150 align="center">
|
||||
<br>
|
||||
<font name="hs12" color="CDB67F">In case you want to disable any experience gains
|
||||
<br1>
|
||||
try entering the following command in chat</font>
|
||||
<br1>
|
||||
<font name="hs12" color="00A5FF">.expoff</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=555 background="L2UI_CT1.Windows_DF_TooltipBG">
|
||||
<tr>
|
||||
<td height=17></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><font color=696969>LINEAGE II - COMMUNITY BOARD</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -17,6 +17,9 @@
|
||||
<tr>
|
||||
<td><button value="Drop Search" action="bypass _bbstop;dropsearch/main.html" width=200 height=30 back="L2UI_CT1.HtmlWnd_DF_Area_Down" fore="L2UI_CT1.HtmlWnd_DF_Area"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Delevel" action="bypass _bbstop;delevel/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button value="Premium" action="bypass _bbstop;premium/main.html" width=200 height=30 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,7 @@ import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
@ -74,7 +75,8 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
Config.COMMUNITYBOARD_ENABLE_MULTISELLS ? "_bbssell" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_TELEPORTS ? "_bbsteleport" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_BUFFS ? "_bbsbuff" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null
|
||||
Config.COMMUNITYBOARD_ENABLE_HEAL ? "_bbsheal" : null,
|
||||
Config.COMMUNITYBOARD_ENABLE_DELEVEL ? "_bbsdelevel" : null
|
||||
};
|
||||
|
||||
private static final BiPredicate<String, L2PcInstance> COMBAT_CHECK = (command, activeChar) ->
|
||||
@ -263,6 +265,29 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
}
|
||||
else if (command.equals("_bbsdelevel"))
|
||||
{
|
||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < Config.COMMUNITYBOARD_DELEVEL_PRICE)
|
||||
{
|
||||
activeChar.sendMessage("Not enough currency!");
|
||||
}
|
||||
else if (activeChar.getLevel() == 1)
|
||||
{
|
||||
activeChar.sendMessage("You are at minimum level!");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.destroyItemByItemId("CB_Delevel", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_DELEVEL_PRICE, activeChar, true);
|
||||
final int newLevel = activeChar.getLevel() - 1;
|
||||
activeChar.setExp(ExperienceData.getInstance().getExpForLevel(newLevel));
|
||||
activeChar.getStat().setLevel((byte) newLevel);
|
||||
activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
|
||||
activeChar.setCurrentCp(activeChar.getMaxCp());
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.checkPlayerSkills(); // Adjust skills according to new level.
|
||||
returnHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/CommunityBoard/Custom/delevel/complete.html");
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("_bbspremium"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbspremium;", "");
|
||||
|
@ -1034,9 +1034,11 @@ public final class Config
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_DELEVEL;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||
public static int COMMUNITYBOARD_DELEVEL_PRICE;
|
||||
public static boolean COMMUNITYBOARD_COMBAT_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_KARMA_DISABLED;
|
||||
public static boolean COMMUNITYBOARD_CAST_ANIMATIONS;
|
||||
@ -2319,9 +2321,11 @@ public final class Config
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CommunityBoard.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CommunityBoard.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_ENABLE_HEAL = CommunityBoard.getBoolean("CommunityEnableHeal", true);
|
||||
COMMUNITYBOARD_ENABLE_DELEVEL = CommunityBoard.getBoolean("CommunityEnableDelevel", false);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CommunityBoard.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CommunityBoard.getInt("CommunityBuffPrice", 0);
|
||||
COMMUNITYBOARD_HEAL_PRICE = CommunityBoard.getInt("CommunityHealPrice", 0);
|
||||
COMMUNITYBOARD_DELEVEL_PRICE = CommunityBoard.getInt("CommunityDelevelPrice", 0);
|
||||
COMMUNITYBOARD_KARMA_DISABLED = CommunityBoard.getBoolean("CommunityKarmaDisabled", true);
|
||||
COMMUNITYBOARD_CAST_ANIMATIONS = CommunityBoard.getBoolean("CommunityCastAnimations", false);
|
||||
COMMUNITY_PREMIUM_SYSTEM_ENABLED = CommunityBoard.getBoolean("CommunityPremiumSystem", false);
|
||||
|
Loading…
Reference in New Issue
Block a user