Jump to content

Hopzone & Topzone Vote Reward System.


Recommended Posts

Keep waiting :troll:

needs fix :

	private static int getFirstPageRankVotes()
	{
		InputStreamReader isr = null;
		BufferedReader br = null;
		
		try
		{
			URLConnection con = new URL(page1Url).openConnection();
			con.addRequestProperty("User-Agent", "Mozilla/4.76");
			isr = new InputStreamReader(con.getInputStream());
			br = new BufferedReader(isr);
			
			String line;
			while ((line = br.readLine()) != null)
			{
                if (line.contains("<td><div align=\"center\">"+firstPageRankNeeded+"</div></td>"))
                {
            		for (int i=0;i<=3;i++)
            		{
                        line = br.readLine();
            		}
                    int votes = Integer.valueOf(line.split(">")[2].replace("</div", ""));
                    return votes;
                }
			}
			
			br.close();
			isr.close();
		}
		catch (Exception e)
		{
			System.out.println(e);
			System.out.println("Error while getting server vote count.");
		}
		
		return -1;
	}
Link to comment
Share on other sites

Hey guys! i'm a niewbe here and i would like a bit of help in this one!  the code looks nice but how do i put it in the server and make it work? 
anyone who knows can pm me please with instructions! and how i do all these and where do i put this code? pleaseeeeee? 
I would realy appreciate that!

Link to comment
Share on other sites

Hey guys! i'm a niewbe here and i would like a bit of help in this one!  the code looks nice but how do i put it in the server and make it work? 

anyone who knows can pm me please with instructions! and how i do all these and where do i put this code? pleaseeeeee? 

I would realy appreciate that!

HopzoneServerLink=

TopzoneServerLink=

 

Use your server url's... reading last replies seems that the code is outdated btw.

Link to comment
Share on other sites

HopzoneServerLink=

TopzoneServerLink=

 

Use your server url's... reading last replies seems that the code is outdated btw.

It's not an instruction.. :troll:

 

He's asking 'how to add the code' and not 'how to configure links' :D And I am lazy to write all this.. But if you revert some pages back, you will find how since when I wasnt lazy, I did :D

Link to comment
Share on other sites

It's not an instruction.. :troll:

 

He's asking 'how to add the code' and not 'how to configure links' :D And I am lazy to write all this.. But if you revert some pages back, you will find how since when I wasnt lazy, I did :D

:rage:  lol then read a guide about applying patches  :rage:

Link to comment
Share on other sites

:rage:  lol then read a guide about applying patches  :rage:

Could you give me a link to any guide, please? :troll:

Link to comment
Share on other sites

HopzoneServerLink=

TopzoneServerLink=

 

Use your server url's... reading last replies seems that the code is outdated btw.

 

It's not an instruction.. :troll:

 

He's asking 'how to add the code' and not 'how to configure links' :D And I am lazy to write all this.. But if you revert some pages back, you will find how since when I wasnt lazy, I did :D

Can you give me a link please? how do i import the codes and all about this  vote reward system? i would really appreciate it! :(

Link to comment
Share on other sites

Can you give me a link please? how do i import the codes and all about this  vote reward system? i would really appreciate it! :(

 

 

But if you revert some pages back, you will find how :D

Link to comment
Share on other sites


# Topzone

AllowTopzoneVoteReward = True

# Vote reward server link.

TopzoneServerLink = http://l2topzone.com/lineage2/server-info/7737/L2SpiritCustom.html

# First page of servers list link.

TopzoneFirstPageLink = http://l2topzone.com/lineage2/server-list/top.html/

# Votes for next reward needed.

TopzoneVotesDifference = 5

# Rank needed for server to be on first page.

TopzoneFirstPageRankNeeded = 10

# Minutes between rewards.

# Eg. You put 5 it checks every 5 minutes for reward.

TopzoneRewardCheckTime = 1

# Small reward(s).

TopzoneSmallReward = 57,100000000;

# Big reward(s).

TopzoneBigReward = 3470,1;

# Hopzone reward max dual boxes reward.

# For example if you put 2 and someone has 3 boxes open, 2 will be rewarded.

TopzoneDuaboxesAllowed = 1

# Game server console report.

# If set to true, game server console will get a report of

# current vote count, votes needed for next reward and votes needed for first page.

AllowTopzoneGameServerReport = True

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...