Jump to content
  • 0

L2Jfrozen Vote Reward System Hopzone


Question

Posted

Καλησπέρα,


 


Παιδια δεν ξερω τ συμβαινει εχω ψαξει τα παντα γνωριζω αρκετα απο java coding και τετοια φάση αλλα εδώ θέλω τα φόντα σας (!)


Χρησημοποίω το autoreward system για το hopzone απο το l2jfrozen που εχει ηδη η εκδοση του frozen που έχω κανει compile,


αλλα μου λέει συνεχως οτι το link μου ειναι λαθος και μ βγάζει αυτο εδώ το error :


 


WARN  [AutoVoteReward] Server HOPZONE is offline or something is wrong in link

java.lang.NumberFormatException: For input string: "oding="UTF-8"?>

<html xmlns:fb="https://www.facebook.com/2008/fbml" xml:lang="en">

  <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>

      [HopZone.Net] - L2Saga  details

    </title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <meta name="description" content="HopZone.Net l2 top mmorpg, l2 servers, top game sites, join our high traffic top list and we guarantee players for your lineage 2 servers or game sites or mmorpg games for sure."/>

    <meta name="keywords" content="lineage2, lineage ii adena, C4, hellbound, gracia, C3, C2, C1, C5, l2, private,online rpg, mmorpg, rpg online, mmorpg games, adena, lineage items, game toplist, lineage, game sites, gaming sites, links, 100, 200"/>

    <meta name="author" content="Kadar and Hop_Hop"/>

    <meta name="Copyright" content="┬σ 2014 HopZone.Net"/>

    <meta name="revisit-after" content="3 days"/>

    <meta name="robots" content="index,follow"/>

    <meta name="googlebot" content="index,follow"/>

    <meta property="og:image" content="http://642507963.r.c...ge_share.jpg"/>

    <meta property="og:description" content="Free Lineage 2 servers for you to play. Most complete lineage 2 private server top list."/>

    <meta name="google-site-verification" content="PSHNXNgWftqsgah1_ZxID2KPtbA1eZjUwLT6pqNGTpM"/>

    <!-- internationalization -->    <link rel="alternate" href="http://l2.hopzone.ne...ls/79743/L2Saga" hreflang="pt-BR"/>

    <link rel="alternate" href="http://l2.hopzone.ne...ls/79743/L2Saga" hreflang="ru-RU"/>

    <link rel="alternate" href="http://l2.hopzone.ne...ls/79743/L2Saga" hreflang="el-GR"/>

    <link rel="alternate" href="http://l2.hopzone.ne...ls/79743/L2Saga" hreflang="x-default"/>

    <!-- Jquery directly from google servers-->    <link href="http://642507963.r.c...le.min.css?v=87" rel="stylesheet" type="text/css"/>

    <link href="http://642507963.r.c...llo.min.css?v=1" rel="stylesheet" type="text/css"/>

    <!--[if IE 7]>

        <link rel="stylesheet" href="css/fontello/fontello-ie7.css">

        <![endif]-->    <script src="https://pagead2.goog...0756826825.js">

    </script>


    </script>

    <script id="facebook-jssdk" src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3">

    </script>

    <script src="//connect.facebook.net/en_US/fbds.js">

    </script>

    <script type="text/javascript" src="http://www.google-an...ics.com/ga.js">

    </script>

    <script type="text/javascript" src="http://ajax.googleap...ry.min.js?v=1">

    </script>

    <script type="text/javascript" src="http://642507963.r.c...ds.min.js?v=1">

    </script>

    <script>

//<![CDATA[

var blmofo = false;

//]]>

    </script>

    <script type="text/javascript" src="http://642507963.r.c.../bldet.js?v=1">

    </script>

    <script language="javascript" type="text/javascript" src="http://642507963.r.c...y.flot.min.js">

    </script>

    <script language="javascript" type="text/javascript" src="http://642507963.r.c...t.time.min.js">

    </script>

    <script async="" language="javascript" type="text/javascript" src="http://642507963.r.c...rkline.min.js">

    </script>

    <script type="text/javascript">

//<![CDATA[

 

                var BASE_URL = 'http://l2.hopzone.net//';

 

//]]>

    </script>

    <script type="text/javascript">

//<![CDATA[

 

                var _gaq = _gaq || [];

                _gaq.push(['_setAccount', 'UA-274720-1']);

                _gaq.push(['_setDomainName', '.hopzone.net']);

                _gaq.push(['_trackPageview']);

 

                (function () {

                        var ga = document.createElement('script');

                        ga.type = 'text/javascript';

                        ga.async = true;

                        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

                        var s = document.getElementsByTagName('script')[0];

                        s.parentNode.insertBefore(ga, s);

                })();

 

//]]>

    </script>

    <script>

//<![CDATA[

(function () {

                        var _fbq = window._fbq || (window._fbq = []);

                        if (!_fbq.loaded) {

                                var fbds = document.createElement('script');

                                fbds.async = true;

                                fbds.src = '//connect.facebook.net/en_US/fbds.js';

                                var s = document.getElementsByTagName('script')[0];

                                s.parentNode.insertBefore(fbds, s);

                                _fbq.loaded = true;

                        }

                        _fbq.push(['addPixelId', '796818543769757']);

                })();

                window._fbq = window._fbq || [];

                window._fbq.push(['track', 'PixelInitialized', {}]);

 

//]]>

    </script>

    <style type="text/css">

      .jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}

    </style>

    <style type="text/css">

      .fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}

.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(https://static.xx.fb...IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif);cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile.fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif)}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif)}.fb_dialog_loader{background-color:#f6f7f9;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100%}.fb_dialog_vert_left{;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100%;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title&g"

        at java.lang.NumberFormatException.forInputString(Unknown Source)

        at java.lang.Integer.parseInt(Unknown Source)

        at java.lang.Integer.parseInt(Unknown Source)

        at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler.getHopZoneVotes(AutoVoteRewardHandler.java:302)

        at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler$AutoReward.run(AutoVoteRewardHandler.java:103)

        at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

 

Έχει κανείς ιδέα πως μπορώ να το fixarw ;

Eυχαριστώ εκ των προτέρων (!)

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

gameserver/handler/AutoVoteRewardHandler.java

-    protected int getHopZoneVotes()
-    {
-        int votes = -1;
-        
-        try
-        {
-            final WebClient webClient = new WebClient(BrowserVersion.CHROME);
-            webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
-            webClient.getOptions().setThrowExceptionOnScriptError(false);
-            webClient.getOptions().setPrintContentOnFailingStatusCode(false);
-            
-            final HtmlPage page = webClient.getPage(PowerPakConfig.VOTES_SITE_HOPZONE_URL);
-            
-            final String fullPage = page.asXml();
-            final int constrainA = fullPage.indexOf("rank anonymous tooltip") + 24;
-            String voteSection = fullPage.substring(constrainA);
-            final int constrainB = voteSection.indexOf("span") - 2;
-            voteSection = voteSection.substring(0, constrainB).trim();
-            votes = Integer.parseInt(voteSection);
-            
-            // Try to free all the freaking resources
-            page.cleanUp();
-            webClient.getJavaScriptEngine().shutdown();
-            webClient.closeAllWindows();
-        }

+        public 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;
+                            }
+                        }
+                    }
+                }
+            }

Οτιδήποτε άλλο σχετικό, θα το βρεις εδώ.

Edited by 'Baggos'
Guest
This topic is now closed to further replies.


  • Posts

    • AN ALGORITHM FLAGGED HER PHOTO – SHE SPENT NEARLY SIX MONTHS IN CUSTODY  A fake military ID surfaced in a bank fraud case. Facial recognition returned a social media photo of a 50-year-old Tennessee woman as a possible lead. She was arrested.  She spent almost six months in custody, though bank records placed her more than 1,200 miles from the crimes when they happened. She is now seeking $10 million from the city of Fargo and a detective. The lawsuit is still pending.  The system suggested a face. Humans were supposed to establish whether it belonged to the person behind the crime. The cost of getting that wrong was far more than a rejection screen.  Has verification linked you to someone else’s details or locked your account? Don’t keep uploading documents blindly. Message us – we’ll help identify the issue and prepare evidence for an appeal. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #drawing #id #photoshop #mistake #news
    • please send normal link not  premium one  
    • First of all, let us get one thing straight. Nobody is forcing you or anyone else on this forum to deal with Kara or buy anything from him. Every single user here has a keyboard and access to the search bar. MaxCheaters has years of archives. All anyone has to do is type "Kara" into the search box, read the history, and make their own informed decision. It takes five seconds to do your own due diligence before opening your wallet.   Second, throwing random insults around and calling me an ass licker just because I do not join your personal witch hunt shows how weak your argument actually is. Staying objective or not taking your side does not mean backing a scammer. Throwing a tantrum and attacking everyone in sight does not make you a hero, it just makes you look desperate for attention.   You are sitting here dragging developers, clients, and forum staff through the mud, crying about admins and calling the forum dead, yet you are still here posting rage posts. If clients lost reputation or money, that is on them and their own business choices. Trying to pin other peoples decisions on me or anyone else who does not agree with you is plain stupid.   Bottom line, the search button exists for a reason. If you want to warn people, post your proof, state the facts, and let adults decide for themselves. But keep my name out of your toxic drama, because making personal attacks on me is not going to fix your problems.
    • 🔥 L2PRIDE — WE ARE LIVE! 🔥 The wait is finally over. L2Pride Interlude C6 officially opened today, September 25th, 2026 at 16:00 GMT+2! If you’ve been waiting for a stable, long-term Interlude server with the old-school feeling you love, but with fresh content and a few new twists — this is your time to join. ⚔️ Classic C6 Experience 🔥 New Content 🏰 Massive PvP & Sieges 💎 Balanced & Competitive Gameplay 🛡️ Built for a long-term community No shortcuts. No pay-to-win nonsense. No server that disappears after a few weeks. Just Lineage 2, the way you remember it. L2Pride is now LIVE. Come build your legacy. ⚔️🔥 DISCORD: https://discord.gg/JVdpESC5Ry
    • 🔥 Daily restock across all tools! Get your favorite AI subscriptions at unbeatable prices.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..