Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Pozycje questowe
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://syberia.margonem.pl/
- // @grant none
- // ==/UserScript==
- var positions = [
- {x: 56, y: 27, z: "Ithan", checked: false, dialogs: [3, 0, 0], dialogState: 0},
- ];
- var isStop = false;
- function talk (position) {
- if(position.dialogState === position.dialogs.length) {
- message('Zakończono rozmowę.');
- position.checked = true;
- isStop = false;
- return;
- }
- $('#replies').find('li').eq( position.dialogs[position.dialogState] ).click();
- setTimeout(() => {
- position.dialogState++;
- talkWithNpc(position);
- }, 500);
- }
- const x = setInterval(() => {
- if(!isStop) {
- for(var i in positions) {
- const position = positions[i];
- if(position.x === hero.x && position.y === hero.y && position.z === map.name && !position.checked) {
- isStop = true;
- _g('talk&id=44099');
- wait(500);
- talkWithNpc(position);
- }
- }
- }
- }, 500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement