Jump to content
  • 0

Help AutoVoteReward


Monoksidas
 Share

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

check hopzone profile, about new api. example:

http://api.hopzone.net/lineage2/votes?token=AFCC4Ez3trnOwZNY

but u need edit hopzone code in java source.

Link to comment
Share on other sites

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

 Share



  • Posts

    • I think him dont have mxc account
    • not even offi got 15k online including all the bots   15k online means atleast 5000 players in siege which is absolutly impossible for a server to handle
    • Send me the corect pass pls!!  thanks in advance!!
    • Welcome back to L2Etina! We are coming back with a new  x3 Interlude Chronicle  For those who didn't play before, L2Etina is Interlude Chronicle with Classic Client. It means game interface is new and that we have a lot of cool features like radar, mail, Item Search Window, Seed Auction, Buff Stores. Gameplay stays the same as on Interlude though, so there aren't any changes to skills, bosses, drops etc. We are aiming to provide a long-term server without any kind of wipe.   Rates: Experience: 3x Skill Points: 3x Adena Drop: 2x Item Drop: 2x Seal Stones Drop: 2x Spoil Rate: 2x Raid/Epic Boss Experience: 1x Raid/Epic Boss Skill Points: 1x Raid/Epic Boss Drop: 1x No Dual Box No Bots No Donate No Auto Pick Up Siege of each castle takes place every 2 weeks First Castle Siege starts date TBD Heroes are selected every 2 weeks First Olympiad Period starts date TBD     Classic Game Client: Modern look of the game Improved performance No Critical Errors Tons of new Game Settings and Interface Windows Damage on the Screen Healths Bars Mail Radar Cloaks Party Tokens Skill Learning Panel New Skills Enchanting Items on Chat Npc Debuff Info Improved Clan Notice Editing Quick Status Actions Exp Bar and redesigned Main Menu Friend Manager Quest Areas on the Map Redesigned Character Creation Clan Ranking Redesigned Past Olympiad Ranking Colorful System Messages No Adena Limit   Custom Features: Guide Window provides all important information about Lineage II and L2Etina Soul Crystal Window shows which monsters you need to hunt and which Soul Crystal you need for your weapon Bot Reporting Function and Smart Guard provides playing without Bots Item Search Window allows you to find every possible source of getting item that you are interested in Buff Store allows automatic buff sales Offline Private Store Sales Seed Auction allows everyone to take part in manor Shady Man allows to purchase info about respawn of Subclass Raid Bosses & exchanges Pipette Knife for Red Pipette Knife Shadow weapons are disabled Fishing system is disabled Automatic Twitch Rewards Ranking Window Automatic Crystallization Sales Exit Game Statistics     Enchant Rates: Safe Enchant: +3 Safe Enchant Full-Armor: +4 Max Enchant: +16 Enchanting Chance: 66%   Skills: Skills learned by Skills Panel Spell Books are required for Skill Learning Retail amount of Buff Slots Retail Buff Duration Skills can be enchanted by Skills Panel   Bosses Respawn Duration: Cabrio, Kernon, Golkonda, Hallate: 20 - 24 hours Flame of Splendor Barakiel: 16 - 20 hours Queen Ant: 34 - 36 hours Orfen: 46 - 48 hours Core: 58 - 60 hours Zaken: 58 - 60 hours Baium: 164 - 168 hours Frintezza: 44 - 48 hours Antharas: 260 - 264 hours Valakas: 260 - 264 hours     Quest Item Drop Rate: Dangerous Seduction: Requires first class transfer Kamael: A Window to the Future: Requires first class transfer Gather the Flames: 1x Relics of the Old Empire: 1x Alliance with Varka Silenos: 1x Alliance with Ketra Orcs: 1x War with Ketra: 1x War with Varka: 1x Third Class Quests: 1x Seekers of the Holy Grail: 1x Guardians of the Holy Grail: 1x The Finest Food: 1x Four Goblets: 1x Legacy of Insolence: 1x Exploration of the Giants' Cave, Part I & II: 1x Coins of Magic: 3x Other Quests: 2x     Beta Testing: 22th of August Grand Opening: 16th of September Visit us at https://l2etina.com Discord : https://discord.gg/l2etina
  • Topics

×
×
  • Create New...