Jump to content
  • 0

AutoVoteReward


Monoksidas

Question

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

Link to comment
Share on other sites

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0
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"

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0
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

 

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0

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)


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

    • Hello. If you are looking for a reliable writing company that can provide a high level of service and high quality writing, then I recommend you to visit Essay Pro review https://nocramming.com/essaypro-review, where you can make sure for yourself that this company can be the best assistant in your difficult studies. The company's review is objective and easy to understand, which will help any user to quickly understand the information.
    • Why not making hi5 files to support login/play at the client and only make some client parts for the rest? Isnt it more easy?
    • Powerful Spells Caster & Spiritual Healer Web: lovespellsafrika.com Phone: +27780802727 WhatsApp +27789121499 Email: bbaantu@gmail.com Real Magic Spells | How To Get Back Ex-Boyfriend or Ex-Girlfriend. Real Magic Spells for all purpose; Now you can benefit through the use of spells like Love Spells, Money Spells, Talismans, Charms, Prayers, Curses and Chants. Magic Spells can be spell cast for many purposes. Talismans and Charms work as powerful Ingredients. If you need any spiritual knowledge on the power of Spells and Magic you can always Powerful Magic Rings Love Spells                     Casting of Simple and Effective Love Spells Easy Love Spells Spells for Attraction between two Lovers Binding Love Spells Get back Lost Lover Spells Spells to Strengthen Love Relation Lost Love Spells Soul Mate Spells Marriage Spell for a happy Married Life. Retrieve a Lost Love Spells Bring Back Your Love Spells Gay Love Spells, Lesbian Love Spells Anti-Love Spells, Divorce Spells, Break up Spells How to Get Back Ex-Boyfriend, or Ex-Girlfriend Casting Spells to Get Rid of Your Husband, Wife or Partner without Fights or them hating you Magic Rings, Powerful Love Rings Spells to stop a divorce Voodoo Spells for Love Love Return Spells Money & Prosperity Spells Phone: +27780802727 WhatsApp +27789121499 How to Cast Magic Money Spells Lottery Spells or Lotto Spells Voodoo Spells for Money Black Magic Spell for Money Protection & Banishing Spells Black Magic Spells and Curses to Destroy Enemy or Evil People Protection from Black Magic Spells and Curses Dark Magic Spells Voodoo Spells for Revenge Spells to win court cases &legal matters Healing spells for all purpose Stroke Diabetics Lottery Spells Phone: +27780802727 WhatsApp: +27789121499 Web: lovespellsafrika.com
    • Powerful Spells Caster & Spiritual Healer Web: lovespellsafrika.com Phone: +27780802727 WhatsApp +27789121499 Email: bbaantu@gmail.com Real Magic Spells | How To Get Back Ex-Boyfriend or Ex-Girlfriend. Real Magic Spells for all purpose; Now you can benefit through the use of spells like Love Spells, Money Spells, Talismans, Charms, Prayers, Curses and Chants. Magic Spells can be spell cast for many purposes. Talismans and Charms work as powerful Ingredients. If you need any spiritual knowledge on the power of Spells and Magic you can always Powerful Magic Rings Love Spells                     Casting of Simple and Effective Love Spells Easy Love Spells Spells for Attraction between two Lovers Binding Love Spells Get back Lost Lover Spells Spells to Strengthen Love Relation Lost Love Spells Soul Mate Spells Marriage Spell for a happy Married Life. Retrieve a Lost Love Spells Bring Back Your Love Spells Gay Love Spells, Lesbian Love Spells Anti-Love Spells, Divorce Spells, Break up Spells How to Get Back Ex-Boyfriend, or Ex-Girlfriend Casting Spells to Get Rid of Your Husband, Wife or Partner without Fights or them hating you Magic Rings, Powerful Love Rings Spells to stop a divorce Voodoo Spells for Love Love Return Spells Money & Prosperity Spells Phone: +27780802727 WhatsApp +27789121499 How to Cast Magic Money Spells Lottery Spells or Lotto Spells Voodoo Spells for Money Black Magic Spell for Money Protection & Banishing Spells Black Magic Spells and Curses to Destroy Enemy or Evil People Protection from Black Magic Spells and Curses Dark Magic Spells Voodoo Spells for Revenge Spells to win court cases &legal matters Healing spells for all purpose Stroke Diabetics Lottery Spells Phone: +27780802727 WhatsApp: +27789121499 Web: lovespellsafrika.com
  • Topics

×
×
  • Create New...