Jump to content

Autovote Reward System Top/hop/net


Reborn12

Recommended Posts

hello i have reworked l2jfrozen autovote system for l2jacis before some months and i think its time to share it..

If you Want to Install It In Your Server Please Make It Manual My Eclipse Is Crazy Sometimes And Maybe Patch Is Not The Best

You Can Set Each Site Delay and vote required to take reward

 

Link:

http://pastebin.com/vZGcHAbR

 

Have Fun..!!!

  • Upvote 2
Link to comment
Share on other sites

Its addapted to acis..working for all revisions maybe some addapt 1-2 lines needs but nothing more...

I dont have it for frozen

Link to comment
Share on other sites

hello i have reworked l2jfrozen autovote system for l2jacis before some months and i think its time to share it..

If you Want to Install It In Your Server Please Make It Manual My Eclipse Is Crazy Sometimes And Maybe Patch Is Not The Best

You Can Set Each Site Delay and vote required to take reward

 

Link:

http://pastebin.com/vZGcHAbR

 

Have Fun..!!!

were can i put this file??

Link to comment
Share on other sites

  • 4 weeks later...

Topzone not working!!!!!! and works again :) thanks reborn12

But replace this:

 

public static int getTopZoneVotes()

   {
       int votes = -1;
      
       try
       {
           final URL obj = new URL(Config.VOTES_SITE_TOPZONE_LINK_TOP);
final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 
con.addRequestProperty("User-Agent", "L2TopZone");
con.setConnectTimeout(5000);
 
final int responseCode = con.getResponseCode();
if (responseCode == 200)
{
try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
{
String inputLine;
while ((inputLine = in.readLine()) != null)
{
if (inputLine.contains("Votes:"))
{
votes = Integer.valueOf(inputLine.split("<br>")[1].replace("</div>", ""));
break;
}
}
}
}
}
       catch (Exception e)
       {
           System.out.println("Server TOPZONE is offline Trying to Reconnect");
           Announcement.VoteAnnouncements("TOPZONE is offline...Trying to Reconnect");
       }
       return votes;
   }
Edited by Mellion
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...