Jump to content

Recommended Posts

Posted

Maybe it will help someone to adapt it is vote reward system with command (.getreward)

is working 100% on H5 servers and its for L2Network.eu

 

https://github.com/L2TopNetwork/TopNetowrk

 

As SweeTs told me on Skype, you don't need DbUtils, as you can use try-with-ressources feature since Java 7.

 

https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

Posted

Maybe it will help someone to adapt it is vote reward system with command (.getreward)

is working 100% on H5 servers and its for L2Network.eu

 

https://github.com/L2TopNetwork/TopNetowrk

what tha f**k is this? he should be banned from git

solutions has been told many times simple and easy dont confuze ppl with this monsters

Posted (edited)

Yeah, even small rework for acual code would be enough (using java 7 features, at least).

 

Actually you can help us because we dont have any clue with Java if you know how to build it better add me here: Skype: sat1on

Edited by Vagrancy™
Posted

Why this is not working?

This is from the Vortex Engine, Topzone is working but Hopzone is not. I tried to use the same method from the AutoVoteManager witch is working but on this code did not work, so I need to fix this one>

Thank you f\to anyone that help.

protected static int getHopZoneVotes()
	{
		int votes = -1;
		URL url = null;
		URLConnection con = null;
		InputStream is = null;
		InputStreamReader isr = null;
		BufferedReader in = null;
		try
		{
			url = new URL(Config.VOTE_LINK_HOPZONE);
			con = url.openConnection();
			con.addRequestProperty("User-L2Hopzone", "Mozilla/4.76");
			is = con.getInputStream();
			isr = new InputStreamReader(is);
			in = new BufferedReader(isr);
			String inputLine;
			while ((inputLine = in.readLine()) != null)
			{
				if (inputLine.contains("no steal make love") || inputLine.contains("no votes here") || inputLine.contains("bang, you don't have votes") || inputLine.contains("la vita e bella"))
				{
					votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", ""));
					break;
				}
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		return votes;
	}
  • 4 weeks later...
Posted

I tested your code and is broken, not working at all, please fix your code before share because you waste people time, everyone is trying to make it and after they find out it's not working.

Posted

I tested your code and is broken, not working at all, please fix your code before share because you waste people time, everyone is trying to make it and after they find out it's not working.

[GR] Den ftanei pou sas kanei share exete kai parapono mazepse ton kwlo sou kai skepsou pws na to ftiakseis , den ftaiei o author an to hopzone/topzone allazei methods sto vote kathe mera kai oute einai ipoxrewmenos kathe mera na sou ftiaxnei ta problimata, user name exeis L2Dev ante ti perimeneis lipon?

 

[EN]sorry for the greeks but sometimes people are really stupid

Posted

[GR] Den ftanei pou sas kanei share exete kai parapono mazepse ton kwlo sou kai skepsou pws na to ftiakseis , den ftaiei o author an to hopzone/topzone allazei methods sto vote kathe mera kai oute einai ipoxrewmenos kathe mera na sou ftiaxnei ta problimata, user name exeis L2Dev ante ti perimeneis lipon?

 

[EN]sorry for the greeks but sometimes people are really stupid

I cannot understand what you have said to me, maybe try google translate? :D

  • 2 weeks later...
Posted

Maybe it will help someone to adapt it is vote reward system with command (.getreward)

is working 100% on H5 servers and its for L2Network.eu

 

https://github.com/L2TopNetwork/TopNetowrk

wath is the html code to put on to get it work somewon can help me please

thanks

  • 4 weeks later...
  • 3 weeks later...
  • 3 months later...
  • 2 months later...
Posted

I get an error on gameserver when I click on the button and nothing happen.

 

"Sent not handled RequestBypassToServer: [vote-hopzone]"

 

"Sent not handled RequestBypassToServer: [vote-topzone]"

 

How do we fix that?

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
Reply to this topic...

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




×
×
  • Create New...