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.



  • Posts

    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
    • I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
    • hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.  I have access to modify everything even to make the clock to stop show how many time users play in server. 1) so maybe keep some personal info more hide. 2) i dont use ogg.dll 3) i create it and give it ready + support to install it. Plus what is mine can working with what ever .exe you want not just l2 with same simple method. And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too thats my source
  • Topics

×
×
  • Create New...