Jump to content

Fizo

Members
  • Posts

    912
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Fizo

  1. i think domain doesn't matter at all about the server ! PLUS on Item's RB Set +30
  2. WTS CHar on L2 Sense Server Info's Interlude PvP High Rate! 2 Months Old 300 Player's On Every Day ! Site : www.l2sense.tk Player Info Main Class : Gladi Sub's : GH , HW , SPH 6 Augme Active Might ( On Duals ) Passive Might ( On Duals ) Active Shield ( On Dagger ) Passive Aggility ( On Dagger ) Active Empower ( Mace Weapon ) Passive Empower ( Mace Weapon ) 3 Custom Set's +30 ( Light , Robe , Heavy ) AIO Tattoo +30 Hero For Ever Include Clan Lv.8 Full Clan Skill's This Char Cost More that 200 Euro ! PM For Price
  3. Hello I Want To Buy DDOS Protections. If Somene Have Good Protections And Good Price Just Speak With Me
  4. very good balance good job dude !
  5. Works Perfect thanks for help also for your time ! you can lock it now ! <3
  6. Hi mxc i've try to change the code on h5 Vote reward they dont count i change the font to div but code it's too difference from the other code's Here it is the code if some1 know the fix and they can help me i will appreciate alot ! thanks /* * Copyright (C) 2013 AwakeNz * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.instancemanager.votereward; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import com.l2jserver.Config; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.Announcements; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; /** * @author ??? * @reworked fissban */ public class VoteRewardTopzone { static Logger _log = Logger.getLogger(VoteRewardTopzone.class.getName()); static final int initialCheck = Config.VOTE_SYSTEM_START_TIME * 1000; static final int delayForCheck = Config.VOTE_SYSTEM_CHECK_TIME * 1000; int votesneed; static List<String> _ips = new ArrayList<>(); static List<String> _accounts = new ArrayList<>(); static int lastVoteCount = 0; VoteRewardTopzone() { if (Config.VOTE_SYSTEM_DATABASE_SAVE) { load(); } ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } public class AutoReward implements Runnable { @Override public void run() { int votes = getVotes(); _log.info("VoteReward: Current Votes Topzone: " + votes); if (votes >= (getLastVoteCount() + Config.VOTE_SYSTEM_COUNT)) { Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().valueCollection(); { for (L2PcInstance onlinePlayer : pls) { if (onlinePlayer.isOnline() && !onlinePlayer.getClient().isDetached() && !_accounts.contains(onlinePlayer.getAccountName()) && !_ips.contains(onlinePlayer.getClient().getConnection().getInetAddress().getHostAddress())) { String[] parase = Config.VOTE_SYSTEM_ITEM_ID_TOPZONE.split(","); String[] parase3 = Config.VOTE_SYSTEM_ITEM_COUNT_TOPZONE.split(","); for (int o = 0; o < parase.length; o++) { int parase2 = Integer.parseInt(parase[o]); int parase4 = Integer.parseInt(parase3[o]); onlinePlayer.addItem("vote_reward", parase2, parase4, onlinePlayer, true); } _ips.add(onlinePlayer.getClient().getConnection().getInetAddress().getHostAddress()); _accounts.add(onlinePlayer.getAccountName()); } } } _log.info("VoteReward Topzone: All players has been rewared!"); Announcements.getInstance().announceToAll("be rewarded!"); Announcements.getInstance().announceToAll("for Topzone vote!"); setLastVoteCount(getLastVoteCount() + Config.VOTE_SYSTEM_COUNT); } if (getLastVoteCount() == 0) { setLastVoteCount(votes); } else if ((((getLastVoteCount() + Config.VOTE_SYSTEM_COUNT) - votes) > Config.VOTE_SYSTEM_COUNT) || (votes > (getLastVoteCount() + Config.VOTE_SYSTEM_COUNT))) { setLastVoteCount(votes); } votesneed = (getLastVoteCount() + Config.VOTE_SYSTEM_COUNT) - votes; if (votesneed == 0) { votesneed = Config.VOTE_SYSTEM_COUNT; } Announcements.getInstance().announceToAll("Our Current vote count is " + votes + "."); Announcements.getInstance().announceToAll("We Need " + votesneed + " votes in Topzone!"); _ips.clear(); _accounts.clear(); } } public int getVotes() { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(Config.VOTE_SYSTEM_PAGE_TOPZONE); URLConnection con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); 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;\">")) { String i = inputLine.replace("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">", ""); i = i.replace("</font></b></div></td></tr>", ""); i = i.trim(); int o = Integer.parseInt(i); return Integer.valueOf(o); } } } catch (IOException e) { Announcements.getInstance().announceToAll("Topzone is offline"); _log.warning("AutoVoteRewardHandler: " + e); } return 0; } public void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } public int getLastVoteCount() { return lastVoteCount; } public void load() { int votes = 0; try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("SELECT vote FROM votetopzone LIMIT 1");// DB votetopzone ResultSet rset = statement.executeQuery(); while (rset.next()) { votes = rset.getInt("vote"); } rset.close(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote Topzone: ", e); } setLastVoteCount(votes); } public void save() { try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("UPDATE votetopzone SET vote = ? WHERE id=1"); statement.setInt(1, getLastVoteCount()); statement.execute(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote Topzone: ", e); } } public static VoteRewardTopzone getInstance() { return SingletonHolder._instance; } static class SingletonHolder { protected static final VoteRewardTopzone _instance = new VoteRewardTopzone(); } }
  7. great share my friend thanks for that
  8. VPS Server's I am Selling the Cheapest VPS server's with Windows Server 2008 SP1 ! Silver Pack : 7GB Ram 4 Core's 350 GB Storage 100% Uptime 100 MB Connection Static IP Windows Server 2008 SP1 NO Setup Fee's 24/7 Support Price : 10 Euro Gold Pack : 14GB Ram 8 Core's 700 GB Storage 100% Uptime 100 MB Connection Static IP Windows Server 2008 SP1 NO Setup Fee's 24/7 Support Price : 20 Euro You Can Pay Via Pay Safe Card or PayPal I know i am not a Famous Member Here , so i offer this vps server's if you wanna buy one of them i will give you first the infos and then you send me the money ! You can Found me On Skype : Hendrik Oel
  9. Server Goes well
  10. Server Goes well !!!
  11. server goes well !! balanced fix day by day !
  12. i've play there looks good gm's do the first event :P
  13. Site Didnt Work !
  14. without this code is not possible :/
  15. Works for me ! also this will be at gameserver.Util.java
  16. thats looks great i will test it right now man ! thanks for share also fix this line in your config's # Banlength Chara for failure password (min) = 480 SABanTime i think this must be like # Banlength Chara for failure password (min) SABanTime = 480
  17. Thats try thanks from me also !
  18. No1 knows? :/
  19. HeyZ to all ! i request one program for augmention's ! Program Looks like !! You as user enter the value's that you wan't like +3,5 patk plus +45 HP Plus Item Skill: Duel Might and then you press Confirm and this program give you the value's for Database i found it on Maxcheater's before some month's but i lost it ! :S i search again and again but i didnt found it :S if some1 have Link or the post from this program pls post it ! Thanks Have a nice day and Happy Holiday's !
  20. What is that ? If your armor it's +6 as set u gain one bonus at Passive Skill's with that u can change that at +12 or +16
  21. l2jhidden it's a payment SVN not a free one !
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock