Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g.loadQueue.push({fun: () => hero.sp = hero.searchPath});
- var stage = 0;
- var id;
- function move_talk(id){
- hero.sp(g.npc[id].x, g.npc[id].y);
- if (road.length==0 && (Math.abs(hero.rx - g.npc[id].x) <= 1 && Math.abs(hero.ry - g.npc[id].y) <= 1)){
- console.log('Good');
- _g('talk&id='+id);
- }
- function main(){
- if (map.loaded==true){
- if(map.id==1 && stage==0){ //Ithan, teleportacja do K-H
- /*hero.sp(g.npc[44099].x, g.npc[44099].y);
- if (road.length==0 && (Math.abs(hero.rx - g.npc[44099].x) <= 1 && Math.abs(hero.ry - g.npc[44099].y) <= 1)) {
- console.log("Good");
- _g('talk&id=44099');
- _g('talk&id=44099&c=20.24691');
- _g('talk&id=44099&c=103.64372');
- }*/
- id=44099;
- move_talk(id);
- }
- else if(stage==0 && map.id != 1){
- mAlert("Musisz być w Ithan żeby bot zadziałał!");
- }
- }
- setTimeout(main,2000);
- }
- }
- main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement