yojimbos_law

choice.1388.ash that makes KoL not let you comb beaches

Jul 6th, 2019
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. buffer page = visit_url();
  2. //find 00 and 09 sand buttons because why not.
  3. string[int][int] buttons_to_change =
  4. page.group_string("(<button style=\"border: )0; background: none;( padding: 0\" name=\"coords\" value=\"\\d{1,2}\\,\\d{5}\" type=\"submit\"><img title=\")rough sand(\" alt=\"rough sand\" src=\"https://s3\\.amazonaws\\.com/images\\.kingdomofloathing\\.com/otherimages/beachcomb/sand(0[09])\\.png\" /></button>)");
  5. if(buttons_to_change.count() > 0){
  6. foreach i,j in buttons_to_change{
  7. if(j==1){
  8. //put a border around buttons that have whatever image you found. and add title text with that number.
  9. page.replace_string(buttons_to_change[i][0] , buttons_to_change[i][1]+"1; "+buttons_to_change[i][2]+buttons_to_change[i][4]+buttons_to_change[i][3]);
  10. //print(buttons_to_change[i][0]);
  11. }
  12. }
  13. }
  14.  
  15. page.write();
Advertisement
Add Comment
Please, Sign In to add comment