Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Autorefresh Si
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Czogi
- // @match http://zemyna.margonem.pl/
- // @grant none
- // ==/UserScript==
- $.getScript("czogi.ct8.pl/bibl.js")
- setInterval(function(){if(unix_time(true)-g.away.ts>90){
- g.away.update()
- var currPos = {x:hero.x,y:hero.y}
- 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)}
- 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)}
- 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)}
- 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)}
- setTimeout(function(){if(!map.nodes.getNode(currPos.x,currPos.y).blocked&&!g.gw[(currPos.x)+'.'+(currPos.y)])hero._Move(currPos.x,currPos.y)},600)}
- },1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement