l2fater 发布于2021年12月15日 07:04 分享 发布于2021年12月15日 07:04 Visual Enchant Effect on CharacterSelection 玩家选择角色窗口,武器显示强化效果 脚本 原作者:StinkyMadness 来源:MXC Index: config/server.properties =================================================================== --- config/server.properties (revision 9) +++ config/server.properties (working copy) @@ -59,6 +59,10 @@ # Clients related options # ================================================================ +# Visual Enchant for weapons on character selection +# Disable : 0 +VisualEnchant = 16 + # Allow delete chars after D days, 0 = feature disabled. DeleteCharAfterDays = 7 Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 9) +++ java/net/sf/l2j/Config.java (working copy) @@ -497,6 +497,7 @@ public static boolean SERVER_GMONLY; /** clients related */ + public static int VISUAL_ENCHANT; public static int DELETE_DAYS; public static int MAXIMUM_ONLINE_USERS; @@ -1210,6 +1211,7 @@ SERVER_LIST_TESTSERVER = server.getProperty("TestServer", false); SERVER_LIST_PVPSERVER = server.getProperty("PvpServer", true); + VISUAL_ENCHANT = server.getProperty("VisualEnchant", 0); DELETE_DAYS = server.getProperty("DeleteCharAfterDays", 7); MAXIMUM_ONLINE_USERS = server.getProperty("MaximumOnlineUsers", 100); Index: java/net/sf/l2j/gameserver/network/serverpackets/CharSelectInfo.java =================================================================== --- java/net/sf/l2j/gameserver/network/serverpackets/CharSelectInfo.java (revision 9) +++ java/net/sf/l2j/gameserver/network/serverpackets/CharSelectInfo.java (working copy) @@ -6,6 +6,7 @@ import java.util.ArrayList; import java.util.List; +import net.sf.l2j.Config; import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.data.sql.ClanTable; import net.sf.l2j.gameserver.model.CharSelectSlot; @@ -149,7 +150,7 @@ writeD((slot.getAccessLevel() > -1) ? ((slot.getDeleteTimer() > 0) ? (int) ((slot.getDeleteTimer() - System.currentTimeMillis()) / 1000) : 0) : -1); writeD(slot.getClassId()); writeD((i == _activeId) ? 0x01 : 0x00); - writeC(Math.min(127, slot.getEnchantEffect())); + writeC(Config.VISUAL_ENCHANT > 0 ? Config.VISUAL_ENCHANT : Math.min(127, slot.getEnchantEffect())); writeD(slot.getAugmentationId()); } getClient().setCharSelectSlot(_slots); 引用 意见的链接 分享到其他站点 更多分享选项...
l2fater 发布于2021年12月15日 07:05 楼主 分享 发布于2021年12月15日 07:05 H5 https://bpa.st/5JMA ### Eclipse Workspace Patch 1.0 #P L2J_Server Index: /game/config/Character.properties =================================================================== --- /game/config/Character.properties (revision 0) +++/game/config/Character.properties (working copy) +# Visual Enchant for weapons on character selection +# Disable : 0 +VisualEnchant = 16 # Allow character deletion after days set below. To disallow character deletion, set this equal to 0. # Default: 7 DeleteCharAfterDays = 1 ### Eclipse Workspace Patch 1.0 #P L2J_Server Index: src/main/java/com.l2jserver/config.java =================================================================== --- src/main/java/com.l2jserver/config.java (revision 0) +++src/main/java/com.l2jserver/config.java (working cop public static boolean SERVER_GMONLY; /** clients related */ + public static int VISUAL_ENCHANT; public static int DELETE_DAYS; public static int MAXIMUM_ONLINE_USERS; @@ -1210,6 +1211,7 @@ SERVER_LIST_TESTSERVER = server.getProperty("TestServer", false); SERVER_LIST_PVPSERVER = server.getProperty("PvpServer", true); ALT_GAME_FREE_TELEPORT = character.getBoolean("AltFreeTeleporting", false); + VISUAL_ENCHANT = character.getInt("VisualEnchant", 0); DELETE_DAYS = character.getInt("DeleteCharAfterDays", 7); ALT_GAME_EXPONENT_XP = character.getFloat("AltGameExponentXp", 0); ALT_GAME_EXPONENT_SP = character.getFloat("AltGameExponentSp", 0); ### Eclipse Workspace Patch 1.0 #P L2J_Server Index: src/main/java/com.l2jserver/gameserver/network/serverpackets/CharSelectInfo.java =================================================================== --- src/main/java/com.l2jserver/gameserver/network/serverpackets/CharSelectInfo.java (revision 0) +++src/main/java/com.l2jserver/gameserver/network/serverpackets/CharSelectInfo.java (working cop writeD(charInfoPackage.getDeleteTimer() > 0 ? (int) ((charInfoPackage.getDeleteTimer() - System.currentTimeMillis()) / 1000) : 0); // days left before // delete .. if != 0 // then char is inactive writeD(charInfoPackage.getClassId()); writeD(i == _activeId ? 0x01 : 0x00); // c3 auto-select char + writeC(Config.VISUAL_ENCHANT > 0 ? Config.VISUAL_ENCHANT : Math.min(127, charInfoPackage.getEnchantEffect())); writeD(charInfoPackage.getAugmentationId()); 引用 意见的链接 分享到其他站点 更多分享选项...
已推荐帖子
参与讨论
你可以现在发布并稍后注册。 如果你有帐户,现在就登录发布帖子。