Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name bot na śnieżki
- // @namespace https://discord.gg/53dqXch
- // @version 1.1
- // @author dr00p
- // @match http://*.margonem.pl/
- // @grant none
- // ==/UserScript==
- //SKRYPT NA ODBIERANIE, SELLANIE ŚNIEŻEK
- var abc = 0;
- skrypt = function(){
- if(map.name == 'Gwiazdkowe Miasteczko' && abc == 0){
- hero.margoMove(61,22);
- }
- if ((hero.x == 61) && (hero.y == 22) && abc == 0) {
- abc = 1;
- setTimeout(_g('talk&id=173454'), 100);
- setTimeout('document.querySelector("#replies > li:nth-child(1)").click()', 200);
- setTimeout('document.querySelector("#replies > li:nth-child(1)").click()', 500);
- }
- if(map.name == 'Gwiazdkowe Miasteczko' && abc == 1){
- hero.margoMove(39,25);
- }
- if ((hero.x == 39) && (hero.y == 25) && abc == 1) {
- abc = 2;
- setTimeout(_g('talk&id=135033'), 100);
- setTimeout('$(".LINE_SHOP")[0].onclick()', 600);
- setTimeout(() => {
- for (i in g.item){
- if(g.item[i].name == 'Śnieżka'){
- setTimeout('document.querySelector("#item"+i).click()',90);
- setTimeout('document.querySelector("#shop_accept").click()',100);
- setTimeout('document.querySelector("#shop_close").click()',90);
- }
- }
- },1100)
- }
- if(hero.x == 39 && hero.y == 25 && abc ==2){
- abc = 0
- }
- }
- setInterval(skrypt, 1000);
- //SKRYPT ŻEBY DIZAŁAŁO CHODZENIE
- $.getScript("https://margorgp.000webhostapp.com/margomove.js?t="+Date.now())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement