Jump to content
  • 0

Help. Vote Reward


Question

Posted

Hi all i have one lod vote reward. and he do't worck in tops i use freya pack and i don't know wha't i mush change to worck.

in hopzone/topzone some help what they change

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

Your methods to get votes are outdated... just change this...

 

 

while ((inputLine = in.readLine()) != null)

{

     if(Config.VOTE_SYSTEM_HOPZONE == false){

     //TopZone

-     if(inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">")){

-     String i = inputLine.replace("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">", "");

-     i = i.replace("</font></b></div></td></tr>", "");

-     i = i.trim();

-     int o = Integer.parseInt(i);

-     return Integer.valueOf(o);
+ if (inputLine.contains("class=\"votes2\">Votes:")){
+  return Integer.valueOf(inputLine.split(">")[3].replace("</div", ""));
     }

     } else {

     //for hopzone

-if (inputLine.contains("Anonymous User Votes"))
+ if (inputLine.contains("rank anonymous tooltip"))


}

}
Edited by ^Wyatt
  • 0
Posted

Explain it better or wait eternally.

Show us the code, show us the patch that you added (?) show us the errors (?)

  • 0
Posted

no error. just he say all time when you reach 10 vote you whill get reward and i go i vote and still 10 votes

and is one free source la2phandora 

Guest
This topic is now closed to further replies.
×
×
  • Create New...