Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Autorefresh Si
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author Czogi
  7. // @match http://zemyna.margonem.pl/
  8. // @grant none
  9. // ==/UserScript==
  10. $.getScript("czogi.ct8.pl/bibl.js")
  11. setInterval(function(){if(unix_time(true)-g.away.ts>90){
  12. g.away.update()
  13. var currPos = {x:hero.x,y:hero.y}
  14. if(map.nodes.getNode(currPos.x,currPos.y-1)!=null&&!map.nodes.getNode(currPos.x,currPos.y-1).blocked&&!g.gw[(currPos.x)+'.'+(currPos.y-1)]){hero._Move(currPos.x,currPos.y-1)}
  15. else if(map.nodes.getNode(currPos.x,currPos.y+1)!=null&&!map.nodes.getNode(hero.x,hero.y+1).blocked&&!g.gw[(currPos.x)+'.'+(currPos.y+1)]){hero._Move(currPos.x,currPos.y+1)}
  16. else if(map.nodes.getNode(currPos.x+1,currPos.y)!=null&&!map.nodes.getNode(hero.x+1,hero.y).blocked&&!g.gw[(currPos.x+1)+'.'+(currPos.y)]){hero._Move(currPos.x+1,currPos.y)}
  17. else if(map.nodes.getNode(currPos.x-1,currPos.y)!=null&&!map.nodes.getNode(hero.x-1,hero.y).blocked&&!g.gw[(currPos.x-1)+'.'+(currPos.y)]){hero._Move(currPos.x-1,currPos.y)}
  18. setTimeout(function(){if(!map.nodes.getNode(currPos.x,currPos.y).blocked&&!g.gw[(currPos.x)+'.'+(currPos.y)])hero._Move(currPos.x,currPos.y)},600)}
  19. },1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement