Jump to content

Πως Να Φτιάξετε Το New Topzone Vote Reward. (Νewbies Guide)


Recommended Posts

  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...

 

to topzone ksana alakse kai den douleuei kanena vote reward system 

 

χμμμ...θα το ρίξω μια ματιά. Για να κάνουμε New ^^

Link to comment
Share on other sites

  • 3 weeks later...

Find : com/l2jfrozen/gameserver/handler/AutoVoteRewardHandler.java



}
}
} catch (Exception e) {
- LOGGER.info("[AutoVoteReward] Server HOPZONE is offline or something is wrong in link");
+ LOGGER.warn("[AutoVoteReward] Server HOPZONE is offline or something is wrong in link");
Announcements.getInstance().gameAnnounceToAll("[AutoVoteReward] HOPZONE is offline. We will check reward as it will be online again");
//e.printStackTrace();
} finally {

String inputLine;
while ((inputLine = in.readLine()) != null) {
if (inputLine.contains("Votes")) {
- String votesLine = in.readLine();
+ String votesLine = inputLine;

- votes = Integer.valueOf(votesLine.split(">")[5].replace("</font", ""));
+ votes = Integer.valueOf(votesLine.split(">")[3].replace("</div", ""));
break;
}
}
} catch (Exception e) {
- LOGGER.info("[AutoVoteReward] Server TOPZONE is offline or something is wrong in link");
+ LOGGER.warn("[AutoVoteReward] Server TOPZONE is offline or something is wrong in link");
Announcements.getInstance().gameAnnounceToAll("[AutoVoteReward] TOPZONE is offline. We will check reward as it will be online again");
//e.printStackTrace();
} finally {
Link to comment
Share on other sites

 

 

con.addRequestProperty("User-Agent", "Mozilla/4.76");

delete this line and add this

 

 

 

con.addRequestProperty("User-Agent", "L2TopZone");

 

xzone « on: Yesterday at 12:55:36 PM » 13/3/14

Edited by te0x
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...