Welcome, Guest. Please login or register.

Author Topic: New toplist itopz.com (Open Beta)  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

Offline Nightwolf

  • Dalek
  • Developer
  • L2jHellas User
  • *****
  • Posts: 785
  • Country: gr
  • Karma: 13
  • Exterminate!!!
New toplist itopz.com (Open Beta)
« on: March 21, 2020, 01:49:06 am »
Hello, everybody
Website is on beta stage, so I need opinions in order to go live.
Free money from payments in order to get website coins so you can test banners until beta stage ends.

Website: itopz.com
nightwolf.
« Last Edit: April 13, 2020, 01:09:11 pm by Nightwolf »

Offline Nightwolf

  • Dalek
  • Developer
  • L2jHellas User
  • *****
  • Posts: 785
  • Country: gr
  • Karma: 13
  • Exterminate!!!
Re: Looking for Testers for itopz.com (topsite)
« Reply #1 on: March 25, 2020, 03:46:57 am »
anyone who wants to participate in making auto reward and npc for itopz.com
here is the sample code:
Code: [Select]
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Collection;
import java.util.HashMap;

public class Main
{
private int votes;
private int rank;
private int wanted_votes;
private int next_rank;
private String iTopZ = "https://itopz.com/check/";
private String Json = "?json=true";
private String ApiKey;
private int ServerId;
private boolean UseJson;

public void main()
{
ApiKey = "elYhDvMxrH-DSeQCXVR2kGyGsKrHB03"; // Config.ITOPZ_API_KEY (for debug you can use 'DEMO')
ServerId = 4; // Config.ITOPZ_SERVER_ID (for debug you can use and id (int))
UseJson = true; // Config.ITOPZ_READ_FORMAT
getVotes();
System.out.println("Server Votes: " + votes);
System.out.println("Server Ranking: " + rank);
System.out.println("Server next rank votes needed: " + wanted_votes);
System.out.println("Server next rank will be: " + next_rank);
}

private int getVotes()
{
String iTopZurl = iTopZ + ApiKey + "/" + ServerId + "/" + (UseJson == true ? Json : null);
URLConnection con = null;
try
{
con = new URL(iTopZurl).openConnection();
con.addRequestProperty("User-Agent", "Mozilla/4.76");
try (BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream())))
{
String line;
while ((line = br.readLine()) != null)
{
if (line.contains("server_votes"))
{
votes = Integer.valueOf(line.replaceAll("[^\\d]", ""));
}
if (line.contains("server_rank"))
{
rank = Integer.valueOf(line.replaceAll("[^\\d]", ""));
}
if (line.contains("next_rank_votes"))
{
wanted_votes = Integer.valueOf(line.replaceAll("[^\\d]", ""));
}
if (line.contains("next_rank"))
{
next_rank = Integer.valueOf(line.replaceAll("[^\\d]", ""));
}
}
}
}
catch(Exception e)
{
System.out.println(e);
System.out.println("Error while getting iTopZ server info.");
}
return -1;
}
}

Offline Nightwolf

  • Dalek
  • Developer
  • L2jHellas User
  • *****
  • Posts: 785
  • Country: gr
  • Karma: 13
  • Exterminate!!!
Re: New toplist itopz.com (Open Beta)
« Reply #2 on: November 08, 2020, 05:57:18 pm »
added discounts on free donate panel.