Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int server_hits;
- while("dumbasses" == "dumbasses"){
- //name[playerID][betID][betAmount]
- string[int][int][int] idiots_and_their_bets;
- file_to_map("known mmgers.txt", idiots_and_their_bets);
- string page_of_idiots = visit_url("bet.php");
- //sample line in table of bets:
- //<b>Dare Devil</b> (#3193713)</a></font></td><td>5,000 Meat</td><form style='display: inline' name='form95287715' method=post action='bet.php'><td align=right><input type=hidden name=pwd value=stuff><input type=hidden name=action value='bet'><input type=hidden name=whichbet value='95287715'>
- string[int][int] parsed_page_of_idiots = page_of_idiots.group_string("<b>([0-9a-zA-Z _]+)</b> \\(#(\\d+)\\).*?([0-9,]+) Meat.*?name=\'form([0-9]+)\'");
- foreach i,j in parsed_page_of_idiots{
- //print(i+","+j+": "+parsed_page_of_idiots[i][j]);
- if(j==1){
- idiots_and_their_bets[parsed_page_of_idiots[i][2].to_int()][parsed_page_of_idiots[i][4].to_int()][parsed_page_of_idiots[i][3].to_int()] = parsed_page_of_idiots[i][1];
- }
- }
- //stored as playerID betID betAmount Idiot
- map_to_file(idiots_and_their_bets,"known mmgers.txt");
- server_hits++;
- print("server hits: "+server_hits);
- waitq(69);
- }
Advertisement
Add Comment
Please, Sign In to add comment