private boolean isVotedInSite(String ip, VoteSite site)
{
try
{
// Make URL with vote site link with player IP address
final URL url = new URL(site.getLink(ip));
// Open connection
final HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
// Set User-Agent
httpURLConnection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36");
// Get response code and if everything is OK try to get answer
final int response = httpURLConnection.getResponseCode();
if (response == HTTP_OK)
{
// Get input stream from vote sites
try (BufferedReader br = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream())))
{
// Get answer from vote site which returns true/false
switch (site)
{
case L2HOPZONE:
return br.readLine().contains("true");
case L2TOPZONE:
return br.readLine().equals("TRUE");
case L2NETWORK:
return br.readLine().equals("1");
case L2TOP:
return br.readLine().equals("TRUE");
case L2BR:
return br.readLine().equals("1"); (if is correct or request correct read)
}
}
}
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.
You could Just say you wanna pay a Dev to make a antibot using This as base so you can sell, would be easyer ...
I do sell a antibot dsetup.dll source C++ for interlude... I started Gracia and H5 but stopped mid term
I have not made any other cliente because i Just dont use them anymore.
Hello! I from Poland and i have 32 years old. As thread topic say i looking for serious project to be GM. I have much experience being a GM, started from C4. Please be serious and don't try waste my time, if you have on mind open something for a while, thanks. People who love this game, wanting to develop it further, please contact me at Discord: fr1sk93 or there via pm.
but that doesn't answer my question, i've clarified multiple times that i dont form part of that group, lemme rephrase
do you genuinely believe that anyone 'throwing hate' in this topic forms a part of that team?
Just to see that l2devs was celebrated for everything and when I published the extensions for sale and then I shared for free all the packs based on c4 files... they started to throw hate and downvotes everywhere.... anyone can verify it by checking the forum... for some reason you appeared...
Question
Crytek ™
exampe of check is
https://top.l2jbrasil.com/votesystem/index.php?username=l2br&ip=0.0.0.0
have to get check of status. there is 1 (then player not voted is 0)
<votes><vote>
<site_id>id</site_id>
<ip>xxx.xx.xx.xx</ip>
<date>2017-04-24 19:34:07</date>
<status>1</status>
</vote></votes>
Edited by Crytek3 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.