apaleytos

Members
  • Content Count

    20
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0 Neutral

About apaleytos

  • Rank
    Vassal

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

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

  1. moveDistance = 30; MoveTo(149608, -112540, -2057, moveDistance); TargetNpc("Jeremy", 31521); Talk(); ClickAndWait("npc_268467005_Quest", "Quest"); ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery"); ClickAndWait("Quest 621_EggDelivery 31521-1.htm", "I'll deliver your eggs."); -- Quest state changed, ID: 621, STATE: 1 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Quest state changed, ID: 621, STATE: 1 MoveTo(149483, -112682, -2057, moveDistance); MoveTo(149499, -112688, -2057, moveDistance); MoveTo(149499, -112688, -2057, moveDistance); MoveTo(149502, -112688, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149599, -112580, -2070, moveDistance); MoveTo(149861, -112844, -2080, moveDistance); MoveTo(150009, -113859, -2017, moveDistance); MoveTo(150426, -114823, -1772, moveDistance); MoveTo(154117, -115553, -1511, moveDistance); MoveTo(156894, -115400, -1864, moveDistance); MoveTo(157334, -115094, -1888, moveDistance); TargetNpc("Pulin", 31543); MoveTo(157582, -115363, -1909, moveDistance); Talk(); ClickAndWait("npc_268467008_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31543-1.htm", "I've got some Boiled Eggs for you."); -- Get new quest item, ID: 7195, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Quest state changed, ID: 621, STATE: 2 -- Quest state changed, ID: 621, STATE: 2 MoveTo(156495, -113834, -1736, moveDistance); MoveTo(156428, -112353, -1824, moveDistance); MoveTo(156476, -111039, -2568, moveDistance); MoveTo(155596, -110468, -2632, moveDistance); -- Quest state changed, ID: 621, STATE: 2 UseItem(1539); -- Greater Healing Potion MoveTo(155634, -110522, -2636, moveDistance); MoveTo(155610, -110253, -2633, moveDistance); MoveTo(155046, -107947, -2640, moveDistance); MoveTo(154774, -107844, -2707, moveDistance); MoveTo(154768, -107559, -2689, moveDistance); MoveTo(154875, -107315, -2686, moveDistance); MoveTo(154920, -107216, -2683, moveDistance); TargetNpc("Naff", 31544); MoveTo(155585, -105783, -2760, moveDistance); Talk(); ClickAndWait("npc_268467009_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31544-1.htm", "I have some Boiled Eggs for you!"); -- Get new quest item, ID: 7195, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Quest state changed, ID: 621, STATE: 3 -- Quest state changed, ID: 621, STATE: 3 MoveTo(155197, -105036, -2744, moveDistance); MoveTo(153780, -103388, -2968, moveDistance); MoveTo(153798, -100952, -2920, moveDistance); MoveTo(150890, -101531, -2880, moveDistance); MoveTo(148537, -100801, -2954, moveDistance); MoveTo(146201, -100907, -3176, moveDistance); UseItem(1539); -- Greater Healing Potion MoveTo(144805, -100674, -3272, moveDistance); MoveTo(143995, -103851, -3592, moveDistance); MoveTo(141319, -105027, -3624, moveDistance); TargetNpc("Crocus", 31545); Talk(); ClickAndWait("npc_268467010_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31545-1.htm", "I've got your eggs right here."); -- Get new quest item, ID: 7195, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Quest state changed, ID: 621, STATE: 4 -- Quest state changed, ID: 621, STATE: 4 -- Quest state changed, ID: 621, STATE: 4 MoveTo(140698, -105518, -3637, moveDistance); MoveTo(141674, -106491, -3552, moveDistance); MoveTo(141708, -109428, -3597, moveDistance); TargetNpc("Kuber", 31546); Talk(); ClickAndWait("npc_268467011_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31546-1.htm", "Egg delivery, sir!"); -- Get new quest item, ID: 7195, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Quest state changed, ID: 621, STATE: 5 -- Quest state changed, ID: 621, STATE: 5 MoveTo(143336, -108754, -3512, moveDistance); MoveTo(145940, -108915, -3356, moveDistance); MoveTo(148944, -108848, -2576, moveDistance); MoveTo(149816, -110753, -2256, moveDistance); -- Quest state changed, ID: 621, STATE: 5 MoveTo(149195, -111964, -2152, moveDistance); MoveTo(147872, -113267, -2120, moveDistance); TargetNpc("Beolin", 31547); Talk(); ClickAndWait("npc_268467012_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31547-1.htm", "I've got your eggs right here."); -- Get new quest item, ID: 7195, COUNT: 0 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Quest state changed, ID: 621, STATE: 6 -- Quest state changed, ID: 621, STATE: 6 MoveTo(147582, -113238, -2117, moveDistance); MoveTo(147633, -113116, -2118, moveDistance); MoveTo(147742, -113110, -2103, moveDistance); MoveTo(148527, -112346, -2176, moveDistance); MoveTo(149342, -112335, -2070, moveDistance); TargetNpc("Jeremy", 31521); MoveTo(149570, -112597, -2070, moveDistance); Talk(); ClickAndWait("npc_268467005_Quest", "Quest"); ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery"); ClickAndWait("Quest 621_EggDelivery 31521-3.htm", "I made all the deliveries."); -- Get new quest item, ID: 7196, COUNT: 0 MoveTo(149570, -112597, -2070, moveDistance); UseItem(736); edw MoveTo(145241, -57069, -2976, moveDistance); MoveTo(145950, -58193, -2976, moveDistance); MoveTo(147874, -58378, -2976, moveDistance); MoveTo(149249, -57947, -3007, moveDistance); MoveTo(149084, -57646, -2968, moveDistance); MoveTo(149336, -57474, -2994, moveDistance); edw MoveTo(150212, -57155, -3002, moveDistance); MoveTo(149749, -57769, -2997, moveDistance); MoveTo(149249, -57947, -3007, moveDistance); MoveTo(149084, -57646, -2968, moveDistance); MoveTo(149336, -57474, -2994, moveDistance); edw MoveTo(147689, -58263, -2976, moveDistance); MoveTo(148842, -58244, -2976, moveDistance); MoveTo(149249, -57947, -3007, moveDistance); MoveTo(149084, -57646, -2968, moveDistance); MoveTo(149336, -57474, -2994, moveDistance); TargetNpc("Valentine", 31584); Talk(); ClickAndWait("npc_268467005_Quest", "Quest"); ClickAndWait("npc_268467005_Quest", "Jeremy sent me."); ti mporo na balo ekei pou grafw t edw gia na sindeso tn kodika to proto moveto meta t edw einai t respawn pou bgenw stin poli
  2. -Premium Only: SCONFIG = L2TConfig.GetConfig(); --Premium Only: SCONFIG_FILE = GetDir() .. '\\scripts\\EggDeliveryInterlude.l2b'; --Premium Only: L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30; MoveTo(149608, -112540, -2057, moveDistance); TargetNpc("Jeremy", 31521); Talk(); ClickAndWait("npc_268467005_Quest", "Quest"); ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery"); ClickAndWait("Quest 621_EggDelivery 31521-1.htm", "I'll deliver your eggs."); -- Quest state changed, ID: 621, STATE: 1 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Get new quest item, ID: 7195, COUNT: 5 -- Quest state changed, ID: 621, STATE: 1 MoveTo(149483, -112682, -2057, moveDistance); MoveTo(149499, -112688, -2057, moveDistance); MoveTo(149499, -112688, -2057, moveDistance); MoveTo(149502, -112688, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149513, -112694, -2070, moveDistance); MoveTo(149599, -112580, -2070, moveDistance); MoveTo(149861, -112844, -2080, moveDistance); MoveTo(150009, -113859, -2017, moveDistance); MoveTo(150426, -114823, -1772, moveDistance); MoveTo(154117, -115553, -1511, moveDistance); TargetNpc("Pulin", 31543); MoveTo(157582, -115363, -1909, moveDistance); Talk(); ClickAndWait("npc_268467008_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31543-1.htm", "I've got some Boiled Eggs for you."); -- Get new quest item, ID: 7195, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 1 -- Quest state changed, ID: 621, STATE: 2 -- Quest state changed, ID: 621, STATE: 2 MoveTo(157582, -115363, -1909, moveDistance); MoveTo(155961, -113137, -1767, moveDistance); MoveTo(156693, -112374, -1851, moveDistance); MoveTo(156694, -111103, -2555, moveDistance); -- Quest state changed, ID: 621, STATE: 2 UseItem(1539); -- Greater Healing Potion MoveTo(155634, -110522, -2636, moveDistance); MoveTo(155610, -110253, -2633, moveDistance); MoveTo(155046, -107947, -2640, moveDistance); MoveTo(155054, -107911, -2632, moveDistance); MoveTo(154768, -107559, -2689, moveDistance); MoveTo(154875, -107315, -2686, moveDistance); MoveTo(154920, -107216, -2683, moveDistance); TargetNpc("Naff", 31544); MoveTo(155585, -105783, -2760, moveDistance); Talk(); ClickAndWait("npc_268467009_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31544-1.htm", "I have some Boiled Eggs for you!"); -- Get new quest item, ID: 7195, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 2 -- Quest state changed, ID: 621, STATE: 3 -- Quest state changed, ID: 621, STATE: 3 MoveTo(155585, -105783, -2760, moveDistance); MoveTo(155904, -105518, -2759, moveDistance); MoveTo(155855, -105377, -2759, moveDistance); MoveTo(155809, -105323, -2758, moveDistance); MoveTo(155445, -104917, -2751, moveDistance); MoveTo(155384, -104917, -2751, moveDistance); MoveTo(153830, -103204, -2980, moveDistance); UseItem(1539); -- Greater Healing Potion MoveTo(153764, -101022, -2935, moveDistance); MoveTo(150397, -101480, -2872, moveDistance); MoveTo(147950, -100682, -2991, moveDistance); MoveTo(146499, -101136, -3157, moveDistance); MoveTo(146133, -101951, -2914, moveDistance); MoveTo(144124, -103967, -3593, moveDistance); MoveTo(140698, -105518, -3637, moveDistance); TargetNpc("Crocus", 31545); Talk(); ClickAndWait("npc_268467010_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31545-1.htm", "I've got your eggs right here."); -- Get new quest item, ID: 7195, COUNT: 2 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Get new quest item, ID: 7196, COUNT: 3 -- Quest state changed, ID: 621, STATE: 4 -- Quest state changed, ID: 621, STATE: 4 -- Quest state changed, ID: 621, STATE: 4 MoveTo(140698, -105518, -3637, moveDistance); MoveTo(141674, -106491, -3552, moveDistance); MoveTo(141708, -109428, -3597, moveDistance); TargetNpc("Kuber", 31546); Talk(); ClickAndWait("npc_268467011_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31546-1.htm", "Egg delivery, sir!"); -- Get new quest item, ID: 7195, COUNT: 1 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Get new quest item, ID: 7196, COUNT: 4 -- Quest state changed, ID: 621, STATE: 5 -- Quest state changed, ID: 621, STATE: 5 MoveTo(141708, -109428, -3597, moveDistance); MoveTo(141746, -109276, -3596, moveDistance); MoveTo(142208, -109302, -3592, moveDistance); MoveTo(142524, -108978, -3584, moveDistance); -- Quest state changed, ID: 621, STATE: 5 MoveTo(143909, -108773, -3488, moveDistance); MoveTo(144892, -108860, -3462, moveDistance); MoveTo(148446, -108955, -2682, moveDistance); MoveTo(149531, -109372, -2465, moveDistance); MoveTo(149241, -111674, -2195, moveDistance); MoveTo(149059, -111850, -2174, moveDistance); MoveTo(149026, -111882, -2172, moveDistance); MoveTo(149026, -111882, -2172, moveDistance); MoveTo(149026, -111882, -2172, moveDistance); MoveTo(148812, -112089, -2163, moveDistance); MoveTo(148676, -112221, -2170, moveDistance); MoveTo(148498, -112394, -2173, moveDistance); MoveTo(148302, -112584, -2165, moveDistance); MoveTo(148115, -112765, -2160, moveDistance); MoveTo(147582, -113238, -2117, moveDistance); TargetNpc("Beolin", 31547); Talk(); ClickAndWait("npc_268467012_Quest", "Quest"); ClickAndWait("Quest 621_EggDelivery 31547-1.htm", "I've got your eggs right here."); -- Get new quest item, ID: 7195, COUNT: 0 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Get new quest item, ID: 7196, COUNT: 5 -- Quest state changed, ID: 621, STATE: 6 -- Quest state changed, ID: 621, STATE: 6 MoveTo(147582, -113238, -2117, moveDistance); MoveTo(147633, -113116, -2118, moveDistance); MoveTo(147742, -113110, -2103, moveDistance); MoveTo(148527, -112346, -2176, moveDistance); MoveTo(149342, -112335, -2070, moveDistance); TargetNpc("Jeremy", 31521); MoveTo(149570, -112597, -2070, moveDistance); Talk(); ClickAndWait("npc_268467005_Quest", "Quest"); ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery"); ClickAndWait("Quest 621_EggDelivery 31521-3.htm", "I made all the deliveries."); -- Get new quest item, ID: 7196, COUNT: 0 MoveTo(149570, -112597, -2070, moveDistance); --Premium Only: L2TConfig.LoadConfig(SCONFIG_FILE); I HAVE THIS CODE AND NEED GO TO TOWN SPEAK IN ONE NPC TO GIVE QUEST AND REPEAT THIS HOW I DO IT ??
  3. guys i use this code for tt quest and dont work
  4. this bot work in smartgurd ?? thnx
  5. ok i fix thnx now one more question who work together this and exilium cuptsat pin ???
  6. i have one code but dont work in exilium giran and tp in dragon valley var item: TL2Item; function buffCheck: Boolean; var buff: TL2Buff; begin if not User.Buffs.ByID(4397, buff) then begin Result:=true; Print('Magic Support'); Engine.MoveTo(81938,148298,-3468); Engine.SetTarget('Horadrim'); delay(1000); Engine.DlgOpen; delay(1000); Engine.DlgSel('Default'); // notworking delay(1000); end; Result:=false; end; function deadCheck: Boolean; begin Result := false; if User.Dead then begin Result := true; Print('Dead. Pressing to village.'); Delay(1000); Engine.FaceControl(0,false); Engine.GOHome(rtTown); ///here change to town or other Delay(10000); end; end; begin while true do begin delay(150); if User.inrange(86574,148326,-3470, 250, 150) then begin // ch Engine.MoveTo(86780,-142217,-1320); Engine.MoveTo(87103,-142760,-1320); Engine.MoveTo(83406,147931,-3406); end; if user.inrange(81048,148326,-3470, 500) then begin end; if user.inrange(83371,147921,-3406, 150) then begin Engine.SetTarget(31964); Engine.DlgOpen; Delay(700); Engine.DlgSel('Mystra'); Delay(700); Engine.DlgSel('High Level Hunting Areas'); Delay(10000); Engine.SetTarget('Mysta'); Engine.DlgOpen; Delay(700); Engine.DlgSel('High Level Hunting Areas'); Delay(700); Engine.DlgSel('Dragon Valley cave'); Delay(1000); end; if user.inrange(149575,-112710,-2060, 500) then begin Print('cest parti'); Engine.MoveTo(149606,-110577,-2298); Engine.MoveTo(149161,-109035,-2529); Engine.MoveTo(147956,-108811,-2836); Engine.MoveTo(145523,-109075,-3449); Engine.MoveTo(143923,-110626,-3597); Print('Yatta'); Delay(500); Engine.FaceControl(0, true); while not deadCheck do delay(1000); //while not dead, do nothing and wait. end; end; end. if you can help me pls
  7. exw t pack ts frozen t 1004magic t hopzone doulebi kanonika ala t top zone tpt kano sharde tn code mipos mpori na ftei aftw Plis help package com.l2jfrozen.gameserver.handler; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; 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.l2jfrozen.Config; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.entity.Announcements; import com.l2jfrozen.gameserver.powerpak.PowerPakConfig; import com.l2jfrozen.gameserver.thread.ThreadPoolManager; public class AutoVoteRewardHandler { protected static final Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); private int hopzoneVotesCount = 0; private int topzoneVotesCount = 0; protected List<String> already_rewarded; protected static boolean topzone = false; protected static boolean hopzone = false; private AutoVoteRewardHandler() { _log.info("Vote Reward System Initiated."); if(hopzone){ int hopzone_votes = getHopZoneVotes(); if(hopzone_votes == -1){ hopzone_votes = 0; } setHopZoneVoteCount(hopzone_votes); } if(topzone){ int topzone_votes = getTopZoneVotes(); if(topzone_votes == -1){ topzone_votes = 0; } setTopZoneVoteCount(topzone_votes); } ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), PowerPakConfig.VOTES_SYSYEM_INITIAL_DELAY, PowerPakConfig.VOTES_SYSYEM_STEP_DELAY); } protected class AutoReward implements Runnable { @Override public void run() { int minutes = (PowerPakConfig.VOTES_SYSYEM_STEP_DELAY/1000)/60; if(hopzone){ int hopzone_votes = getHopZoneVotes(); if(hopzone_votes != -1){ _log.info("[AutoVoteReward] Server HOPZONE Votes: " + hopzone_votes); Announcements.getInstance().gameAnnounceToAll("Actual HOPZONE Votes are " + hopzone_votes + "..."); if (hopzone_votes != 0 && hopzone_votes >= getHopZoneVoteCount() + PowerPakConfig.VOTES_FOR_REWARD) { already_rewarded = new ArrayList<String>(); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); Announcements.getInstance().gameAnnounceToAll("Great Work!All L2EternalBattle online players are rewarded!"); //L2ItemInstance item; for (L2PcInstance player : pls) { if (player != null && !player.isOffline() && player.isOnline()==1) { if(player._active_boxes<=1 || (player._active_boxes>1 && checkSingleBox(player))){ Set<Integer> items = PowerPakConfig.VOTES_REWARDS_LIST.keySet(); for (Integer i : items) { //item = player.getInventory().getItemByItemId(i); //TODO: check on maxstack for item player.addItem("reward", i, PowerPakConfig.VOTES_REWARDS_LIST.get(i), player, true); } } } } setHopZoneVoteCount(hopzone_votes); } Announcements.getInstance().gameAnnounceToAll("Next Reward at " + (getHopZoneVoteCount() + PowerPakConfig.VOTES_FOR_REWARD) + " Votes!!"); //site web Announcements.getInstance().gameAnnounceToAll("Website: "+PowerPakConfig.SERVER_WEB_SITE); } } if(topzone && hopzone && PowerPakConfig.VOTES_SYSYEM_STEP_DELAY>0) try { Thread.sleep(PowerPakConfig.VOTES_SYSYEM_STEP_DELAY/2); } catch(InterruptedException e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); } if(topzone){ int topzone_votes = getTopZoneVotes(); if(topzone_votes != -1){ _log.info("[AutoVoteReward] Server TOPZONE Votes: " + topzone_votes); Announcements.getInstance().gameAnnounceToAll("Actual TOPZONE Votes are " + topzone_votes + "..."); if (topzone_votes != 0 && topzone_votes >= getTopZoneVoteCount() + PowerPakConfig.VOTES_FOR_REWARD) { already_rewarded = new ArrayList<String>(); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); Announcements.getInstance().gameAnnounceToAll("Great Work!All L2EternalBattle online players are rewarded!"); //L2ItemInstance item; for (L2PcInstance player : pls) { if (player != null && !player.isOffline() && player.isOnline()==1) { if(player._active_boxes<=1 || (player._active_boxes>1 && checkSingleBox(player))){ Set<Integer> items = PowerPakConfig.VOTES_REWARDS_LIST.keySet(); for (Integer i : items) { //item = player.getInventory().getItemByItemId(i); //TODO: check on maxstack for item player.addItem("reward", i, PowerPakConfig.VOTES_REWARDS_LIST.get(i), player, true); } } } } setTopZoneVoteCount(topzone_votes); } Announcements.getInstance().gameAnnounceToAll("Next Reward at " + (getTopZoneVoteCount() + PowerPakConfig.VOTES_FOR_REWARD) + " Votes!!"); //site web Announcements.getInstance().gameAnnounceToAll("WebSite: "+PowerPakConfig.SERVER_WEB_SITE); } } } } protected 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; already_rewarded.add(playerip); return true; } //if no connection (maybe offline shop) dnt reward return false; } protected int getHopZoneVotes() { int votes = -1; URL url = null; URLConnection con = null; InputStream is = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(PowerPakConfig.VOTES_SITE_HOPZONE_URL); con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); is = con.getInputStream(); isr = new InputStreamReader(is); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("rank anonymous tooltip")) { votes = Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); break; } } } catch (Exception e) { _log.info("HOPZONE is offline or something is wrong in link"); Announcements.getInstance().gameAnnounceToAll("HOPZONE is offline. We will check the reward as soon as it will be online"); //e.printStackTrace(); } finally { if(in!=null) try { in.close(); } catch(IOException e1) { e1.printStackTrace(); } if(isr!=null) try { isr.close(); } catch(IOException e1) { e1.printStackTrace(); } if(is!=null) try { is.close(); } catch(IOException e1) { e1.printStackTrace(); } } return votes; } protected int getTopZoneVotes() { int votes = -1; URL url = null; URLConnection con = null; InputStream is = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(PowerPakConfig.VOTES_SITE_TOPZONE_URL); con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); is = con.getInputStream(); isr = new InputStreamReader(is); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("Votes")) { String votesLine = inputLine; votes = Integer.valueOf(votesLine.split(">")[3].replace("</div", "")); break; } } } catch (Exception e) { _log.info("[AutoVoteReward] Server TOPZONE is offline or something is wrong in link"); Announcements.getInstance().gameAnnounceToAll("TOPZONE is offline. We will check the reward as soon as it will be online"); //e.printStackTrace(); } finally { if(in!=null) try { in.close(); } catch(IOException e1) { e1.printStackTrace(); } if(isr!=null) try { isr.close(); } catch(IOException e1) { e1.printStackTrace(); } if(is!=null) try { is.close(); } catch(IOException e1) { e1.printStackTrace(); } } return votes; } protected void setHopZoneVoteCount(int voteCount) { hopzoneVotesCount = voteCount; } protected int getHopZoneVoteCount() { return hopzoneVotesCount; } protected void setTopZoneVoteCount(int voteCount) { topzoneVotesCount = voteCount; } protected int getTopZoneVoteCount() { return topzoneVotesCount; } public static AutoVoteRewardHandler getInstance() { if(PowerPakConfig.VOTES_SITE_HOPZONE_URL != null && !PowerPakConfig.VOTES_SITE_HOPZONE_URL.equals("")){ hopzone = true; } if(PowerPakConfig.VOTES_SITE_TOPZONE_URL != null && !PowerPakConfig.VOTES_SITE_TOPZONE_URL.equals("")){ topzone = true; } if(topzone || hopzone) return SingletonHolder._instance; return null; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); }
  8. εχω φορτοση τα sourse στο eclipse κανω biuld τ αρχειο που θελω σιγκεκριμενα τ autovotereward αλα μετα που τ περναω !!! ty προκαταβολικα
  9. psaxno google ala dn brisko kati ikanopoihtiko se prositi timi !!! Thnx prokatabolika
  10. Paidiaaa an 3erei kapoios na help se auto to thema!! Molis pataw to village me paei goddard !!
  11. pedia kano sub class kai me t pou bazo weapon trow ban m to ebgale tora den ksero giati pliz help gt exw nikiasi host
  12. exw donate system sto server me //setdonator kanonika kanw //setdonator alazi onoma kai title ala me t restart xanete kai dn exei oute annoument oute tpt kai dn eiparxi kapia katigoria database donator .... Euxaristo prokatabolika :)