Jump to content

Recommended Posts

Posted (edited)

This happens on Hopzone cause it needs 2-3 seconds to connect and check if you are vote its not bug or something.

yes on hopzone so what is it and why it needs 2-3 seccond when im already voted?

when it sends me you need 12 hour to vote

Edited by haskovo
Posted
public static int getHopZoneVotes()
	{
		
		int votes = -1;
		try
		{
			BufferedReader in = new BufferedReader(new InputStreamReader(new URL("http://api.hopzone.net/lineage2/votes?token=4dkBi72AztjXocda").openConnection().getInputStream()));
			String[] tokens = in.readLine().split(",");
			in.close();
			return Integer.parseInt(tokens[1].substring(tokens[1].indexOf(":") + 1, tokens[1].length()));
		}
		catch (Exception e)
		{
			e.printStackTrace();
			System.out.println("HOPZONE is offline. We will check reward as it will be online again.");
		}
		return votes;
	}

fix :D

Posted (edited)

Huh, they finally accepted vote reward systems on hopzone and made an api. I remember 1-2 years ago they tried blocking vote reward systems from reading the votes lol

Is long time now they have api..im using this too

 

Ps.Maybe is time to update this npc to api for all votesites

Edited by Reborn12
Posted

Is long time now they have api..im using this too

 

Ps.Maybe is time to update this npc to api for all votesites

Where is the difference between API and no API , i have vote rewards without API and works just fine (mass reward/manager) ...

Posted

With API, you simply check if your IP really voted or not. This one, not. You wait for queue, someone vote, you get the cookies.

Posted

Is long time now they have api..im using this too

 

Ps.Maybe is time to update this npc to api for all votesites

 

I think API is the proper way to do this now. I like that your code provides item ID and amount config, but having an API call to check directly with the vote site with no queue/no delay is what made me decide to go with elfocrash's code. I may adapt the item id/count config to my modified version of elfocrash's code that I made for L2JServer high five. I would say check his code for the endpoints you need. Even though it was old code it's still useful to see how things can be done/set examples. Thanks for the share. 

Posted (edited)

so do it :D

Maybe tomorrow or saturday i have to work too much :p

My pc is relaxing like 2 days now

Edited by Reborn12
Posted

Maybe tomorrow or saturday i have to work too much :P

My pc is relaxing like 2 days now

Ok, the codes i have atm is working perfect but if API is better its fine to update them. But with this its work perfect.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • It's a 5 days ago project. I initially started with the idea from C4, 4 months ago, you can see my stuff in the first posts of this thread. I experimented with scene loads while learning Odin and experimenting with graphics programming. Elfo got inspired by the idea and thought of implementing the full client, smth I didn't wanna do. I personally didn't look for inspiration on anything, just having fun with a new language. And elfo did the rest on his own. How about you act like an adult and acknowledge something good that's in front of you and respect the grind that Elfo pushed out since mot of vibe coders quit after a month or run out of money to invest into it. All the vibe wow slop and this recent one will get abandoned in a bit, you'll see. Also @Northy you sound like such a childish text book narcissist. Go touch some grass outside, you're not winning anything here. Have a good life 
    • ⭐ Fast support & replacement warranty guaranteed. All fresh links in stock with automated delivery!
    • Will open: 23 September 2026 | 20:00 GMT+2 Are you ready for a unique, hard-farm High Five journey? Join L2DragonLand where you can learn every skill in the game and build the ultimate character! Progress through custom farming zones and endless progression possibilities.   Server Features: XP Rate: 500x SP Rate: 2x   Drop / Spoil: 20x   Hard Farm Gameplay Safe Enchant: +600   Max Enchant: +600   Max Attribute: Level 7 Multiskill System: Learn every single skill in the game.   Custom Content: Zone Progression: Farm and progress through custom zones Item Upgrade System: Upgrade your gear step-by-step Custom Weapons & Armor: Packed with massive % P.Atk, M.Atk, P/M.Def, HP/CP stats Unique Visuals: Every item has unique custom stats and visual effects Additional Features Custom Buffer in Main Towns Custom Buff Learn NPC Global Gatekeeper Automated In-Game Events Lottery System Fast Boss Respawns: Crucial raid bosses respawn every 10 seconds Olympiad Every Two Weeks   Website: http://l2dragonland.eu/   Discord: https://discord.gg/geVGy8Xcpv   L2DragonLands
    • you can lie as much as you want. idea from git.   Open source h5 game engine on rust : https://github.com/nascimentolh/CanastraEngine
  • 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..