Malzahax
Members-
Posts
667 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Malzahax
-
hey dude i got the right buffs and lol on a mage again 1000-1100 is low , where the fucking retail dmg? ;d
-
WTS WTS L2J Interlude Server Pack/Source (L2-Genesis)
Malzahax replied to Malzahax's topic in Marketplace [L2Packs & Files]
bump saling it again -
pretty fine faction server i like it but imo daggers are hitting mages max critical 641 dmg :D increase them
-
re pousti m vlepeis to topic? malakes m prasina mallia p vgikan apo mouxliasmeno mouni ekso apo t topic!!!!!!!!!!!!!
-
[LoL] Sneak Peek - Xerath, the Magus Ascendant
Malzahax replied to Bleik's topic in General Discussion [English]
oh thnx for feedback -
look in the miror while watching a porn movie, what do you see? a Boner! Yes i see a Boner, you maybe? how "cold" can you be ?
-
[LoL] Sneak Peek - Xerath, the Magus Ascendant
Malzahax replied to Bleik's topic in General Discussion [English]
i just read immobile aka skill: locus power or wtf... so... this will be trynda/mage? :D lol -
are you really stupid or "you play it?"
-
x0xa0xa0x0a0xa0x0ax0a0xa0x cried on this :P
-
Java code gia announce
Malzahax replied to Psych_O's question in Request Server Development Help [Greek]
sou egrapsa 1 new me 1 method dn evala n pernei variable apo kapio site an thes allakse method k kanto anti reward_votes hopzone_votes vasismeno s l2jfrozen elpizw n voithisi handler k ena arxeio AutoVoteRewardHandler.java (mn ksexaseis gia register sto gameserver) edit: prepei n ftiaksis dika s config opote sta afisa etc apla n deis t value package com.l2jserver.gameserver.handler; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Set; import java.util.logging.Logger; import com.l2jserver.Config; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.entity.Announcements; import com.l2jserver.gameserver.thread.ThreadPoolManager; public class AutoVoteRewardHandler { private static Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); private int hopzoneVotesCount = 0; private List<String> already_rewarded; private static boolean hopzone = false; private AutoVoteRewardHandler() { _log.info("Vote Reward System Initiated."); if(votereward){ int reward_votes = getVotes(); if(reward_votes == -1){ reward_votes = 0; } setVoteCount(reward_votes); } ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), Config.VOTES_SYSYEM_INITIAL_DELAY, Config.VOTES_SYSYEM_STEP_DELAY); } private class AutoReward implements Runnable { @Override public void run() { int minutes = (Config.VOTES_SYSYEM_STEP_DELAY/1000)/60; if(votereward){ int reward_votes = getVotes(); if(reward_votes != -1){ _log.info("[server] Server's Votes: " + reward_votes); player.sendPacket(new CreatureSay(1,Say2.PARTY,"Vote System :"," Help your server by voting now at l2darkdays.com. Current votes are " + reward_votes + "..."); if (reward_votes != 0 && reward_votes >= getVoteCount() + Config.VOTES_FOR_REWARD) { already_rewarded = new ArrayList<String>(); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); Announcements.getInstance().gameAnnounceToAll("[Vote System] You have been rewarder for voting,check inventory"); //iteminstance check edw pigenei for (L2PcInstance player : pls) { if (player != null && !player.isOffline()) { if(player._active_boxes<=1 || (player._active_boxes>1 && checkSingleBox(player))){ //must have anti dualbox method Set<Integer> items = Config.VOTES_REWARD_LIST.keySet(); for (Integer i : items) { //item = player.getInventory().getItemByItemId(i); player.addItem("reward", i, Config.VOTES_REWARDS_LIST.get(i), player, true); } } } } setVoteCount(reward_votes); } player.sendPacket(new CreatureSay(1,Say2.PARTY,"Vote System :"," Help your server by voting now at l2darkdays.com. Next count at "+minutes+" minutes and at " + (getVoteCount() + Config.VOTES_FOR_REWARD) + " Votes!!"); } } if(votereward && Config.VOTES_SYSYEM_STEP_DELAY>0) try { Thread.sleep(Config.VOTES_SYSYEM_STEP_DELAY/2); } catch(InterruptedException e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); } private boolean checkSingleBox(L2PcInstance player){ if(player.getClient()!=null && player.getClient().getConnection()!=null && !player.getClient().getConnection().isClosed() && !player.isOffline()){ String playerip = player.getClient().getConnection().getInetAddress().getHostAddress(); if(already_rewarded.contains(playerip)) return false; else{ already_rewarded.add(playerip); return true; } } //maybe offline shop so dont reward return false; } private int getVotes() { int votes = -1; URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(Config.VOTES_SITE_X_URL); 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("moreinfo_total_rank_text")) { votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", "")); break; } } } catch (Exception e) { _log.info("topsite is offline or something is wrong in link"); Announcements.getInstance().gameAnnounceToAll("Current topsite is offline,try not to restart the server because will be crushed on reboot/"); //e.printStackTrace(); } finally { try { if(in!=null) in.close(); } catch (Exception e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); } try { if(isr!=null) isr.close(); } catch (Exception e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); } } return votes; } private void setVoteCount(int voteCount) { VotesCount = voteCount; } private int getVoteCount() { return VotesCount; } public static AutoVoteRewardHandler getInstance() { if(Config.VOTES_SITE_X_URL != null && !Config.VOTES_SITE_X_URL.equals("")){ votereward = true; } if(hopzone()) return SingletonHolder._instance; else return null; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } } -
Java code gia announce
Malzahax replied to Psych_O's question in Request Server Development Help [Greek]
l2pcinstance import iparxei? -
freya L2Grave "L2J Freya x7 private server"
Malzahax replied to christos084's topic in Private Servers
wow that is cool not afk xp , love the way you think :) yeah seems yes "lol" was unnecesary it is hosted somewhere? -
dont think so..
-
[Question]Start Skilsl![GR]
Malzahax replied to •MeLe•'s question in Request Server Development Help [Greek]
ekei ine sto skill_trees, postare ti s elege isws n ine kati p n ftiaxnete eukola -
Java code gia announce
Malzahax replied to Psych_O's question in Request Server Development Help [Greek]
ahh damn poso eukolo allakse t announce get instance me player.sendPacket(new CreatureSay(1, Say2.PARTY, "SYSTEM", "[Vote system] current votes are " + maxcheaters_vote + "...")); -
wtf cars sucks , thats my life
-
Java code gia announce
Malzahax replied to Psych_O's question in Request Server Development Help [Greek]
prota apo ola prepei n ftiakseis vote system 2on molis t kaneis apla sto p.x AutoVoteReward addare +if(maxcheaters_vote != -1){ + _log.info("[Vote System] Server Topsite current votes : " + maxcheaters_vote); + Announcements.getInstance().gameAnnounceToAll("[Vote system] current votes are " + maxcheaters_vote + "..."); -
spongebob fist ok but wheres the cursed :P?
-
freya L2Grave "L2J Freya x7 private server"
Malzahax replied to christos084's topic in Private Servers
all fine but... L2Net Botting Program Here you can find the L2Net botting program. You can use it for many accounts but you have to be online at least on one character. The program is ready to use, just download it from the links below lol -
remove freya armors /weapons let vesper
-
Xriazonai atomo na me kanei server free h me 10 euro
Malzahax replied to spellkillerr's question in Request Server Development Help [Greek]
orly? k -
sinxwremenos dude
-
posous vathmous - exei ekei p meneis?