Advertisement
yojimbos_law

beach camping.ash

Jul 4th, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. int minutes = [put your favorite beach patch here.You know, something with a sandcastle or whatever.];
  2. buffer b;
  3. int combed = 69420;
  4. int new_combed;
  5. int start = gametime_to_int();
  6. int last_time = gametime_to_int();
  7. string very_interesting;
  8.  
  9. waitq(3);
  10.  
  11. visit_url("main.php?comb=1",false,false);
  12. visit_url("choice.php?whichchoice=1388&option=1&minutes="+minutes);
  13. while(gametime_to_int()- start >= 0){
  14. if((gametime_to_int()-last_time)/1000 >= 10){
  15. last_time = gametime_to_int();
  16. b = visit_url("main.php");
  17. new_combed = b.group_string("/beachcomb/combedsand").count();
  18. if(combed > new_combed){
  19. print("square refreshed at "+last_time);
  20. }
  21. combed = new_combed;
  22.  
  23. if(b.group_string("/beachcomb/(?!sand[0-2])(?!combed)(?!wave)(?!surfline)").count() > 0){
  24. print("interesting things at "+last_time+": ");
  25. foreach i,j,k in b.group_string("/beachcomb/(?!sand[0-2])(?!combed)(?!wave)(?!surfline)(((?!\\.png).)+)"){
  26. if(j == 1){
  27. print(k);
  28. //make sure thing isn't really cool.
  29. if(!k.contains_text("sandcastle")){
  30. very_interesting = k;
  31. //grab really cool thing if it's available.
  32. visit_url("choice.php?whichchoice=1388&option=4&coords="+b.group_string("name=\"coords\" value=\"([^\"]+)\"[^>]*><[^>]*"+very_interesting)[0][1]);
  33. abort("we got something really cool.");
  34. }
  35. }
  36. }
  37.  
  38. //do the same thing but just grab the first uncommon thing.
  39. foreach i,j,k in b.group_string("/beachcomb/(?!sand[0-2])(?!combed)(?!wave)(?!surfline)(((?!\\.png).)+)"){
  40. if(j == 1){
  41. visit_url("choice.php?whichchoice=1388&option=4&coords="+b.group_string("name=\"coords\" value=\"([^\"]+)\"[^>]*><[^>]*"+k)[0][1]);
  42. if(my_adventures() == 0){
  43. abort("no more turns");
  44. }
  45. else{
  46. visit_url("choice.php?whichchoice=1388&option=1&minutes="+minutes);
  47. }
  48. break;
  49. }
  50. }
  51. }
  52.  
  53. }
  54. waitq(1);
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement