Jump to content
  • 0

Question

Posted

Which link Hopzone need to add to AutoVoteReward on L2JFrozen?

Because now, Topzone and Network for me ok, but Hopzone not:

f6d505f53ed8c02b7a3ba323ecd8068a372.jpg

# Leave empty to disable one site
#
# Hopzone: http://l2.hopzone.net
VotesSiteHopZoneUrl =http://l2.hopzone.net/gr/lineage2/details/91106/L2-DAMAGE
# Topzone: http://l2topzone.com
VotesSiteTopZoneUrl =http://l2topzone.com/tv.php?id=6084
# L2Network: http://l2network.eu
VotesSiteL2NetworkUrl =https://l2network.eu/details/damage/
# Put your website url
ServerWebSite = http://www.l2jfrozen.com

Recommended Posts

  • 0
Posted

wongerlt, aš buvau jį keites, prieš mėnėsį gal kokį veikė dar, o dabar šnd pasijūngiu žiūriu nebe. Šiuo metu savo hopzones acc neturiu, todėl negalėsiu pažiūrėti, kodas mano galva yra geras dabar.

  • 0
Posted (edited)
3 minutes ago, Monoksidas said:

wongerlt, aš buvau jį keites, prieš mėnėsį gal kokį veikė dar, o dabar šnd pasijūngiu žiūriu nebe. Šiuo metu savo hopzones acc neturiu, todėl negalėsiu pažiūrėti, kodas mano galva yra geras dabar.

turbut hopzone neveikia, nes ir man ziuriu nebegauna informacijos, reikia laukt kol jie ten patys sutvarkys savo sistema.

Edited by wongerlt
  • 0
Posted

O vakar veikė? Nes aš vakar bandžiau, ir nerodė man nieko. Nei per announce nerašo kad kažkas blogai ir pnš, tik topzone ir network mėto. Nei consolej nieko apie hopzone, nei error nieko. O kaip pas tave?

  • 0
Posted
1 minute ago, Monoksidas said:

O vakar veikė? Nes aš vakar bandžiau, ir nerodė man nieko. Nei per announce nerašo kad kažkas blogai ir pnš, tik topzone ir network mėto. Nei consolej nieko apie hopzone, nei error nieko. O kaip pas tave?

man net i hopzone neleidzia ieit, http://prntscr.com/hbg5av

na pas mane kitokia vote sistema, klaida tokia, kad hopzone jokio atsakymo neduoda, tipo "request timeout"

  • 0
Posted
2 minutes ago, Monoksidas said:

Bloga nuoroda daviai. Nu bet jei sakai, kad ir pas tave neveikia, tai gal pati hopzone čia kažką durniuoja jau kelias dienas.

gera ta nuoroda, ten paveikslelis su hopzone webu "502" :D

  • 0
Posted
13 minutes ago, Reborn12 said:

Change http to https

same shit.

HTTP/1.1 302 Found
Server: HYPERFILTER - HWP/2.0.0
Date: Thu, 16 Nov 2017 23:19:27 GMT
Content-Length: 0
Connection: close
Cache-Control: no-cache
Location: https://api.hopzone.net/lineage2/votes?token=AFCC4Ez3trnOwZNY
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
DDOS: Protected by HyperFilter : http://www.hyperfilter.com
HF-Wall: HIT-4/THROTTLED_4

 

  • 0
Posted (edited)

put here the gethopzonevotes method

 

or check this

public static int getHopZoneVotes()
	{
		
		int votes = -1;
		try
		{
			final URL obj = new URL(Config.VOTES_SITE_HOPZONE_URL);
			final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
			con.addRequestProperty("User-Agent", "L2Hopzone");
            con.setConnectTimeout(5000);
			
			final int responseCode = con.getResponseCode();
			if (responseCode == 200)
			{
				try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
				{
					String line;
		            while ((line = in.readLine()) != null)
		            {
		                if (line.contains("Total Votes") || line.contains("rank tooltip") || line.contains("no steal make love") || line.contains("no votes here") || line.contains("bang, you don't have votes") || line.contains("la vita e bella") || line.contains("rank anonymous tooltip"))
		                {
		                    String inputLine = line.split(">")[2].replace("</span", "");
		                    votes = Integer.parseInt(inputLine);
		                    break;
						}
					}
				}
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
			System.out.println("HOPZONE is offline. We will check reward as it will be online again.");
		}
		return votes;
	}

 

Edited by Reborn12
  • 0
Posted (edited)

My code working fine, just i was putted wrong link. :) Now i will test it fully when hopzone will be online. But anyway, my hopzone code is:

protected static int getHopZoneVotes()
       {
           int votes = -1;
          
           try
           {
              final URL obj = new URL(PowerPakConfig.VOTES_SITE_HOPZONE_URL);
              final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
               con.addRequestProperty("User-Agent", "L2Hopzone");
               con.setConnectTimeout(5000);
              
               final int responseCode = con.getResponseCode();
               if (responseCode == 200)
               {
                   try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
                   {
                       String line;
                       while ((line = in.readLine()) != null)
                       {
                           if (line.contains("Total Votes") || line.contains("rank tooltip") || line.contains("no steal make love") || line.contains("no votes here") || line.contains("bang, you don't have votes") || line.contains("la vita e bella") || line.contains("rank anonymous tooltip"))
                           {
                               String inputLine = line.split(">")[2].replace("</span", "");
                               votes = Integer.parseInt(inputLine);
                               break;
                           }
                       }
                   }
              }
           }
            catch (final Exception e)
            {
                LOGGER.warn("[AutoVoteReward] Server HOPZONE is offline or something is wrong in link", e);
                Announcements.getInstance().gameAnnounceToAll("[HOPZONE] I'm offline.");
            }
            
            return votes;
        }

 

Edited by Monoksidas
  • 0
Posted
11 minutes ago, Reborn12 said:

put here the gethopzonevotes method

 

or check this


public static int getHopZoneVotes()
	{
		
		int votes = -1;
		try
		{
			final URL obj = new URL(Config.VOTES_SITE_HOPZONE_URL);
			final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
			con.addRequestProperty("User-Agent", "L2Hopzone");
            con.setConnectTimeout(5000);
			
			final int responseCode = con.getResponseCode();
			if (responseCode == 200)
			{
				try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
				{
					String line;
		            while ((line = in.readLine()) != null)
		            {
		                if (line.contains("Total Votes") || line.contains("rank tooltip") || line.contains("no steal make love") || line.contains("no votes here") || line.contains("bang, you don't have votes") || line.contains("la vita e bella") || line.contains("rank anonymous tooltip"))
		                {
		                    String inputLine = line.split(">")[2].replace("</span", "");
		                    votes = Integer.parseInt(inputLine);
		                    break;
						}
					}
				}
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
			System.out.println("HOPZONE is offline. We will check reward as it will be online again.");
		}
		return votes;
	}

 

it just not work, look at image.

http://prntscr.com/hbgs5r

  • 0
Posted

My hopzone console error:

WARN  [AutoVoteReward] Server HOPZONE is offline or something is wrong in link
java.net.ProtocolException: Server redirected too many  times (20)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1902)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
    at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler.getHopZoneVotes(AutoVoteRewardHandler.java:295)
    at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler$AutoReward.run(AutoVoteRewardHandler.java:101)
    at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)


 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...