TouchAndDie
Members-
Posts
115 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by TouchAndDie
-
[req] god source
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
hmm i found this: http://www.4shared.com/rar/2SNjCcAx/RusDev-Game.html? .. but when i compile i get : [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1177: error: unmappable character for encoding Cp1252 [javac] SERVER_VERSION = getString(serverVersion, "version", "?¥ ¨§¢¥áâ ï ¢¥àá¨ï."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1178: error: unmappable character for encoding Cp1252 [javac] SERVER_BUILD_DATE = getString(serverVersion, "builddate", "?¥ ¨§¢¥áâ ï ¤ â ."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1183: error: unmappable character for encoding Cp1252 [javac] SERVER_VERSION = "?¥ ¨§¢¥áâ ï ¢¥àá¨ï."; [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1184: error: unmappable character for encoding Cp1252 [javac] SERVER_BUILD_DATE = "?¥ ¨§¢¥áâ ï ¤ â ."; [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1195: error: unmappable character for encoding Cp1252 [javac] DATAPACK_VERSION = getString(serverVersion, "version", "?¥ ¨§¢¥áâ ï ¢¥àá¨ï."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1200: error: unmappable character for encoding Cp1252 [javac] DATAPACK_VERSION = "?¥ ¨§¢¥áâ ï ¢¥àá¨ï."; [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1225: error: unmappable character for encoding Cp1252 [javac] Tools.printSection("?¢¥âë"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1288: error: unmappable character for encoding Cp1252 [javac] Tools.printSection("?¥§®¯ á®áâì"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1331: error: unmappable character for encoding Cp1252 [javac] _log.severe("?¥ ¢®§¬®¦® § £à㧨âì ª®ä¨£ãà æ¨î: ¥ ãáâ ®¢«¥ ०¨¬ á¥à¢¥à ."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\Config.java:1337: error: unmappable character for encoding Cp1252 [javac] if (pName.equalsIgnoreCase("XP ?í©â")) [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:97: error: unmappable character for encoding Cp1252 [javac] _log.finest("ˆá¯®«ì§®¢ ® ¯ ¬ïâ¨:" + getUsedMemoryMB() + "Œ?"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:112: error: unmappable character for encoding Cp1252 [javac] _log.severe("?¥¢®§¬®¦® áç¨â âì ID'ë ¨§ ?„."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:112: error: unmappable character for encoding Cp1252 [javac] _log.severe("?¥¢®§¬®¦® áç¨â âì ID'ë ¨§ ?„."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:141: error: unmappable character for encoding Cp1252 [javac] printSection("?।¬¥âë"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:152: error: unmappable character for encoding Cp1252 [javac] printSection("?¥àá® ¦¨"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:224: error: unmappable character for encoding Cp1252 [javac] Tools.printSection("?¢¥âë - RusDev"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:235: error: unmappable character for encoding Cp1252 [javac] Tools.printSection("?¥§®¯ á®áâì - RusDev"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:352: error: unmappable character for encoding Cp1252 [javac] _log.info("Game Server § ¯ãé¥, ᢮¡®¤ ï ¯ ¬ïâì " + freeMem + " Œ? ¨§ " + totalMem + " Œ?"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:352: error: unmappable character for encoding Cp1252 [javac] _log.info("Game Server § ¯ãé¥, ᢮¡®¤ ï ¯ ¬ïâì " + freeMem + " Œ? ¨§ " + totalMem + " Œ?"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:379: error: unmappable character for encoding Cp1252 [javac] "‚¨¬ ¨¥: Žè¨¡ª ®âªàëâ¨ï ¯®àâ , ¨á¯®«ì§ãî ¤à㣮© ¤à¥á. ?à¨ç¨ : " [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:390: error: unmappable character for encoding Cp1252 [javac] _log.log(Level.SEVERE, "Žè¨¡ª ®âªàëâ¨ï ¯®àâ . ?à¨ç¨ : " + e.getMessage(), e); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\GameServer.java:420: error: unmappable character for encoding Cp1252 [javac] printSection("? § ¤ ëå"); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\RecipeController.java:145: error: unmappable character for encoding Cp1252 [javac] Util.handleIllegalPlayerAction(player, "Внимание! ПерÑ?онаж " + player.getName() + " аккаунта " + player.getAccountName() + " отправил неверный ID рецепта.", Config.DEFAULT_PUNISH); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\RecipeController.java:153: error: unmappable character for encoding Cp1252 [javac] player.sendMessage("Сервер занÑ?Ñ‚, попробуйте позже."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\RecipeController.java:192: error: unmappable character for encoding Cp1252 [javac] Util.handleIllegalPlayerAction(player, "Внимание! ПерÑ?онаж " + player.getName() + " аккаунта " + player.getAccountName() + " отправил неверный ID рецепта.", Config.DEFAULT_PUNISH); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\RecipeController.java:256: error: unmappable character for encoding Cp1252 [javac] _log.severe("Ð?е найден ID репцепта, пропуÑ?к."); [javac] ^ [javac] C:\workspace\Source\RusDev-Game\java\com\l2js\gameserver\RecipeController.java:256: error: unmappable character for encoding Cp1252 [javac] _log.severe("Ð?е найден ID репцепта, пропуÑ?к."); ... etc .... etc ... [javac] 96 errors :-s -
[req] god source
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
hmm on a russian forum they said is working :-? -
[req] god source
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
hmm yes.. now i have incore Source but i can't import it in Eclipse ... :'( -
Does anyone have a GoD source and wanna share it ? :D
-
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
package com.l2jserver.gameserver.instancemanager; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.util.Broadcast; public class AutoVoteRewardHandler { private final String TOPZONE = "http://l2topzone.com"; // 60 * 1000(1000milliseconds = 1 second) = 60seconds private final int initialCheck = 60 * 1000; // 1800 * 1000(1000milliseconds = 1 second) = 1800seconds = 30minutes private final int delayForCheck = 1800 * 1000; private final int[] itemId = { 9627, 9142 }; private final int[] itemCount = { 2, 500 }; private final int[] maxStack = { 2, 500 }; private final int votesRequiredForReward = 10; // do not change private int lastVoteCount = 0; private AutoVoteRewardHandler() { System.out.println("Vote Reward System Initiated."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { public void run() { int votes = getVotes(); System.out.println("Server Votes: " + votes); if (votes != 0 && getLastVoteCount() != 0 && votes >= getLastVoteCount() + votesRequiredForReward) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT c.charId, c.char_name FROM characters AS c LEFT JOIN accounts AS a ON c.account_name = a.login WHERE c.online > 0 GROUP BY a.lastIP ORDER BY c.level DESC"); ResultSet rset = statement.executeQuery(); L2PcInstance player = null; L2ItemInstance item = null; while (rset.next()) { player = L2World.getInstance().getPlayer(rset.getInt("charId")); if (player != null && !player.getClient().isDetached()) { for (int i = 0; i < itemId.length; i++) { item = player.getInventory().getItemByItemId(itemId[i]); if (item == null || item.getCount() < maxStack[i]) player.addItem("reward", itemId[i], itemCount[i], player, true); } } } statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { L2DatabaseFactory.close(con); } setLastVoteCount(getLastVoteCount() + votesRequiredForReward); } Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.ANNOUNCEMENT, "Announcements:", "Server Votes: " + votes + " | Next Reward on " + (getLastVoteCount() + votesRequiredForReward) + " Votes.)")); if (getLastVoteCount() == 0) setLastVoteCount(votes); } } private int getVotes() { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(TOPZONE); isr = new InputStreamReader(url.openStream()); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains(" <tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">")) { return Integer.valueOf(inputLine.replace(" <tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">", "").replace("</font></b></div></td></tr>", "")); } } } catch (IOException e) { e.printStackTrace(); } finally { try { in.close(); } catch (IOException e) {} try { isr.close(); } catch (IOException e) {} } return 0; } private void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } private int getLastVoteCount() { return lastVoteCount; } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } } -
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
Server votes: 0 :'( :'( -
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
up -
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
up... -
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
yes -
[bug] vote reward
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
still 0 votes :( -
I have a vote reward, but is bugged i don't know why it shows 0 Votes and i have 25 votes package com.l2jserver.gameserver.instancemanager; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.Announcements; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.util.Broadcast; public class AutoVoteRewardHandler { private final String TOPZONE = "http://l2topzone.com/"; // 60 * 1000(1000milliseconds = 1 second) = 60seconds private final int initialCheck = 60 * 1000; // 1800 * 1000(1000milliseconds = 1 second) = 1800seconds = 30minutes private final int delayForCheck = 1800 * 1000; private final int[] itemId = { 9627, 9142 }; private final int[] itemCount = { 2, 500 }; private final int[] maxStack = { 2, 500 }; private final int votesRequiredForReward = 10; // do not change private int lastVoteCount = 0; private AutoVoteRewardHandler() { System.out.println("Vote Reward System Initiated."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { public void run() { int votes = getVotes(); System.out.println("Server Votes: " + votes); if (votes != 0 && getLastVoteCount() != 0 && votes >= getLastVoteCount() + votesRequiredForReward) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT c.charId, c.char_name FROM characters AS c LEFT JOIN accounts AS a ON c.account_name = a.login WHERE c.online > 0 GROUP BY a.lastIP ORDER BY c.level DESC"); ResultSet rset = statement.executeQuery(); L2PcInstance player = null; L2ItemInstance item = null; while (rset.next()) { player = L2World.getInstance().getPlayer(rset.getInt("charId")); if (player != null && !player.getClient().isDetached()) { for (int i = 0; i < itemId.length; i++) { item = player.getInventory().getItemByItemId(itemId[i]); if (item == null || item.getCount() < maxStack[i]) player.addItem("reward", itemId[i], itemCount[i], player, true); } } } statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { L2DatabaseFactory.close(con); } setLastVoteCount(getLastVoteCount() + votesRequiredForReward); } Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.ANNOUNCEMENT, "Announcements:", "Server Votes: " + votes + " | Next Reward on " + (getLastVoteCount() + votesRequiredForReward) + " Votes.)")); if (getLastVoteCount() == 0) setLastVoteCount(votes); } } private int getVotes() { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(TOPZONE); isr = new InputStreamReader(url.openStream()); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("rank anonymous tooltip")) { return Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); } } } catch (IOException e) { e.printStackTrace(); } finally { try { in.close(); } catch (IOException e) {} try { isr.close(); } catch (IOException e) {} } return 0; } private void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } private int getLastVoteCount() { return lastVoteCount; } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } }
-
[Help] Fame at GM Shop
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
up... -
[Help] Fame at GM Shop
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
is the Fame ID ... and i have another problem with this http://maxcheaters.com/forum/index.php?topic=162861.0 captcha code ... i get 1. ERROR in \MasterHandler.java (at line 555) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new CAPT CHA()); ^^^^ ^^^ CAPTCHA cannot be resolved to a type ---------- 1 problem (1 error)CAPTCHA cannot be resolved to a type Failed executing script: D:\Server\gameserver\data\scripts\handlers\MasterHandle r.java. See MasterHandler.java.error.log for details. masterhandle line 555: private static void loadVoicedHandlers() { VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats()); if (Config.L2JMOD_ALLOW_WEDDING) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding()); if (Config.BANKING_SYSTEM_ENABLED) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Banking()); if (Config.TVT_ALLOW_VOICED_COMMAND) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new TvTVoicedInfo()); if (Config.L2JMOD_CHAT_ADMIN) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new ChatAdmin()); if (Config.L2JMOD_MULTILANG_ENABLE && Config.L2JMOD_MULTILANG_VOICED_ALLOW) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Lang()); if (Config.L2JMOD_DEBUG_VOICE_COMMAND) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Debug()); VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new CAPTCHA()); _log.config("Loaded " + VoicedCommandHandler.getInstance().size() + " VoicedHandlers"); } (red - line 555) -
[Help] Fame at GM Shop
TouchAndDie replied to TouchAndDie's question in Request Server Development Help [L2J]
up .. -
I have added at GM Shop Fame item but why it says Famex1 i put it 500 fame... <?xml version='1.0' encoding='utf-8'?> <!-- Created with Lineage II - Multisell Manager --> <list maintainEnchantment="true"> <item> <!-- Fame points --> <ingredient count="1500000000" id="57" /> <production count="500" id="-300" /> </item> </list> What is the problem ?