Jump to content
  • 0

Question

Posted

mou bgazi error stin consola gia to vote reward

 

 

VoteManager:initialized java.net.malformedURLexception:no protocol:

Error while getting server  vote count , vote :0 link: null

Your URL is: 

There was a problem on getting Topzone server vote.

There was a problem on getting Hopzone server vote.

10 answers to this question

Recommended Posts

  • 0
Posted

stile edw ta configs

# ================================================================ #

#                          Vote System                             #

# ================================================================ #

HopzoneUrl = http://l2.hopzone.net/lineage2/details/99300/Lineage-2-Infector

TopzoneUrl =

# The characters will have a choice between 3 rewards.Set id for them

VoteRewardId1 = 9142

VoteRewardId2 = 9142

VoteRewardId3 = 9142

# Set the amount of each reward.

VoteRewardAmount1 = 1

VoteRewardAmount2 = 2

VoteRewardAmount3 = 3

# Set the seconds that the character has

# until he votes in the site's banners

SecondsToVote = 20

# Amount of votes a character must collect

# in order to get the 4th vote reward

ExtraRewVoteAm = 20

# Info of the extra reward item

VoteRewardId4 = 9142

VoteRewardAmount4 = 4

 

exo kai ena allo problima o server mou exi polla bugs einai unblancer kai trwne dc oli

  • 0
Posted

# ================================================================ #

#                          Vote System                             #

# ================================================================ #

HopzoneUrl = http://l2.hopzone.net/lineage2/details/99300/Lineage-2-Infector

TopzoneUrl =

# The characters will have a choice between 3 rewards.Set id for them

VoteRewardId1 = 9142

VoteRewardId2 = 9142

VoteRewardId3 = 9142

# Set the amount of each reward.

VoteRewardAmount1 = 1

VoteRewardAmount2 = 2

VoteRewardAmount3 = 3

# Set the seconds that the character has

# until he votes in the site's banners

SecondsToVote = 20

# Amount of votes a character must collect

# in order to get the 4th vote reward

ExtraRewVoteAm = 20

# Info of the extra reward item

VoteRewardId4 = 9142

VoteRewardAmount4 = 4

 

exo kai ena allo problima o server mou exi polla bugs einai unblancer kai trwne dc oli

ur url is NULL

den exeis orisei Url sto TopZone gia na doulepsei prepi na exei kai ta 2 url

oso gia to allo thema pou exeis exo na sou po ena pragma

Oti plironeis perneis apo pou to pires to pack?ine precompiled?An nai tote den tha eprepe na empisteuese etsi atoma eukola tora an ine Free Share to pack pou xrisimopoieis ta Free Auta exoune

episis Prin kaneis kinisi gia na anoikseis enan server LIVE tha eprepe ooooola auta na ta koitakseis

Den sto leo apo kakia alla pragmatika ine astio na vlepeis servers apo genika unskilled atoma kai apo fail packs!!!

  • 0
Posted

Έχει δίκιο ο Dante44.

Πρώτα κοιτάμε με τι έχουμε να κάνουμε, τι πρέπει να φτιάξουμε, τι δουλεύει και τι όχι, και μετά κάνουμε κινήσεις για live έναν Server.

 

Τέλος πάντων... Κοίτα αν έχει false για το check του topzone.

Αλλιώς, στείλε τον κώδικα από τα Java.

 

Τι έρρορ παίρνεις στο gs μόλις τρώνε dc οι παίχτες? Δώσε περισσότερες πληροφορίες...

  • 0
Posted (edited)

Έχει δίκιο ο Dante44.

Πρώτα κοιτάμε με τι έχουμε να κάνουμε, τι πρέπει να φτιάξουμε, τι δουλεύει και τι όχι, και μετά κάνουμε κινήσεις για live έναν Server.

 

Τέλος πάντων... Κοίτα αν έχει false για το check του topzone.

Αλλιώς, στείλε τον κώδικα από τα Java.

 

Τι έρρορ παίρνεις στο gs μόλις τρώνε dc οι παίχτες? Δώσε περισσότερες πληροφορίες...

mono auto trone Client Character: Name - Acount:  ID - ip 1.11.11.111 disconnected abnormaly

 

o code sto java.extensions.vote.votemanager

/*
* 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 Extensions.Vote;
import java.io.BufferedReader;
import java.io.InputStream;
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.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import Extensions.Vote.Tasks.MonthlyResetTask;
import Extensions.Vote.Tasks.TriesResetTask;
import com.l2jhellas.Config;
import com.l2jhellas.gameserver.ThreadPoolManager;
import com.l2jhellas.gameserver.model.L2World;
import com.l2jhellas.gameserver.model.actor.instance.L2PcInstance;
import com.l2jhellas.util.database.L2DatabaseFactory;
public class VoteManager
{
protected static final Logger _log = Logger.getLogger(VoteManager.class.getName());
private static boolean hasVotedHop;
private static boolean hasVotedTop;
public VoteManager()
{
}
public static void load()
{
  _log.log(Level.INFO, "VoteManager: initialized.");
  TriesResetTask.getInstance();
  MonthlyResetTask.getInstance();
}
protected static int getHopZoneVotes()
{
  int votes = -1;
  String Hopzonelink = Config.VOTE_LINK_HOPZONE;
  InputStreamReader isr = null;
  BufferedReader br = null;
 
  try
  {
   URLConnection con = new URL(Hopzonelink).openConnection();
   con.addRequestProperty("User-Agent", "Mozilla/4.76");
   isr = new InputStreamReader(con.getInputStream());
   br = new BufferedReader(isr);
  
   String line;
   while ((line = br.readLine()) != null)
   {
    if (line.contains("rank anonymous tooltip"))
    {
     votes = Integer.valueOf(line.split(">")[2].replace("</span", ""));
     break;
    }
   }
  
   br.close();
   isr.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: Crazy error call boorinio " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return votes;
}
protected static int getTopZoneVotes()
{
  int votes = -1;
  URL url = null;
  URLConnection con = null;
  InputStream is = null;
  InputStreamReader isr = null;
  BufferedReader in = null;
  try
  {
   url = new URL(Config.VOTE_LINK_TOPZONE);
   con = url.openConnection();
   con.addRequestProperty("User-Agent", "L2TopZone");
   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.log(Level.WARNING, "VoteManager: cant get topzone votes " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return votes;
}
public static String hopCd(L2PcInstance player)
{
  long hopCdMs = 0;
  long voteDelay = 43200000L;
  PreparedStatement statement = null;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   statement = con.prepareStatement("SELECT lastVoteHopzone FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    hopCdMs = rset.getLong("lastVoteHopzone");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select lastvotehopzone from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm");
  Date resultdate = new Date(hopCdMs + voteDelay);
  return sdf.format(resultdate);
}
public static String topCd(L2PcInstance player)
{
  long topCdMs = 0;
  long voteDelay = 43200000L;
  PreparedStatement statement = null;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   statement = con.prepareStatement("SELECT lastVoteTopzone FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    topCdMs = rset.getLong("lastVoteTopzone");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select lastvotehopzone from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm");
  Date resultdate = new Date(topCdMs + voteDelay);
  return sdf.format(resultdate);
}
public static String whosVoting()
{
  for (L2PcInstance voter : L2World.getAllPlayers())
  {
   if (voter.isVoting())
   {
    return voter.getName();
   }
  }
  return "None";
}
public static void hopvote(final L2PcInstance player)
{
  long lastVoteHopzone = 0L;
  long voteDelay = 43200000L;
  final int firstvoteshop;
  firstvoteshop = getHopZoneVotes();
  class hopvotetask implements Runnable
  {
   private final L2PcInstance p;
   public hopvotetask(L2PcInstance player)
   {
    p = player;
   }
   @Override
   public void run()
   {
    if (firstvoteshop < getHopZoneVotes())
    {
     p.setIsVoting(false);
     VoteManager.setHasVotedHop(player);
     p.sendMessage("Thank you for voting for us!");
     VoteManager.updateLastVoteHopzone(p);
     VoteManager.updateVotes(p);
    }
    else
    {
     p.setIsVoting(false);
     p.sendMessage("You did not vote.Please try again.");
     VoteManager.setTries(player, VoteManager.getTries(p) - 1);
    }
   }
  }
  PreparedStatement statement = null;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   statement = con.prepareStatement("SELECT lastVoteHopzone FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    lastVoteHopzone = rset.getLong("lastVoteHopzone");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select lastvotehopzone from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  if (getTries(player) <= 0)
  {
   player.sendMessage("Due to your multiple failures in voting you lost your chance to vote today");
  }
  else if (((lastVoteHopzone + voteDelay) < System.currentTimeMillis()) && (getTries(player) > 0))
  {
   for (L2PcInstance j : L2World.getAllPlayers())
   {
    if (j.isVoting())
    {
     player.sendMessage("Someone is already voting.Wait for your turn please!");
     return;
    }
   }
   player.setIsVoting(true);
   player.sendMessage("Go fast on the site and vote on the hopzone banner!");
   player.sendMessage("You have " + Config.SECS_TO_VOTE + " seconds.Hurry!");
   ThreadPoolManager.getInstance().scheduleGeneral(new hopvotetask(player), Config.SECS_TO_VOTE * 1000);
  }
  else if ((getTries(player) <= 0) && ((lastVoteHopzone + voteDelay) < System.currentTimeMillis()))
  {
   for (L2PcInstance j : L2World.getAllPlayers())
   {
    if (j.isVoting())
    {
     player.sendMessage("Someone is already voting.Wait for your turn please!");
     return;
    }
   }
   player.setIsVoting(true);
   player.sendMessage("Go fast on the site and vote on the hopzone banner!");
   player.sendMessage("You have " + Config.SECS_TO_VOTE + " seconds.Hurry!");
   ThreadPoolManager.getInstance().scheduleGeneral(new hopvotetask(player), Config.SECS_TO_VOTE * 1000);
  }
  else
  {
   player.sendMessage("12 hours have to pass till you are able to vote again.");
  }
}
public static void topvote(final L2PcInstance player)
{
  long lastVoteTopzone = 0L;
  long voteDelay = 43200000L;
  final int firstvotestop;
  firstvotestop = getTopZoneVotes();
  class topvotetask implements Runnable
  {
   private final L2PcInstance p;
   public topvotetask(L2PcInstance player)
   {
    p = player;
   }
   @Override
   public void run()
   {
    if (firstvotestop < getTopZoneVotes())
    {
     p.setIsVoting(false);
     VoteManager.setHasVotedTop(p);
     p.sendMessage("Thank you for voting for us!");
     VoteManager.updateLastVoteTopzone(p);
     VoteManager.updateVotes(p);
    }
    else
    {
     p.setIsVoting(false);
     p.sendMessage("You did not vote.Please try again.");
     VoteManager.setTries(p, VoteManager.getTries(p) - 1);
    }
   }
  }
  PreparedStatement statement = null;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   statement = con.prepareStatement("SELECT lastVoteTopzone FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    lastVoteTopzone = rset.getLong("lastVoteTopzone");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select lastvotehopzone from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  if (getTries(player) <= 0)
  {
   player.sendMessage("Due to your multiple failures in voting you lost your chance to vote today");
  }
  else if ((getTries(player) <= 0) && ((lastVoteTopzone + voteDelay) < System.currentTimeMillis()))
  {
   for (L2PcInstance j : L2World.getAllPlayers())
   {
    if (j.isVoting())
    {
     player.sendMessage("Someone is already voting.Wait for your turn please!");
     return;
    }
   }
   player.setIsVoting(true);
   player.sendMessage("Go fast on the site and vote on the topzone banner!");
   player.sendMessage((new StringBuilder()).append("You have ").append(Config.SECS_TO_VOTE).append(" seconds.Hurry!").toString());
   ThreadPoolManager.getInstance().scheduleGeneral(new topvotetask(player), Config.SECS_TO_VOTE * 1000);
  }
  else if (((lastVoteTopzone + voteDelay) < System.currentTimeMillis()) && (getTries(player) > 0))
  {
   for (L2PcInstance j : L2World.getAllPlayers())
   {
    if (j.isVoting())
    {
     player.sendMessage("Someone is already voting.Wait for your turn please!");
     return;
    }
   }
   player.setIsVoting(true);
   player.sendMessage("Go fast on the site and vote on the topzone banner!");
   player.sendMessage((new StringBuilder()).append("You have ").append(Config.SECS_TO_VOTE).append(" seconds.Hurry!").toString());
   ThreadPoolManager.getInstance().scheduleGeneral(new topvotetask(player), Config.SECS_TO_VOTE * 1000);
  }
  else
  {
   player.sendMessage("12 hours have to pass till you are able to vote again.");
  }
}
public static void hasVotedHop(L2PcInstance player)
{
  int hasVotedHop = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT hasVotedHop FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    hasVotedHop = rset.getInt("hasVotedHop");
   }
   if (hasVotedHop == 1)
   {
    setHasVotedHop(true);
   }
   else if (hasVotedHop == 0)
   {
    setHasVotedHop(false);
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select hasVotedHop from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void hasVotedTop(L2PcInstance player)
{
  int hasVotedTop = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT hasVotedTop FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   ResultSet rset = statement.executeQuery();
   while (rset.next())
   {
    hasVotedTop = rset.getInt("hasVotedTop");
   }
   if (hasVotedTop == 1)
   {
    setHasVotedTop(true);
   }
   else if (hasVotedTop == 0)
   {
    setHasVotedTop(false);
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select hasVotedHop from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void updateVotes(L2PcInstance activeChar)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET monthVotes=?, totalVotes=? WHERE obj_Id=?");
   statement.setInt(1, getMonthVotes(activeChar) + 1);
   statement.setInt(2, getTotalVotes(activeChar) + 1);
   statement.setInt(3, activeChar.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update votes on table characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void setHasVotedHop(L2PcInstance activeChar)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET hasVotedHop=? WHERE obj_Id=?");
   statement.setInt(1, 1);
   statement.setInt(2, activeChar.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update hasVotedHop in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void setHasVotedTop(L2PcInstance activeChar)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET hasVotedTop=? WHERE obj_Id=?");
   statement.setInt(1, 1);
   statement.setInt(2, activeChar.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update hasVotedTop in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void setHasNotVotedHop(L2PcInstance activeChar)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET hasVotedHop=? WHERE obj_Id=?");
   statement.setInt(1, 0);
   statement.setInt(2, activeChar.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update hasVotedHop in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void setHasNotVotedTop(L2PcInstance activeChar)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET hasVotedTop=? WHERE obj_Id=?");
   statement.setInt(1, 0);
   statement.setInt(2, activeChar.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update hasVotedTop in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static int getTries(L2PcInstance player)
{
  int tries = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT tries FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   for (ResultSet rset = statement.executeQuery(); rset.next()
   {
    tries = rset.getInt("tries");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not get tries from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return tries;
}
public static void setTries(L2PcInstance player, int tries)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET tries=? WHERE obj_Id=?");
   statement.setInt(1, tries);
   statement.setInt(2, player.getObjectId());
   statement.execute();
   statement.close();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update tries in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static int getMonthVotes(L2PcInstance player)
{
  int monthVotes = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT monthVotes FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   for (ResultSet rset = statement.executeQuery(); rset.next()
   {
    monthVotes = rset.getInt("monthVotes");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select monthVotes from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return monthVotes;
}
public static int getTotalVotes(L2PcInstance player)
{
  int totalVotes = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT totalVotes FROM characters WHERE obj_Id=?");
   statement.setInt(1, player.getObjectId());
   for (ResultSet rset = statement.executeQuery(); rset.next()
   {
    totalVotes = rset.getInt("totalVotes");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select totalVotes from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return totalVotes;
}
public static int getBigTotalVotes(L2PcInstance player)
{
  int bigTotalVotes = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT SUM(totalVotes) FROM characters");
   for (ResultSet rset = statement.executeQuery(); rset.next()
   {
    bigTotalVotes = rset.getInt("SUM(totalVotes)");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select totalVotes from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return bigTotalVotes;
}
public static int getBigMonthVotes(L2PcInstance player)
{
  int bigMonthVotes = -1;
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("SELECT SUM(monthVotes) FROM characters");
   for (ResultSet rset = statement.executeQuery(); rset.next()
   {
    bigMonthVotes = rset.getInt("SUM(monthVotes)");
   }
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not select monthVotes from characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
  return bigMonthVotes;
}
public static void updateLastVoteHopzone(L2PcInstance player)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET lastVoteHopzone=? WHERE obj_Id=?");
   statement.setLong(1, System.currentTimeMillis());
   statement.setInt(2, player.getObjectId());
   statement.execute();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update lastVoteHopzone in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
public static void updateLastVoteTopzone(L2PcInstance player)
{
  try (Connection con = L2DatabaseFactory.getInstance().getConnection())
  {
   PreparedStatement statement = con.prepareStatement("UPDATE characters SET lastVoteTopzone=? WHERE obj_Id=?");
   statement.setLong(1, System.currentTimeMillis());
   statement.setInt(2, player.getObjectId());
   statement.execute();
  }
  catch (Exception e)
  {
   _log.log(Level.WARNING, "VoteManager: could not update lastVoteTopzone in characters " + e);
   if (Config.DEVELOPER)
   {
    e.printStackTrace();
   }
  }
}
// Getters and Setters
public static boolean hasVotedHop()
{
  return hasVotedHop;
}
public static void setHasVotedHop(boolean hasVotedHop)
{
  VoteManager.hasVotedHop = hasVotedHop;
}
public static boolean hasVotedTop()
{
  return hasVotedTop;
}
public static void setHasVotedTop(boolean hasVotedTop)
{
  VoteManager.hasVotedTop = hasVotedTop;
}
}
Edited by FastCow
  • 0
Posted (edited)

den einai auto to class me tis votes gia top hop tespa. kane update latest rev to pack sou. to exw fixarei to problem me hopzone topzone. 

 

diabazete kai kamia fora tin timeline gia na kanete update to pack. https://www.assembla.com/code/l2hellas/subversion/changesets

Edited by AbSoLuTePoWeR
  • 0
Posted

na to kanw etsi einai sosto?

try
  {
   if(!Config.HOPZONE_SERVER_LINK.endsWith(".html"))
   Config.HOPZONE_SERVER_LINK+=".html";
   URLConnection con = new URL(Config.HOPZONE_SERVER_LINK).openConnection();
   con.addRequestProperty("User-L2Hopzone", "Mozilla/4.76");
   InputStreamReader isr = new InputStreamReader(con.getInputStream());
   BufferedReader br = new BufferedReader(isr);
   while ((line = br.readLine()) != null)
    if (line.contains("rank anonymous tooltip"))
    {
     votes = Integer.valueOf(line.split(">")[2].replace("</span", ""));
     Gui.hopzone.setText("HopZone Votes: "+votes);
     return votes;
  • 0
Posted

 

na to kanw etsi einai sosto?

try
  {
   if(!Config.HOPZONE_SERVER_LINK.endsWith(".html"))
   Config.HOPZONE_SERVER_LINK+=".html";
   URLConnection con = new URL(Config.HOPZONE_SERVER_LINK).openConnection();
   con.addRequestProperty("User-L2Hopzone", "Mozilla/4.76");
   InputStreamReader isr = new InputStreamReader(con.getInputStream());
   BufferedReader br = new BufferedReader(isr);
   while ((line = br.readLine()) != null)
    if (line.contains("rank anonymous tooltip"))
    {
     votes = Integer.valueOf(line.split(">")[2].replace("</span", ""));
     Gui.hopzone.setText("HopZone Votes: "+votes);
     return votes;

s esteila pm.s eipa apla kane update to pack kai 8a perasei automata ta updates pou exw kanei.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • # Changelog - Public Updates   This changelog tracks user-facing updates and improvements to Top.MaxCheaters.com.   ---   ## [1.1.0] - 2026-01-XX   ### ✨ New Features - **Complete Chronicle List**: All chronicle options are now available in server forms and filters, including the latest Lineage 2 chronicles - **Improved Chronicle Display**: Server rows now show cleaner, shorter chronicle names for better readability   ### 🐛 Bug Fixes - **Chronicle Filter**: Fixed issue where "Infinite Odyssey" chronicle filter was not working correctly - **Missing Chronicles**: Fixed missing chronicle options in server creation and editing forms   ### 🔄 Improvements - Chronicle filters and dropdowns now stay in sync with the latest available chronicles - Better chronicle name formatting in server listings for improved visual clarity   ---   ## [1.0.0] - Initial Release   ### Features - 🎮 Server listings with multiple tiers (Normal, VIP, Gold VIP, Pinned) - 📊 Click tracking and server statistics - 🌍 Multi-language support (English, Spanish, Portuguese, Greek, Russian) - 💳 Payment system for premium server features - 🔐 Secure authentication system - 👑 Admin panel for server management - 📱 Fully responsive design for all devices - 🔍 Advanced filtering system (by chronicle, rate, server type, date) - 📅 Server opening date tracking - 🎯 Two viewing modes: By Date and By Votes (coming soon for all users)   ---   ## About This Changelog   This changelog focuses on updates that directly impact the user experience. Internal development changes and technical improvements are not included here.   For questions or feedback, please contact support.
    • Now Acc Registration open. Create your account and get ready 🙂
    • General Trackers :   IPTorrents invite IPTorrents account 1 tb TorrentLeech invite Torrentleech account 1 tb buffer  InTheShaDow ( ITS ) account Acid-lounge invite Torrentday invite Crnaberza account Abn.Lol account Limit-of-eden account Norbits account Xspeeds account Xspeeds invite Bemaniso invite Wigornot account Bithumen invite Filelist account Funfile invite AvistaZ invite Potuk.net invite ResurrectThe.Net invite GrabThe.Info invite Greek-Team invite LinkoManija invite Fano.in account tracker.czech-server.com Speed.cd invite Arab-torrents.net account Arabscene.me account Scenetime account 4thd.xyz invite Btarg.com.ar account Dedbit invite Estone.cc account Speedapp invite Finvip invite Fluxzone account GigaTorrents account Gimmepeers account Haidan.video invite Mojblink account Mycarpathians invite Newinsane.info account Oscarworld.xyz account Peers.FM invite Pt.msg.vg account Ransackedcrew account Redemption invite Scene-rush account Seedfile.io invite Teracod invite Torrent.ai account Torrentmasters invite Ttsweb invite X-files invite X-ite invite Ncore account TorrentHR account Rptorrents account BwTorrents account Superbits invite Krazyzone account Immortalseed account Tntracker invite Pt.eastgame.org account Bitturk account Rstorrent account Tracker.btnext invite Torrent-turk.de account BeiTai.PT account Pt.keepfrds account 52pt.site account Pthome account Torrentseeds account Aystorrent account Blues-brothers.biz invite Divteam account Thesceneplace invite CinemaMovies.pl account Brasiltracker account Patiodebutacas account Newheaven.nl account  Swarmazon.club invite Bc-reloaded account Crazyspirits account Silentground invite Omg.wtftrackr invite Milkie.cc invite Breathetheword invite Madsrevolution account Chilebt account Yubraca account Uniongang.tv account Frboard account Exvagos account Diablotorrent account Microbit account Carp-hunter.hu account Majomparade.eu account Theshinning.me account Youiv.info account Dragonworld-reloaded account Sharewood.tv account Partis.si account Digitalcore.club invite Fuzer.me account R3vuk.wtf invite Ztracker account 1 tb buffer 3changtrai account Best-core.info account Bitsite.us account Eliteunitedcrew invite Exitorrent.org account Tophos invite Torrent.lt account Sktorrent.eu account Oshen account Blackhattorrent account Pirata.digital account Esharenet account Ohmenarikgi.la Pirate-share account Immortuos account Kiesbits account Cliente.amigos-share.club account Broadcity invite Ilovetorzz account Torrentbytes account Polishsource account Portugas invite Shareisland account ArabaFenice account Hudbt.hust.edu.cn account Audiences account Nanyangpt account Pt.sjtu.edu.cn account Pt.zhixing.bjtu.edu.cn account Byr.pt invite Ptfiles invite Red-bits account Pt.hdpost.top account Irrenhaus.dyndns.dk (NewPropaganda) account Mnvv2.info (MaxNewVision V2) account 1ptba.com account Spidertk.top account Film-paleis account Generation-free account Aftershock-tracker account Twilightsdreams account Back-ups.me invite Sor-next.tk ( Spirit Of Revolution ) account Tfa.tf ( The Falling Angels ) account Hdmayi account S-f-p.dyndns.dk ( Share Friends Projekt ) account Unlimitz.biz account Pttime account St-tracker.eu account New-retro.eu account Zbbit account Tigers-dl.net account Jptvts.us account Lat-team account Club.hares.top account Falkonvision-team account Concen account Drugari account T.ceskeforum account Peeratiko.org account Zamunda.se account Central-torrent.eu account h-o-d.org account Torrentleech.pl account Demonoid invite Lst.gg account Fakedoor.store account LaidBackManor account Vrbsharezone.co.uk invite Torrenteros account Arenaelite account Datascene account Tracker.0day.community Tapochek.net invite Ptchina invite Lesaloon account Exyusubs account Therebels.tv account Ubits.club invite Zmpt.cc account Turktorrent.us account Dasunerwarte account Hawke.uno account Monikadesign account Fearnopeer account Alpharatio account Wukongwendao.top account Chinapyg account Azusa.wiki account Yggtorrent.top account Torrentdd account Cyanbug.net invite Hhanclub.top account Wintersakura.net account Xthor account Tctg.pm account Finelite invite Agsvpt.com account Pt.0ff.cc invite Qingwapt.com account Xingtan.one account Ptcafe.club invite W-o-t.pro account Coastal-crew.bounceme.net account Darkpeers.org account Pianyuan.org account Seedpool.org  account Tempelbox account Pt.itzmx.com account Capybarabr.com account Itatorrents.xyz  account Letseed.org account The-new-fun.com  account Malayabits.cc account Trellas.me account Yu-scene.net account Futuretorrent.org account Bitpt.cn account Tocashare.biz  account Videoteka.org  account White-angel.hu account Xbytesv2.li account   Movies Trackers :   Anthelion account Pixelhd account Cinemageddon account DVDSeed account Cinemageddon account Cinemaz account Retroflix account Classix-unlimited - invite Movie-Torrentz (m2g.link) invite Punck-tracker.net account Tmghub account Tb-asian account Cathode-ray.tube account Greatposterwall account Telly account Arabicsource.net account Upload.cx account Crabpt.vip invite Onlyencodes.cc account Exyusubs account Hellashut.net invite Nordichd.sytes.net invite Locadora.cc account   HD Trackers :   Blutopia buffered account Hd-olimpo buffered account Hdf.world account Torrentland.li account HdSky account Hdchina account Chdbits account Totheglory account Hdroute account Hdhome account TorrentCCF aka et8.org account 3DTorrents invite HD-Torrents account Bit-HDTV account HDME.eu invite Hdarea.co account Asiancinema.me account JoyHD invite HDSpace invite CrazyHD invite Bluebird-hd invite Htpt.cc account Hdtime invite Ourbits.club account Hd4fans account Siambit account Privatehd account Springsunday account Tjupt account Hdcity.leniter invite Ccfbits account Discfan account Pt.btschool.club account Ptsbao.club invite Hdzone.me invite Danishbytes account Zonaq.pw account Tracker.tekno3d account Arabp2p account Hd-united account Reelflix.xyz account Hdatmos.club account Anasch.cc invite Tigris-t account Nethd.org account Hd.ai invite Hitpt.com account Hdmonkey account Dragonhd.xyz account Hdclub.eu account Forum.bluraycd.com account Carpt account Hdfun.me invite Pt.hdupt invite Puntotorrent account Ultrahd account Rousi.zip account Bearbit account Hdturk.club account Asiandvdclub account Star-space.net account Nordicq.org account Hdkyl.in account Utp.to account Hdzero account   Music Trackers :   Dicmusic account Music-Vid account Open.cd account LzTr account ProAudioTorrents invite Jpopsuki invite TranceTraffic invite Audionews invite Kraytracker invite Libble.me invite Losslessclub invite Indietorrents.com invite Dimeadozen account Funkytorrents invite Karaokedl account zombtracker.the-zomb account Concertos account Sugoimusic account Satclubbing.club invite Metal.iplay invite Psyreactor invite Panda.cd account Adamsfile account Freehardmusic account Tracker.hqmusic.vn accouunt Twilightzoom account 3 tb buffer Hiresmusic account Metalguru account Musictorrents.org account Musebootlegs.com invite Zappateers.com account Jungleland.dnsalias.com account Naftamusic account   E-Learning Trackers :   Thevault account BitSpyder invite Brsociety account Learnbits invite Myanonamouse account Libranet account 420Project account Learnflakes account Pt.soulvoice.club account P2pelite account Aaaaarg.fail invite Ebooks-shares.org account Abtorrents account Pt.tu88.men invite Docspedia.world invite   TV-Trackers :   Skipthecommericals Cryptichaven account TV-Vault invite Shazbat.TV account Myspleen account Tasmanit.es invite Tvstore.me account Tvchaosuk account Jptv.club account Tvroad.info   XXX - Porn Trackers :   FemdomCult account Pornbay account Pussytorrents account Adult-cinema-network account Bootytape account 1 Tb buffer Exoticaz account Bitporn account Kufirc account Gaytorrent.ru invite Nicept account Gay-torrents.org invite Ourgtn account Pt.hdbd.us account BitSexy account Happyfappy.org account Kamept.com account Lesbians4u.org account   Gaming Trackers :   Mteam.fr account BitGamer invite Retrowithin invite Gamegamept account   Cartoon/Anime/Comic Trackers :   Animeworld account Oldtoons.world account U2.dmhy account CartoonChaos invite Animetorrents account Mononoke account Totallykids.tv account Bakabt.me invite Revanime account Ansktracker account Tracker.shakaw.com.br invite Bt.mdan.org account Skyey2.com account Animetracker.cc Adbt.it.cx invite Tracker.uniotaku.com account Mousebits.com account   Sports Trackers :   MMA-Tracker invite T3nnis.tv invite AcrossTheTasman account RacingForMe invite Sportscult invite Ultimatewrestlingtorrents account Worldboxingvideoarchive invite CyclingTorrents account Xtremewrestlingtorrents account Tc-boxing invite Mma-torrents account Aussierul invite Xwt-classics account Racing4everyone account Talk.tenyardtracker account Stalker.societyglitch invite Extremebits invite Rgfootball.net account F1carreras.xyz account   Software/Apps Trackers :   Brokenstones account Appzuniverse invite Teamos.xyz account Macbb.org account   Graphics Trackers:   Forum.Cgpersia account Gfxpeers account Forum.gfxdomain account   Documentary Trackers:   Forums.mvgroup account   Others   Fora.snahp.eu account Board4all.biz account Filewarez.tv account Makingoff.org/forum account Xrel.to account Undergunz.su account Corebay account Endoftheinter.net ( EOTI ) account Thismight.be invite Skull.facefromouter.space account Avxhm.se (AvaxHome) account Ssdforum account Notfake.vip account Intotheinter.net account Tildes.net invite Thetoonz account Usinavirtual account Hdclasico invite HispaShare account Valentine.wtf account Adit-hd account Forum-andr.net account Warezforums account Justanothermusic.site account Forbiddenlibrary.moe account Senturion.to account Movieparadise account Militaryzone account Dcdnet.ru account Sftdevils.net account Heavy-r.com account New-team.org account Ddl.tv account Filewarez.club account Hispamula.org account Hubwarez.tv account   NZB :   Ninjacentral.co.za account Tabula-rasa.pw account Drunkenslug account Drunkenslug invite Usenet-4all account Brothers-of-Usenet account Dognzb.cr invite Kleverig account Nzb.cat account Nzbplanet.net invite Ng4you.com account Nzbsa.co.za account Bd25.eu account NZB.to account Samuraiplace account Abhdtv.net account Abook.link account Comix.pw account House-of-usenet Secretbinaries.net account Vnext.to account Stockboxx.top account Sky-of-use.net account Prices start from 3 $ to 100 $   Payment methods: Crypto, Neteller, Webmoney, Revolut   If you want to buy something send me a pm or contact me on:   Email: morrison2102@gmail.com   Discord: LFC4LIFE#4173   Telegram: https://t.me/LFC4LIFE4173   Skype: morrison2102@hotmail.com
    • It removes the AA (Anti-Cheat) protection from the files, converting them from binary/encrypted formats into readable and editable ones. This is the first step for any client modification.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..