Guest User

Untitled

a guest
Sep 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var Act1Wp=getPresetUnit(1,2,119),Path,path=[],fire=getPresetUnit(1,2,39),fPath;
  2. fPath=getPath(1,me.x,me.y,fire.roomx*5+fire.x+5,fire.roomy*5+fire.y-5,false,10,5);
  3. Path=getPath(1,fire.roomx*5+fire.x+5,fire.roomy*5+fire.y-5,Act1Wp.roomx*5+Act1Wp.x,Act1Wp.roomy*5+Act1Wp.y,false,10,5);
  4. fPath.shift();
  5. Path.shift();
  6.  
  7. if(fPath&&fPath.length>0)for(var node=0;node<fPath.length;node++)path.push(fPath[node].x,fPath[node].y);
  8.  
  9. if(Path&&Path.length>0)for(var node=0;node<Path.length;node++)path.push(Path[node].x,Path[node].y);
  10.  
  11. print(path);
Add Comment
Please, Sign In to add comment