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.
Alguém que saiba trabalhar com Engine.dll e Core.dll? Tenho hwid no servidor o código adaptado, mas não tenho parte do cliente, pois meu cliente é c4.. Alguém que faça esse tipo de serviço
Hello @Hitcher. Could you please clarify the scenario in which this happened?
Was it on GF server?
The drops that were on the ground were from the same character? These fell with autoloot off, then you activated autoloot and tried to pick? Please provide more details so we can replicate it.
Question
l2viserion
There are new changes in hopzone but I'm unable to fix it, not sure what I do wrong, can anybody help with below code to read the current votes?
protected static int getVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
try
{
if(!hopzoneUrl.endsWith(".html"))
hopzoneUrl+=".html";
URLConnection con = new URL(hopzoneUrl).openConnection();
con.addRequestProperty("User-Agent", "Mozilla/5.0");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
String line;
while ((line = br.readLine()) != null)
{
if (line.contains(":server-votes")||line.contains(":server-votes=")||line.contains("server-votes")||line.contains("server-votes=")||line.contains(":server-votes=\""))
{
int votes = Integer.valueOf(line.split("\"")[1].split("\"")[0].split("\"")[2]);
//Hopzone line source code:
// :server-votes="228"
return votes;
}
}
br.close();
Edited by l2viserionisr.close();
}
catch (Exception e)
{
System.out.println("[VoteRewardManager]: Problem occured while getting Hopzone votes. Error Trace: " + e.getMessage());
}
return -1;
}
help tag
4 answers to this question
Recommended Posts
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.