Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Pozycje questowe
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://syberia.margonem.pl/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var positions = [
  12. {x: 56, y: 27, z: "Ithan", checked: false},
  13.  
  14. ];
  15. var nr_dialog = [
  16. {z: 3,},
  17. {z: 0,},
  18. {z: 0,},
  19. ];
  20.  
  21. var currentDialog = 0;
  22.  
  23. // Interval co 0,5 sekundy
  24. const x = setInterval(() => {
  25.  
  26. // Iteruje po pozycjach
  27. for(var i in positions) {
  28. const position = positions[i];
  29.  
  30.  
  31. if(position.x === hero.x && position.y === hero.y && position.z === map.name && !position.checked){
  32. position.checked = true;
  33.  
  34. _g('talk&id=44099');
  35. wait(500);
  36.  
  37.  
  38. $('#replies').find('li').eq(nr_dialog[currentDialog]).click();
  39.  
  40. currentDialog++;
  41. };
  42.  
  43. }
  44.  
  45. }, 500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement