Advertisement
sumguytwitches

gravyhunt

Mar 23rd, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. set max to 0.
  2. set lg to -180.
  3. set lt to -90.
  4. when true then {
  5. set checkg to latlng(lt,lg).
  6. set c to addons:scansat:resourceat(body, checkg, "graviolium").
  7. if c > max {
  8. set max to c.
  9. set maxg to checkg.
  10. }
  11. set lg to lg + 1.
  12. if lg >= 180 and lt >= 90 {
  13. print "done".
  14. print "Best is " + max.
  15. print "Best at " + maxg.
  16. }
  17. if lg >= 180 and lt < 90 {
  18. set lg to -180.
  19. set lt to lt + 1.
  20. }
  21. return lg < 180 and lt < 90.
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement