Advertisement
Guest User

Untitled

a guest
Nov 10th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 1.16 KB | None | 0 0
  1. g.loadQueue.push({fun: () => hero.sp = hero.searchPath});
  2.  
  3.     var stage = 0;
  4.     var id;
  5.  
  6.     function move_talk(id){
  7.         hero.sp(g.npc[id].x, g.npc[id].y);
  8.         if (road.length==0 && (Math.abs(hero.rx - g.npc[id].x) <= 1 && Math.abs(hero.ry - g.npc[id].y) <= 1)){
  9.             console.log('Good');
  10.             _g('talk&id='+id);
  11.         }
  12.  
  13.     function main(){
  14.         if (map.loaded==true){
  15.             if(map.id==1 && stage==0){                    //Ithan, teleportacja do K-H
  16.                 /*hero.sp(g.npc[44099].x, g.npc[44099].y);
  17.                 if (road.length==0 && (Math.abs(hero.rx - g.npc[44099].x) <= 1 && Math.abs(hero.ry - g.npc[44099].y) <= 1)) {
  18.                     console.log("Good");
  19.                     _g('talk&id=44099');
  20.                     _g('talk&id=44099&c=20.24691');
  21.                     _g('talk&id=44099&c=103.64372');
  22.                 }*/
  23.                 id=44099;
  24.                 move_talk(id);
  25.             }
  26.  
  27.             else if(stage==0 && map.id != 1){
  28.                 mAlert("Musisz być w Ithan żeby bot zadziałał!");
  29.             }
  30.         }
  31.  
  32.         setTimeout(main,2000);
  33.     }
  34.  
  35.     }
  36.  
  37.     main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement