Advertisement
Guest User

getFunFunds()

a guest
Apr 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. boolean getFunFunds() {
  2. if ((get_property("_stenchAirportToday").to_boolean() || get_property("stenchAirportAlways").to_boolean()) && !(get_property("_dinseyGarbageDisposed").to_boolean())) {
  3. if(item_amount($item[bag of park garbage]) < 1) {
  4. print("It looks like you are all out of bags of park garbage. I blame someone else's script.", "red");
  5.  
  6. boolean yes = user_confirm("Since turning in garbage for 3 FunFunds is worth roughly 30,000 meat, should we buy from the mall?");
  7. if (yes) {
  8. print("Okay, buying the cheapest available garbage", "blue");
  9. if (mall_price($item[bag of park garbage]) <= 1000) {
  10. cli_execute("buy 1 bag of park garbage @ 1000");
  11. }
  12. visit_url("place.php?whichplace=airport_stench&action=airport3_tunnels");
  13. visit_url("choice.php?whichchoice=1067&option=6&pwd");
  14. visit_url("choice.php?whichchoice=1067&option=7&pwd");
  15. print("Got FunFunds. You now have " + item_amount($item[funfund]) + " FunFunds total", "green");
  16. wait(1);
  17. return true;
  18. }
  19. if (!yes) {
  20. print("Skipping FunFund collecting for some reason. . .", "red");
  21. wait(2);
  22. return false;
  23. }
  24.  
  25. }
  26. if(item_amount($item[bag of park garbage]) >= 1) {
  27. visit_url("place.php?whichplace=airport_stench&action=airport3_tunnels");
  28. visit_url("choice.php?whichchoice=1067&option=6&pwd");
  29. visit_url("choice.php?whichchoice=1067&option=7&pwd");
  30. print("Got FunFunds. You now have " + item_amount($item[funfund]) + " FunFunds total", "green");
  31. return true;
  32. }
  33. return true;
  34. }
  35. else {
  36. print("FunFunds already collected (or you can't access Dinseylandfill).", "maroon");
  37. return false;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement