Advertisement
spidhrum

Untitled

Dec 17th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. // ==UserScript==
  2. // @name bot na śnieżki
  3. // @namespace https://discord.gg/53dqXch
  4. // @version 1.1
  5. // @author dr00p
  6. // @match http://*.margonem.pl/
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. //SKRYPT NA ODBIERANIE, SELLANIE ŚNIEŻEK
  11. var abc = 0;
  12. skrypt = function(){
  13. if(map.name == 'Gwiazdkowe Miasteczko' && abc == 0){
  14. hero.margoMove(61,22);
  15. }
  16. if ((hero.x == 61) && (hero.y == 22) && abc == 0) {
  17. abc = 1;
  18. setTimeout(_g('talk&id=173454'), 100);
  19. setTimeout('document.querySelector("#replies > li:nth-child(1)").click()', 200);
  20. setTimeout('document.querySelector("#replies > li:nth-child(1)").click()', 500);
  21. }
  22. if(map.name == 'Gwiazdkowe Miasteczko' && abc == 1){
  23. hero.margoMove(39,25);
  24. }
  25. if ((hero.x == 39) && (hero.y == 25) && abc == 1) {
  26. abc = 2;
  27. setTimeout(_g('talk&id=135033'), 100);
  28. setTimeout('$(".LINE_SHOP")[0].onclick()', 600);
  29. setTimeout(() => {
  30. for (i in g.item){
  31. if(g.item[i].name == 'Śnieżka'){
  32. setTimeout('document.querySelector("#item"+i).click()',90);
  33. setTimeout('document.querySelector("#shop_accept").click()',100);
  34. setTimeout('document.querySelector("#shop_close").click()',90);
  35. }
  36. }
  37. },1100)
  38. }
  39. if(hero.x == 39 && hero.y == 25 && abc ==2){
  40. abc = 0
  41. }
  42. }
  43. setInterval(skrypt, 1000);
  44.  
  45.  
  46. //SKRYPT ŻEBY DIZAŁAŁO CHODZENIE
  47. $.getScript("https://margorgp.000webhostapp.com/margomove.js?t="+Date.now())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement