VIP Member
  • Content Count

  • Joined

  • Last visited

  • Feedback


Community Reputation

0 Neutral

About Sirpaypi

  • Rank
  • Birthday 06/21/1991

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    ART of Speaking

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm selling a fully donated account on L2INC trickster with full stuff 4 +30 skills classes. Low price using paysafecards.
  2. Event.getInstance()).eventToAll("L2Cataclysm's Current vote count is " + votes + " , Next Reward on " + (getLastVoteCount() + _votesRequiredForReward) + " Votes."); Easy stuff I use Event announcement. So the code should be for your server. Announce.getInstance()).announceToAll("L2Cataclysm's Current vote count is " + votes + " , Next Reward on " + (getLastVoteCount() + _votesRequiredForReward) + " Votes."); Or check your announcement code delete Event import add Announce one. And best way to add link use php script. Something like : <?php $url="YOUR LINK"; $ch=curl_init(); $timeout = 60; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); echo $file_contents; ?> And don't creat methods etc. They all already exist... For your other question. Make folder with custom/voteblabala name add the .java file in your script.cfg.
  3. Hmm I can share with you my code, I use it as script in DataPack side. /* * 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 <>. */ package custom.AutoVoteEngine; import; import; import; import java.util.logging.Level; import java.util.logging.Logger; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2World; import; import com.l2jserver.gameserver.Event; /** * @author Sirpaypi~ * @version 2.7 */ public class AutoVoteRewardHandler { protected static final Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); private final static String _url = "YOUR VOTE SCRIPT"; private final int _votesRequiredForReward = 5; private final int initialCheck = 5; private final int delayForCheck = 10; private final static int[][] ITEMs = { { 57, 200 }, }; private int _lastVoteCount = 0; private AutoVoteRewardHandler() {"[AutoVoteReward]: AUTO Vote Reward Started."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck * 60000, delayForCheck * 60000); } private class AutoReward implements Runnable { public void run() { int votes = getVotes(); int rewardedPlayers = 0; if (votes > -1) { if ((getLastVoteCount() != 0) && (votes >= (getLastVoteCount() + _votesRequiredForReward))) { for (L2PcInstance player : L2World.getInstance().getAllPlayersArray()) { if ((player != null) && !player.getClient().isDetached()) { for (int[] reward : ITEMs) { if (player.getInventory().validateCapacityByItemId(reward[0])) { player.addItem("reward", reward[0], player, true); } } rewardedPlayers++; } } setLastVoteCount(getLastVoteCount() + _votesRequiredForReward); } else if (getLastVoteCount() == 0) { setLastVoteCount(votes); }"[AutoVoteReward]: Current Count : " + votes + ", Rewared Players : " + rewardedPlayers); Event.getInstance().eventToAll("L2Cataclysm's Current vote count is " + votes + " , Next Reward on " + (getLastVoteCount() + _votesRequiredForReward) + " Votes."); } else { _log.log(Level.WARNING, "[AutoVoteReward]: Oups Failled..."); } } } private static int getVotes() { BufferedReader in = null; int votes = -1; try { in = new BufferedReader(new InputStreamReader(new URL(_url).openStream())); String inputLine; while (((inputLine = in.readLine()) != null) && (votes == -1)) { if (inputLine.contains("moreinfo_total_rank_text")) { try { votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", "")); } catch (Exception e) { } } } in.close(); } catch (Exception e) { _log.log(Level.WARNING, "[AutoVoteReward]: " + e.getMessage(), e); } return votes; } 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(); } public static void main(String[] args) { AutoVoteRewardHandler.getInstance(); } }
  4. From where you get the "1000$ cost d guard (premium)(one time)"
  5. We are moving website etc. New machines are added.
  6. Not hard and not easy, you will have lot of stuff to do... So you don't get bored all the time... Infinite O_O no lol... as I said server still beta test only the % & safe will be retail like... The max will be added soon.
  7. There no system at the time :). Wait for more news. Actually we need some beta testers on the next days, if you want to help us just register on forum.
  8. How much you pay ? :D kidding PM me I'll give you where to contact me :)
  9. I really like this share, but please fix your code Link.
  10. L2Cataclysm. Cadmus 1000x. May I present you our new server Cadmus 1000x, full of unique features. The server is PvP server based on retail like stuff. Chronicle Freya. Rates: Exp: 1000x, Sp: 1000x, Adena: 1000x, Drops: 1x, Quest: 50x. Enchant: Retail like. (Custom scrolls 100%) NPC : Shop (Up to S84). Global Gatekeeper (Towns & Special places). Event Shop (Contain accessory and more). Luxury Shop (Contain useful items). Vote Shop (Contain reward from voting). Buffer/Newbie Buffer. Donation Shop (Contain donation reward). Phoenix Shop (Contain Custom Armors & weapons...) (Visit us for more information) {PvP} Shop (Contain PvP items) Features : 2 box allowed. 20 different areas with custom drops. Customs Items/Recipes/Mobs/weapons/armors. Craftable Phoenix items. (Visit us for more information) Custom Instance. Olympiad 15 days period. (Protection by PC not by IP) All items are +0 when you play Olympiad. Olympiad Competition Time changed to 19:00 - 23:00 Every day (Gmt+0). Siege every 2 Weeks (Custom time) Geodata & Pathfinding. Balanced classes. Automated events & weekly GM events with good rewards. Premium items doesn't affect the game play since you can get them. Sub-class system fully working (Visit us for more information) Certification system. Elemental system 100% fixed. Epic raid bosses re-spawn every 12 Hours. Raid bosses re-spawn every 6 Hours. Custom Title Color System depending your PvP Points. Custom Tattoos (Visit us for more information) And much more, if you need more information reply on this topic. The server will start on 1st April as Beta for 5 days. Here is our forum : (Website under development) Register and share your ideas with us, we want a server made by players for players. :)