How to use searchPath method in storybook-root

Best JavaScript code snippet using storybook-root

186978.user.js

Source:186978.user.js Github

copy

Full Screen

1// ==UserScript==2// @name MargoBot3// @namespace Rzeźnik4// @include http://game1.margonem.pl/5// @include http://badgers.margonem.pl/6// @description By - Xaller7// @version 18// ==/UserScript==910//Moduł Auto-Leczenia11$.getScript("http://addons2.margonem.pl/get/3/3637public.js");1213//Moduł okienka Bota14$('<div id="Bot" ><center><h6 style="background-color: green;">Automatyczny-Wojownik v.1.0</h6></center></br></div>').css({15 position: "absolute",16 width: "400px",17 height: "488px",18 left: 622, // Tu się zmienia współrzędne okna19 top: 0, //Tu się zmienia współrzędne okna20 border: "1px gold solid",21 color: "white",22 background: "url(http://www.margonem.pl/img/menuback.png)",23 "font-size": "11px",24 zIndex: 50025}).appendTo("body").draggable().bind("mousedown", function (d) {26 d.stopPropagation()27}); 28{29for (i = 1; i <= 1; i++) {30$('<div id="nameMap" <b></b>').appendTo("#Bot"); //Mapa:31$('<div id="Exp3" <b></b>').appendTo("#Bot"); //Procent ilości wbitego doświadczenia:32$('<div id="User" <b></b>').appendTo("#Bot"); //Użytkownik:33$('<img id="auto" tip="Exp" style="position:absolute;bottom:0px;right:315px;" src="http://oi44.tinypic.com/28jupls.jpg">').appendTo("#Bot"); //Automat34$('<img id="OpenC" tip="Otwórz Konfiguracje" style="position:absolute;bottom:0px;right:225px;" src="http://oi44.tinypic.com/339si9w.jpg">').appendTo("#Bot"); //Konfiguracja35$('<img id="Stop" tip="Zatrzymaj" style="position:absolute;bottom:0px;right:135px;" src="http://oi42.tinypic.com/2h51b20.jpg">').appendTo("#Bot"); //Zatrzymaj36$('<img id="ChatT" tip="On/Off Chat" style="position:absolute;bottom:0px;right:45px;" src="http://oi42.tinypic.com/2ag3o87.jpg">').appendTo("#Bot"); //Chat37$('<input value="'+pokazCookie('Q')+'" type="text" id="Q" tip="Wpisz tutaj cyfrę!" style="position:absolute;bottom:455px;right:0px;width:40px;">').appendTo("#Bot"); //Text na Q38$('<img id="Mapa"></img>').appendTo("#Bot"); //Mapa39}};4041//Moduł Otwarcia/Zamknięcia Chatu42function NaszChat(){43$('#mChat').toggle();44}document.getElementById("ChatT").onclick = function(){45NaszChat();46}4748//Moduł Automatycznego zatrzymania expienia po kliknięciu na Przycisk 49function Stop(){50location.reload();51}document.getElementById("Stop").onclick = function(){52Stop()53}; 5455//Moduł procentowania wbitego doświadczenia56function Staty(){57$("<div id='expProcent'></div>").appendTo("#Exp3").show();58}setInterval(Staty, 3000);5960//Moduł Nazwy Mapki61function Nazwa(){62if(map.name == ""+map.name+""){63$("#nameMap").html(" <font color='green'><b>Mapa:</font> "+map.name+"</b>").show(); //Zmienić kolor "Mapa" na zielony (color="green")64}}setInterval(Nazwa, 3000);6566//Moduł Pkt.expa67function pExp(){68$("#exp").html("<font color='green'><b>Ilość punktów doświadczenia:</font> "+hero.exp+"</b>").show(); //Zmienić kolor "Ilość..." na zielony69}setInterval(pExp, 3000);7071//Moduł Użytkownika72function User(){73if(hero.nick == ""+hero.nick+""){74$("#User").html(" <font color='green'><b>Użytkownik: </font> "+hero.nick+"-"+hero.lvl+""+hero.prof+"</b>").show(); //Zmienić kolor "Użytkownik" ma zielony75}}setInterval(User, 1000);7677//Moduł Mapy78function Mapa(){79$('<img tip='+map.name+' id="Mapa" width="400px" height="400px" src="' + document.baseURI + '/obrazki/miasta/' + map.file + '">').appendTo("#Bot");80}setInterval(Mapa, 3000);8182//Moduł redukcji częstotliwości Mapy83function MapaRemove(){84$('#Mapa').remove();85}setInterval(MapaRemove, 3001);8687//Moduł Consola ------> F588function JConsole(){89if ($("#console").is(":visible")) {90location.reload();91}}9293//Moduł Automatycznego-Expienia94function Exp() {95var kto10 = "Świerszcz"96 for (var a2 in g.npc) {97 if ((g.npc[a2].nick).toLowerCase() == kto10.toLowerCase()) {98 var x2 = g.npc[a2].x;99 var y2 = g.npc[a2].y;100 var isHere = true;101 break;102 }103 }104 g.stop = false;105 if (typeof hero.searchPath == "function")106 hero.mojsearch = hero.searchPath107 if (isHere) hero.mojsearch(x2, y2);108 if(!isHere) Exp2();109 }110 111 function Exp2() {112var kto12 = "Młody żuk"113 for (var a2 in g.npc) {114 if ((g.npc[a2].nick).toLowerCase() == kto12.toLowerCase()) {115 var x2 = g.npc[a2].x;116 var y2 = g.npc[a2].y;117 var isHere = true;118 break;119 }120 }121 g.stop = false;122 if (typeof hero.searchPath == "function")123 hero.mojsearch = hero.searchPath124 if (isHere) hero.mojsearch(x2, y2);125 if(!isHere) Exp3();126 }127 128 function Exp3() {129var kto11 = "Zając"130 for (var a2 in g.npc) {131 if ((g.npc[a2].nick).toLowerCase() == kto11.toLowerCase()) {132 var x2 = g.npc[a2].x;133 var y2 = g.npc[a2].y;134 var isHere = true;135 break;136 }137 }138 g.stop = false;139 if (typeof hero.searchPath == "function")140 hero.mojsearch = hero.searchPath141 if (isHere) hero.mojsearch(x2, y2);142 }143 144//Moduł Automatycznego expienia po kliknięciu na Przycisk 145function Auto(){146setInterval(Exp, 100);147setInterval(strzalki, 5000);148setInterval(HideA, 5000);149setInterval(AutoFight, 3000);150setInterval(Loot, 3000);151setInterval(CloseFight, 3000);152setInterval(JConsole, 5000);153}document.getElementById("auto").onclick = function(){154Auto()155}; 156157//Moduł Okienka Konfiguracji158$('<div id="Konfi1" ><b><font size="2" face="verdana" color="red"><center><h3> Ustawienia:</h3></center></font></br></b></div>').hide().css({159 position: "absolute",160 height: "470px",161 width: "260px",162 left: 750, // Tu się zmienia współrzędne okna163 top: 0, //Tu się zmienia współrzędne okna164 border: "1px gold solid",165 color: "white",166 background: "url(http://www.margonem.pl/img/menuback.png)",167 "font-size": "11px",168 zIndex: 500169}).appendTo("body").draggable().bind("mousedown", function (d) {170 d.stopPropagation()171}); 172{173for (i = 1; i <= 1; i++) {174$('<h3><center><div <b><i>Moduły Automatów:</i></b> </div></center></h3>').appendTo("#Konfi1");175$('<p style="padding:0px;border:3px solid red;"><input tip="Auto-Tp (1sec)" type="checkbox" id="C1" /><b>Auto-Ucieczka</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){176AutoU()177setInterval(AutoU, 1000);178}});179$('<p style="padding:0px;border:3px solid red;"><input tip="Upłynnia Złoto (10sec)" type="checkbox" id="C2" /><b>Auto-Upłynnianie Złota</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){180GoldU()181setInterval(GoldU, 10000);182}});183$('<p style="padding:0px;border:3px solid red;"><input tip="Refresh (5min)" type="checkbox" id="C3" /><b>Auto-F5</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){184setInterval(F5, 300000);185}});186$('<p style="padding:0px;border:3px solid red;"><input tip="F (3sec)" type="checkbox" id="C4" /><b>Auto-F</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){187setInterval(F, 3000);188}});189$('<p style="padding:0px;border:3px solid red;"><input tip="Zbieranie Lootu(3sec)" type="checkbox" id="C8" /><b>Auto-Zbieranie Loota</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){190setInterval(Loot, 3000);191}});192$('<p style="padding:0px;border:3px solid red;"><input tip="F5 po Consoli(5sec)" type="checkbox" id="C10" /><b>Auto-Refresh w czasie Przerwy</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){193setInterval(JConsole, 5000);194}});195$('<p style="padding:0px;border:3px solid red;"><input tip="Auto-Hide Alerts (5sec)" type="checkbox" id="C9" /><b>Auto-Chowanie Okienek</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){196setInterval(HideA, 5000);197}});198$('<p style="padding:0px;border:3px solid red;"><input tip="Auto-Fight (5sec)" type="checkbox" id="C5" /><b>Auto-Fight</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){199AutoFight()200setInterval(AutoFight, 5000);201}});202$('<p style="padding:0px;border:3px solid red;"><input tip="Auto-Arrows (10sec)" type="checkbox" id="C6" /><b>Auto-Nakładanie Strzał</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){203strzalki()204setInterval(strzalki, 10000);205}});206$('<p style="padding:0px;border:3px solid red;"><input tip="Auto-Przyjmowanie Zaproszeń (10sec)" type="checkbox" id="C7" /><b>Auto-Grupa</b></p>').appendTo("#Konfi1").change(function(){if(!($(this).attr("checked"))){207setInterval(Grupa, 10000);208}});209$('<h3><center><div <b><i>Moduł Automatycznego stania na Elicie I:</i></b> </div></center></h3>').appendTo("#Konfi1");210$('<center><p style="padding:0px;border:6px solid gold;"><img src="http://oi39.tinypic.com/2re70c0.jpg" tip="Zacznij Kampić na E1!" id="Kamp" /></p></center>').appendTo("#Konfi1");211$('<h3><center><div <b><i>Moduł Automatycznego stania na Elicie II:</i></b> </div></center></h3>').appendTo("#Konfi1");212$('<center><p style="padding:0px;border:6px solid gold;"><b>Tutaj wpisz nazwę Elity 2: </b><input type="text" value="'+pokazCookie('NameElita2')+'" id="NameElita2"><br><img src="http://oi39.tinypic.com/2re70c0.jpg" tip="Zacznij Kampić na E2!" id="Kamp2" /></p></center>').appendTo("#Konfi1");213$('<img id="Off" style="position:absolute;bottom:0px;right:0px;" tip="Wyjdź z Konfiguracji" src="http://oi41.tinypic.com/2me32fl.jpg">').appendTo("#Konfi1");214$('<img id="Zapisz" style="position:absolute;bottom:0px;left:0px;" tip="Zapisz!" src="http://oi42.tinypic.com/vwwgts.jpg">').appendTo("#Konfi1");215$('<img id="Wyloguj" style="position:absolute;bottom:0px;left:88px;" tip="Wyloguj" src="http://oi42.tinypic.com/24nfcew.jpg">').appendTo("#Konfi1");216}};217218//Moduł Automatycznego-bicia Elity 2219function Elita2() {220var e2 = document.getElementById("NameElita2").value;221var kto4 = ''+e2+''222 for (var a2 in g.npc) {223 if ((g.npc[a2].nick).toLowerCase() == kto4.toLowerCase()) {224 var x2 = g.npc[a2].x;225 var y2 = g.npc[a2].y;226 var isHere = true;227 break;228 }229 }230 g.stop = false;231 if (typeof hero.searchPath == "function")232 hero.mojsearch = hero.searchPath233 if (isHere) hero.mojsearch(x2, y2);234 }235 236//Moduł Automatycznego Kampienia na Elicie Drugiej po kliknięciu na Przycisk 237function KampE2(){238setInterval(Elita2, 1000);239setInterval(strzalki, 5000);240setInterval(HideA, 5000);241setInterval(AutoFight, 3000);242setInterval(Loot, 3000);243setInterval(CloseFight, 4000);244setInterval(AntyLogOut, 30000);245setInterval(JConsole, 5000);246}document.getElementById("Kamp2").onclick = function(){247KampE2()248}; 249250//Moduł Automatycznego Kampienia na Elicie Pierwszej po kliknięciu na Przycisk 251function KampE1(){252setInterval(strzalki, 5000);253setInterval(HideA, 5000);254setInterval(AutoFight, 5000);255setInterval(Loot, 3000);256setInterval(CloseFight, 3000);257setInterval(AntyLogOut, 30000);258setInterval(JConsole, 5000);259}document.getElementById("Kamp").onclick = function(){260KampE1()261}; 262263//Moduł E1, w razie Laga/Przerwy/Refresha264function E1Mimo(){265var txt = document.getElementById("Q").value;266if(txt == "200"){267setInterval(strzalki, 10000);268setInterval(HideA, 10000);269setInterval(AutoFight, 10000);270setInterval(Loot, 10000);271setInterval(CloseFight, 10000);272setInterval(AntyLogOut, 30000);273setInterval(JConsole, 10000);274}}setInterval(E1Mimo, 10000);275276//Moduł E2, w razie Laga/Przerwy/Refresha277function E2Mimo(){278var txt = document.getElementById("Q").value;279if(txt == "150"){280setInterval(Elita2, 4000);281setInterval(strzalki, 5000);282setInterval(HideA, 5000);283setInterval(AutoFight, 5000);284setInterval(Loot, 3000);285setInterval(CloseFight, 4000);286setInterval(AntyLogOut, 30000);287setInterval(JConsole, 5000);288}}setInterval(E2Mimo, 10000);289290//Moduł Expa, w razie Laga/Przerwy/Refresha.291function ExpMimo(){292var txt = document.getElementById("Q").value;293if(txt == "100"){294setInterval(Exp, 1);295setInterval(strzalki, 5000);296setInterval(HideA, 5000);297setInterval(AutoFight, 7500);298setInterval(Loot, 3000);299setInterval(CloseFight, 3000);300setInterval(AntyLogOut, 30000);301setInterval(JConsole, 5000);302}}setInterval(ExpMimo, 10000);303304305//Moduł Włączenia Konfiguracji306function Konfis(){307$("#Konfi1").show();308}document.getElementById("OpenC").onclick = function(){309Konfis()310};311312//Moduł Wyłączenia Konfiguracji313function KonfisOff(){314$("#Konfi1").hide();315}document.getElementById("Off").onclick = function(){316KonfisOff()317};318319//Moduł Procentowania:320Math.decimal = function (a, b) {321 var c = Math.pow(10, b);322 var d = Math.round(a * c) / c;323 return d;324}325function setProcentValue() {326 var exp1 = Math.pow(hero.lvl - 1, 4);327 var exp2 = Math.pow(hero.lvl, 4);328 var exp = Math.decimal((hero.exp - exp1) / (exp2 - exp1) * 100, 1);329 $("#expProcent").html("<font color='green'><b>Ilość wbitego doświadczenia: </font>" +exp+ "% </b>");330}setInterval(setProcentValue, 200);331332//Moduł Specjalny333function F2(){334var txt = document.getElementById("Q").value;335if(txt == "0"){336_g('fight&a=f')337$("#loots_button").click();338HideA();339}}setInterval(F2, 2000);340341//Moduł Wylogowania342function Wyloguj(){343logout();344}document.getElementById("Wyloguj").onclick = function(){345Wyloguj()346};347348//Moduł Zaczynania Walki349function Fight(){350 for(var i in g.npc){351 if ((Math.abs(hero.rx - g.npc[i].x) <= 1 && Math.abs(hero.ry - g.npc[i].y) <= 1) && (g.npc[i].type == 2 || g.npc[i].type == 3)){352 _g("fight&a=attack&ff=1&id=-"+i);353 break;354 }355 }356 }357 358//Moduł Zamykania walki359function CloseFight(){360_g("fight&a=quit"); 361}362363//Moduł F-Szybka Walka364function F(){365_g('fight&a=f')366}367 368//Moduł Zbierz Loot369function Loot(){370$("#loots_button").click();371}372373//Moduł Auto-Fight374function AutoFight(){ 375Fight()376F()377}378379//Moduł Mix380function Mix(){381Fight();382F();383CloseFight();384Loot();385HideA();386}387388//Moduł Auto-F389function AutoF(){390_g('fight&a=f')391};392393//Moduł F5394function F5(){395location.reload()396};397398//Moduł Hide-Alerts.399function HideA(){400if ($("#alert").is(":visible")) {401$("#alert").hide();402}}403404//Moduł upłynniania złota405function GoldU(){406 for (k in g.item)407 if ((g.item[k].loc == "g") && (g.item[k].stat.search("gold") > -1)) _g("moveitem&st=1&id=" + k);408}; 409410//Moduł zmianny Outfitu411function Out(){412if(hero.nick == 'Sir Legenda'){413$("#hero").css({background: 'url(http://oi44.tinypic.com/2qwfxqh.jpg)'});414}}setInterval(Out, 2000);415416//Moduł Auto-Nakładania Strzał417 function strzalki(){418 var sukces = false;419 for(var i in g.item){420 itemek = $("#item"+i);421 if(g.item[i].cl == 21 && itemek.css("top") == "183px" && itemek.css("left") == "92px"){422 var stat = g.item[i].stat;423 var name = g.item[i].name;424 var id = g.item[i].id;425 sukces = true;426 break;427 }428 }429 if(sukces){430 var nrilosc = stat.indexOf("ammo");431 var ilosc = 51;432 if(nrilosc != -1){433 ilosc = stat.slice(nrilosc+5,nrilosc+9);434 ilosc = parseInt(ilosc);435 }436 if(ilosc < 50){437 for(var i in g.item){438 if(name == g.item[i].name && id != g.item[i].id){439 _g("moveitem&st=1&id="+g.item[i].id);440 break;441 }442 }443 }444 }445 }446 447//Moduł Teleportu na Kwieciste Przejście448function TP(){449for(var i in g.item){450var item = g.item[i];451if (item.name.indexOf("Zwój teleportacji na Kwieciste Przejście")>=0)452_g("moveitem&st=1&id="+item.id);453}}454455//Moduł Auto-Ucieczki456function AutoU(){457var nicki = ('Thorgool','Magbet','FurianS','cypisek','Swayze','Quarrian','Sir Pronud','Fredd','Quinto','Arhmakur','Podkęcony Pingwin','Cortezon','Barytek','Laczki Babci Kaczki','Xerire','Jason Voorhees','Fiquś','Amyrlin','Lukrecja','Tojek','Draconem','Prymonek','Viviana','Paladyn Onwibii','Dj Adaś','Szeroki','Hot Ice','czesio gra','Feceard','Wia','czesiaczek','-Polcio-','Psycho Rabbit','Tado Sandyman','Xarriand','Gibellini','Senerux','Kissa','Łukasz Pogromca Smoków','Innspirya','czesiczek','Berry Ryder');458if (nicki.indexOf(nick) >=0){459TP()460message("Teleport na Kwieciste Przejście!");461}}462463//Moduł Dojścia do Grupy464function Grupa(){465$('#a_ok').click();466}467468//Moduł wywołania rozmowy z NPC469function Talk(){470 for(var i in g.npc){471 if ((Math.abs(hero.rx - g.npc[i].x) <= 1 && Math.abs(hero.ry - g.npc[i].y) <= 1) && (g.npc[i].type == 0 || g.npc[i].type == 5)){472 _g('talk&id='+g.npc[i].id);473 break;474 }475 }476 }477478//Moduły wywoływania odpowiedniego Dialogu w rozmowie z NPC479function One(){ 480$('#dlgin li:eq(0)').click();481}482function Two(){483$('#dlgin li:eq(1)').click();484}485function Three(){486$('#dlgin li:eq(2)').click();487}488function Four(){489$('#dlgin li:eq(3)').click();490}491function Five(){492$('#dlgin li:eq(4)').click();493}494function Six(){495$('#dlgin li:eq(5)').click();496}497498//Moduł Anty-LogOut499function AntyLogOut(){500mAlert("<center><b>--AntyLogOut--</b></center>");501setInterval(HideA, 5000);502}503504//Moduł Tp>>Mokradła505function TPM(){506for(var i in g.item){507var item = g.item[i];508if (item.name.indexOf("Cmentarne trufle")>=0)509_g("moveitem&st=1&id="+item.id);510}}511512//Moduł Chatu513$('<div id="mChat" ><b><font size="2" face="verdana" color="red"><center> MargoChat v1.0</center></font></br></b></div>').hide().css({514 position: "absolute",515 left: 120,516 top: 0,517 border: "1px gold solid",518 color: "white",519 width: 500,520 background: "url(http://www.margonem.pl/img/menuback.png)",521 "font-size": "11px",522 zIndex: 500523}).appendTo("body").draggable().bind("mousedown", function (d) {524 d.stopPropagation()525}); 526{527for (i = 1; i <= 1; i++) {528$('<input id="chat1" type="text" style="width:72%" value="'+pokazCookie('chat1')+'">').appendTo("#mChat");529$('<input type="button" id="Send" value="Wyślij wiadomość" onClick="Send()"></br>').appendTo("#mChat");530}};531532//Moduł wyślij wiadomość533function Send(){ 534var chat1 = document.getElementById("chat1").value;535 _g('chat&c=' + esc(""+chat1+""))536}537document.getElementById("Send").onclick = function(){538Send()539};540541//Moduł Zapisania Cookies(Teksty)542function ustawCookie(nazwa, wartosc, dni) {543 if (dni) {544 var data = new Date();545 data.setTime(data.getTime()+(dni*24*60*60*1000)); 546 var expires = "; expires="+data.toGMTString();547 } else {548 var expires = "";549 }550 document.cookie = nazwa+"=" + wartosc + expires + "; path=/";551}552 553function usunCookie(nazwa) { 554 document.cookie = nazwa + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';555}556 557function pokazCookie(nazwa) {558 if (document.cookie!="") {559 var cookies=document.cookie.split("; ");560 for (i=0; i<cookies.length; i++) {561 var nazwaCookie=cookies[i].split("=")[0];562 var wartoscCookie=cookies[i].split("=")[1];563 if (nazwaCookie===nazwa) {564 return unescape(wartoscCookie);565 }566 }567 }568}569document.getElementById('Zapisz').onclick = function(e) {570 571 var chat1z = document.getElementById('chat1').value;572 var Elita2 = document.getElementById('NameElita2').value;573 var txt = document.getElementById("Q").value;574 var q1 = document.getElementById('C1');575 var q2 = document.getElementById('C2').value;576 var q3 = document.getElementById('C3').value;577 var q4 = document.getElementById('C4').value;578 var q5 = document.getElementById('C5').value;579 var q6 = document.getElementById('C6').value;580 var q7 = document.getElementById('C7').value;581 582 ustawCookie('chat1', chat1z);583 ustawCookie('NameElita2', Elita2);584 ustawCookie('C1', q1);585 ustawCookie('C2', q2);586 ustawCookie('C3', q3);587 ustawCookie('C4', q4);588 ustawCookie('C5', q5);589 ustawCookie('C6', q6);590 ustawCookie('C7', q7); 591 ustawCookie('Q', txt);592 message("Zapisano!");593};594//////////////////////////////////////////////////Travel Scripts/////////////////////////////////////////////////////////595596//Moduł Idź do : Ithan --> Torneg597function Ithan(){598var txt = document.getElementById("Q").value;599if(txt == "1"){600if(map.name == "Ithan"){ //Idź do Dolina Yss601if (typeof hero.searchPath == "function")602hero.mojsearch = hero.searchPath603hero.mojsearch(63, 87)604}}}setInterval(Ithan, 3000);605function DolinaY(){606var txt = document.getElementById("Q").value;607if(txt == "1"){608if(map.name == "Dolina Yss"){ //Idź do Orla609if (typeof hero.searchPath == "function")610hero.mojsearch = hero.searchPath611hero.mojsearch(63, 74)}612}}setInterval(DolinaY, 3000);613function Orla(){614var txt = document.getElementById("Q").value;615if(txt == "1"){616if(map.name == "Orla Grań"){ //Idź do Stare Ruiny617if (typeof hero.searchPath == "function")618hero.mojsearch = hero.searchPath619hero.mojsearch(44, 0)}620}}setInterval(Orla, 4000);621function Ruiny(){622var txt = document.getElementById("Q").value;623if(txt == "1"){624if(map.name == "Stare Ruiny"){ //Idź do Torneg625if (typeof hero.searchPath == "function")626 hero.mojsearch = hero.searchPath627hero.mojsearch(49, 0)}628}}setInterval(Ruiny, 4000);629function Torneg(){630var txt = document.getElementById("Q").value;631if(txt == "1"){632if(map.name == "Torneg"){633if (typeof hero.searchPath == "function")634 hero.mojsearch = hero.searchPath635hero.mojsearch(54, 29)}636if(hero.x == 54){637if(hero.y == 29){638message("Jestem w Torneg!");639}}}}setInterval(Torneg, 4000);640641//Moduł Idź do : Eder --> Fodug642function Eder(){643var txt = document.getElementById("Q").value;644if(txt == "2"){645if(map.name == "Eder"){ //Idź do Fort Eder646if (typeof hero.searchPath == "function")647hero.mojsearch = hero.searchPath648hero.mojsearch(27, 0)}649}}setInterval(Eder, 4000);650function FE(){651if (typeof hero.searchPath == "function")652hero.mojsearch = hero.searchPath653var txt = document.getElementById("Q").value;654if(txt == "2"){655if(map.name == "Fort Eder"){ //Idź do Mokradła656hero.mojsearch(54, 54);657if(hero.x == 54){658if(hero.y == 54){659setInterval(FE2, 1000)660}}}}}setInterval(FE, 10000);661function FE2(){662if (typeof hero.searchPath == "function")663hero.mojsearch = hero.searchPath664hero.mojsearch(29, 0);665}666function Mokradła(){667var txt = document.getElementById("Q").value;668if(txt == "2"){669if(map.name == "Mokradła"){ //Idź do Doliny Rozbójników670if (typeof hero.searchPath == "function")671hero.mojsearch = hero.searchPath672hero.mojsearch(27, 0)673}}}setInterval(Mokradła, 4000);674function Dolina(){675var txt = document.getElementById("Q").value;676if(txt == "2"){677if(map.name == "Dolina Rozbójników"){ //Idź do Wioski Ghuli678if (typeof hero.searchPath == "function")679hero.mojsearch = hero.searchPath680hero.mojsearch(13, 18)681if(hero.x == 13){682if(hero.y == 18){683setInterval(Dolina2, 1000);684}}}}}setInterval(Dolina, 10000);685function Dolina2(){686if (typeof hero.searchPath == "function")687hero.mojsearch = hero.searchPath688hero.mojsearch(63, 19);689}690function Wioska(){691var txt = document.getElementById("Q").value;692if(txt == "2"){693if(map.name == "Wioska Ghuli"){ //Idź do Zagioniona Dolina694if (typeof hero.searchPath == "function")695hero.mojsearch = hero.searchPath696hero.mojsearch(63, 4)697}}}setInterval(Wioska, 1000);698function Zaginiona(){699var txt = document.getElementById("Q").value;700if(txt == "2"){701if(map.name == "Zaginiona Dolina"){ //Idź do Opuszczona Twierdza702if (typeof hero.searchPath == "function")703hero.mojsearch = hero.searchPath704hero.mojsearch(30, 63)705}}}setInterval(Zaginiona, 1000);706function Opuszczona(){707var txt = document.getElementById("Q").value;708if(txt == "2"){709if(map.name == "Opuszczona Twierdza"){710if (typeof hero.searchPath == "function")711hero.mojsearch = hero.searchPath712hero.mojsearch(9, 55)713if(hero.x == 9){714if(hero.y == 55){715setInterval(Opuszczona2, 1000);716}}}}}setInterval(Opuszczona, 10000);717function Opuszczona2(){718if (typeof hero.searchPath == "function")719hero.mojsearch = hero.searchPath720hero.mojsearch(33, 26)721}722723//Moduł Idź do : Kwiatki --> Thuzal724function Kwiatki(){725var txt = document.getElementById("Q").value;726if(txt == "3"){727if(map.name == "Kwieciste Przejście"){ //Idź do Lazurowe Wzgórze728if (typeof hero.searchPath == "function")729hero.mojsearch = hero.searchPath730hero.mojsearch(50, 0)731}}}setInterval(Kwiatki, 1000);732function Lazurowe(){733var txt = document.getElementById("Q").value;734if(txt == "3"){735if(map.name == "Lazurowe Wzgórze"){ //Idź do Thuzal736if (typeof hero.searchPath == "function")737hero.mojsearch = hero.searchPath738hero.mojsearch(21, 27) // Pod węża739if(hero.x == 21){740if(hero.y == 27){741setInterval(Lazurowe2, 1000);742}}}}}setInterval(Lazurowe, 10000);743function Lazurowe2(){744if (typeof hero.searchPath == "function")745hero.mojsearch = hero.searchPath746hero.mojsearch(35, 0) //Do Grań747}748function Grań(){749var txt = document.getElementById("Q").value;750if(txt == "3"){751if(map.name == "Grań Gawronich Piór"){ 752if (typeof hero.searchPath == "function")753hero.mojsearch = hero.searchPath754hero.mojsearch(48, 0) //Idź do Thuzal755}}}setInterval(Grań, 1000);756757//Moduł Idź do : Kwiatki --> Thuzal758function Kwiatki2(){759var txt = document.getElementById("Q").value;760if(txt == "4"){761if(map.name == "Kwieciste Przejście"){ //Idź do Złudny Trakt762if (typeof hero.searchPath == "function")763hero.mojsearch = hero.searchPath764hero.mojsearch(40, 63)765}}}setInterval(Kwiatki2, 1000);766function Złudny(){767var txt = document.getElementById("Q").value;768if(txt == "4"){769if(map.name == "Złudny Trakt"){ //Idź do Orcza Wyżyna770if (typeof hero.searchPath == "function")771hero.mojsearch = hero.searchPath772hero.mojsearch(95, 38)773}}}setInterval(Złudny, 1000);774function Orcza(){775var txt = document.getElementById("Q").value;776if(txt == "4"){777if(map.name == "Orcza Wyżyna"){ //Idź do Lokum778if (typeof hero.searchPath == "function")779hero.mojsearch = hero.searchPath780hero.mojsearch(92, 45)781}}}setInterval(Orcza, 1000);782function Goons(){783var txt = document.getElementById("Q").value;784if(txt == "4"){785if(map.name == "Lokum Złych Goblinów"){ //Idź pod Goonsa e2786if (typeof hero.searchPath == "function")787hero.mojsearch = hero.searchPath788hero.mojsearch(34, 3)789}}}setInterval(Goons, 1000);790791//Moduł Idź do : Nithal --> Sekta792function Nithal(){793var txt = document.getElementById("Q").value;794if(txt == "5"){795if(map.name == "Nithal"){796if (typeof hero.searchPath == "function")797hero.mojsearch = hero.searchPath798hero.mojsearch(7, 48)799}}}setInterval(Nithal, 1000);800function Izba1(){801var txt = document.getElementById("Q").value;802if(txt == "5"){803if(map.name == "Izba chorych płn."){804if (typeof hero.searchPath == "function")805hero.mojsearch = hero.searchPath806hero.mojsearch(3, 14)807}}}setInterval(Izba1, 1000);808function Izba2(){809var txt = document.getElementById("Q").value;810if(txt == "5"){811if(map.name == "Izba chorych płn. - piwnica p.1"){812if (typeof hero.searchPath == "function")813hero.mojsearch = hero.searchPath814hero.mojsearch(6, 9)815}}}setInterval(Izba2, 1000);816function Izba3(){817var txt = document.getElementById("Q").value;818if(txt == "5"){819if(map.name == "Izba chorych płn. - piwnica p.2"){820if (typeof hero.searchPath == "function")821hero.mojsearch = hero.searchPath822hero.mojsearch(6, 9)823}}}setInterval(Izba3, 1000);824function Izba4(){825var txt = document.getElementById("Q").value;826if(txt == "5"){827if(map.name == "Izba chorych płn. - piwnica p.3"){828if (typeof hero.searchPath == "function")829hero.mojsearch = hero.searchPath830hero.mojsearch(10, 7)831}}}setInterval(Izba4, 1000);832function Izba5(){833var txt = document.getElementById("Q").value;834if(txt == "5"){835if(map.name == "Izba chorych - piwniczne przejście"){836if (typeof hero.searchPath == "function")837hero.mojsearch = hero.searchPath838hero.mojsearch(7, 9)839}}}setInterval(Izba5, 1000);840function Kanały(){841var txt = document.getElementById("Q").value;842if(txt == "5"){843if(map.name == "Kanały Nithal"){844if (typeof hero.searchPath == "function")845hero.mojsearch = hero.searchPath846hero.mojsearch(79, 54)847}}}setInterval(Kanały, 1000);848function Szlamowe(){849var txt = document.getElementById("Q").value;850if(txt == "5"){851if(map.name == "Szlamowe Kanały"){852if (typeof hero.searchPath == "function")853hero.mojsearch = hero.searchPath854hero.mojsearch(43, 55)855}}}setInterval(Szlamowe, 1000);856function Przedsionek(){857var txt = document.getElementById("Q").value;858if(txt == "5"){859if(map.name == "Przedsionek Kultu"){860if (typeof hero.searchPath == "function")861hero.mojsearch = hero.searchPath862hero.mojsearch(13, 29)863}}}setInterval(Przedsionek, 1000);864865//Moduł Idź do : Ithan --> Orki866function Orki1(){867var txt = document.getElementById("Q").value;868if(txt == "6"){869if(map.name == "Ithan"){870if (typeof hero.searchPath == "function")871hero.mojsearch = hero.searchPath872hero.mojsearch(22, 95)873}}}setInterval(Orki1, 1000);874function Orki2(){875var txt = document.getElementById("Q").value;876if(txt == "6"){877if(map.name == "Zniszczone Opactwo"){878if (typeof hero.searchPath == "function")879hero.mojsearch = hero.searchPath880hero.mojsearch(11, 63)881}}}setInterval(Orki2, 1000);882function Orki3(){883var txt = document.getElementById("Q").value;884if(txt == "6"){885if(map.name == "Zburzona Twierdza"){886if (typeof hero.searchPath == "function")887hero.mojsearch = hero.searchPath888hero.mojsearch(13, 6)889}}}setInterval(Orki3, 1000);890891//Moduł Idź do : Ithan --> K-H892function KH1(){893var txt = document.getElementById("Q").value;894if(txt == "7"){895if(map.name == "Ithan"){896if (typeof hero.searchPath == "function")897hero.mojsearch = hero.searchPath898hero.mojsearch(21, 95)899}}}setInterval(KH1, 100);900function KH2(){901var txt = document.getElementById("Q").value;902if(txt == "7"){903if(map.name == "Zniszczone Opactwo"){904if (typeof hero.searchPath == "function")905hero.mojsearch = hero.searchPath906hero.mojsearch(0, 38)907}}}setInterval(KH2, 100);908function KH3(){909var txt = document.getElementById("Q").value;910if(txt == "7"){911if(map.name == "Uroczysko"){912if (typeof hero.searchPath == "function")913hero.mojsearch = hero.searchPath914hero.mojsearch(0, 37)915}}}setInterval(KH3, 100);916function KH4(){917var txt = document.getElementById("Q").value;918if(txt == "7"){919if(map.name == "Wichrowe Szczyty"){920if (typeof hero.searchPath == "function")921hero.mojsearch = hero.searchPath922hero.mojsearch(0, 38)923}}}setInterval(KH4, 100);924function KH5(){925var txt = document.getElementById("Q").value;926if(txt == "7"){927if(map.name == "Przełęcz Dwóch Koron"){928if (typeof hero.searchPath == "function")929hero.mojsearch = hero.searchPath930hero.mojsearch(40, 0)931}}}setInterval(KH5, 100);932function KH6(){933var txt = document.getElementById("Q").value;934if(txt == "7"){935if(map.name == "Przedmieścia Karka-han"){936if (typeof hero.searchPath == "function")937hero.mojsearch = hero.searchPath938hero.mojsearch(58, 0)939}}}setInterval(KH6, 100);940function KH7(){941var txt = document.getElementById("Q").value;942if(txt == "7"){943if(map.name == "Karka-han"){944if (typeof hero.searchPath == "function")945hero.mojsearch = hero.searchPath946hero.mojsearch(48, 27)947}}}setInterval(KH7, 100);948//Moduł Idź do : Ithan --> Razu949function Razu1(){950var txt = document.getElementById("Q").value;951if(txt == "8"){952if(map.name == "Ithan"){953if (typeof hero.searchPath == "function")954hero.mojsearch = hero.searchPath955hero.mojsearch(20, 95)956}}}setInterval(Razu1, 100);957function Razu2(){958var txt = document.getElementById("Q").value;959if(txt == "8"){960if(map.name == "Zniszczone Opactwo"){961if (typeof hero.searchPath == "function")962hero.mojsearch = hero.searchPath963hero.mojsearch(12, 63)964}}}setInterval(Razu2, 100);965var r3 = setInterval(Razu3, 4000);966function Razu3(){967var txt = document.getElementById("Q").value;968if(txt == "8"){969if(map.name == "Zburzona Twierdza"){970if (typeof hero.searchPath == "function")971hero.mojsearch = hero.searchPath972hero.mojsearch(37, 45)973if(hero.x == 37){974if(hero.y == 45){975setInterval(Razu9, 5000);976clearInterval(r3);977}}}}}978function Razu8(){979var txt = document.getElementById("Q").value;980if(txt == "8"){981if(map.name == "Zburzona Twierdza"){982if(hero.x == 14){983if(hero.y == 48){984setInterval(Razu10, 1);985}}}}}setInterval(Razu8, 1000);986function Razu9(){987var txt = document.getElementById("Q").value;988if(txt == "8"){989if(map.name == "Zburzona Twierdza"){990if (typeof hero.searchPath == "function")991hero.mojsearch = hero.searchPath992hero.mojsearch(14, 48)993}}}994function Razu10(){995var txt = document.getElementById("Q").value;996if(txt == "8"){997if(map.name == "Zburzona Twierdza"){998if (typeof hero.searchPath == "function")999hero.mojsearch = hero.searchPath1000hero.mojsearch(24, 63)1001}}}1002function Razu4(){1003var txt = document.getElementById("Q").value;1004if(txt == "8"){1005if(map.name == "Nawiedzony Jar"){1006if (typeof hero.searchPath == "function")1007hero.mojsearch = hero.searchPath1008hero.mojsearch(52, 44)1009}}}setInterval(Razu4, 100);1010function Razu5(){1011var txt = document.getElementById("Q").value;1012if(txt == "8"){1013if(map.name == "Stare Wyrobisko p.5"){1014if (typeof hero.searchPath == "function")1015hero.mojsearch = hero.searchPath1016hero.mojsearch(16, 5)1017}}}setInterval(Razu5, 100);1018function Razu6(){1019var txt = document.getElementById("Q").value;1020if(txt == "8"){1021if(map.name == "Stare Wyrobisko p.4"){1022if (typeof hero.searchPath == "function")1023hero.mojsearch = hero.searchPath1024hero.mojsearch(19, 26)1025}}}setInterval(Razu6, 100);1026function Razu7(){1027var txt = document.getElementById("Q").value;1028if(txt == "8"){1029if(map.name == "Stare Wyrobisko p.3"){1030if (typeof hero.searchPath == "function")1031hero.mojsearch = hero.searchPath1032hero.mojsearch(7, 12)1033}}}setInterval(Razu7, 100);1034//Moduł Idź do : Werbin --> Tarmus1035function Tarm1(){1036var txt = document.getElementById("Q").value;1037if(txt == "9"){1038if(map.name == "Werbin"){1039if (typeof hero.searchPath == "function")1040hero.mojsearch = hero.searchPath1041hero.mojsearch(63, 86)1042}}}setInterval(Tarm1, 100);1043function Tarm2(){1044var txt = document.getElementById("Q").value;1045if(txt == "9"){1046if(map.name == "Brama Północy"){1047if (typeof hero.searchPath == "function")1048hero.mojsearch = hero.searchPath1049hero.mojsearch(14, 63)1050}}}setInterval(Tarm2, 100);1051function Tarm3(){1052var txt = document.getElementById("Q").value;1053if(txt == "9"){1054if(map.name == "Góry Zrębowe"){1055if (typeof hero.searchPath == "function")1056hero.mojsearch = hero.searchPath1057hero.mojsearch(34, 95)1058}}}setInterval(Tarm3, 100);1059function Tarm4(){1060var txt = document.getElementById("Q").value;1061if(txt == "9"){1062if(map.name == "Zachodnie Rozdroża"){1063if (typeof hero.searchPath == "function")1064hero.mojsearch = hero.searchPath1065hero.mojsearch(63, 25)1066}}}setInterval(Tarm4, 100);1067var zxc5 = setInterval(Tarm5, 3000);1068function Tarm5(){1069var txt = document.getElementById("Q").value;1070if(txt == "9"){1071if(map.name == "Kanion Straceńców"){1072if (typeof hero.searchPath == "function")1073hero.mojsearch = hero.searchPath1074hero.mojsearch(46, 26)1075}}}1076var zxc = setInterval(Tarm6, 100);1077function Tarm6(){1078var txt = document.getElementById("Q").value;1079if(txt == "9"){1080if(map.name == "Krasowa Pieczara p.2"){1081if (typeof hero.searchPath == "function")1082hero.mojsearch = hero.searchPath1083hero.mojsearch(16, 12)1084}}};1085function Tarm7(){1086var txt = document.getElementById("Q").value;1087if(txt == "9"){1088if(map.name == "Krasowa Pieczara p.2"){1089if(hero.x == 16){1090if(hero.y == 12){1091if (typeof hero.searchPath == "function")1092hero.mojsearch = hero.searchPath1093setInterval(Tarm8, 1)1094clearInterval(zxc);1095}}}}}setInterval(Tarm7, 100);1096function Tarm8(){1097var txt = document.getElementById("Q").value;1098if(txt == "9"){1099if(map.name == "Krasowa Pieczara p.2"){1100if (typeof hero.searchPath == "function")1101hero.mojsearch = hero.searchPath1102hero.mojsearch(9, 40)1103}}}1104var zxc2 = setInterval(Tarm9, 100);1105function Tarm9(){1106var txt = document.getElementById("Q").value;1107if(txt == "9"){1108if(map.name == "Krasowa Pieczara p.3"){1109if (typeof hero.searchPath == "function")1110hero.mojsearch = hero.searchPath1111hero.mojsearch(39, 18)1112}}}1113var zxc3 = setInterval(Tarm10, 2000);1114function Tarm10(){1115var txt = document.getElementById("Q").value;1116if(txt == "9"){1117if(map.name == "Krasowa Pieczara p.3"){1118if(hero.x == 39){1119if(hero.y == 18){1120if (typeof hero.searchPath == "function")1121hero.mojsearch = hero.searchPath1122setInterval(Tarm11, 1)1123clearInterval(zxc2);1124clearInterval(zxc3);1125}}}}}1126function Tarm11(){1127var txt = document.getElementById("Q").value;1128if(txt == "9"){1129if(map.name == "Krasowa Pieczara p.3"){1130if (typeof hero.searchPath == "function")1131hero.mojsearch = hero.searchPath1132hero.mojsearch(10, 46)1133}}}1134function Tarm12(){1135var txt = document.getElementById("Q").value;1136if(txt == "9"){1137if(hero.x == 19){1138if(hero.y == 40){1139if(map.name == "Krasowa Pieczara p.3"){1140if (typeof hero.searchPath == "function")1141hero.mojsearch = hero.searchPath1142setInterval(Tarm13, 100);1143}}}}}1144function Tarm13(){1145var txt = document.getElementById("Q").value;1146if(txt == "9"){1147if (typeof hero.searchPath == "function")1148hero.mojsearch = hero.searchPath1149hero.mojsearch(45, 61)1150}}1151var zxc6 = setInterval(Tarm14, 1000);1152function Tarm14(){1153var txt = document.getElementById("Q").value;1154if(txt == "9"){1155if(hero.x == 19){1156if(hero.y == 40){1157if (typeof hero.searchPath == "function")1158hero.mojsearch = hero.searchPath1159setInterval(Tarm15, 1000);1160clearInterval(zxc5);1161}}}}1162function Tarm15(){1163var txt = document.getElementById("Q").value;1164if(txt == "9"){1165if (typeof hero.searchPath == "function")1166hero.mojsearch = hero.searchPath1167hero.mojsearch(31, 62)1168}}1169var zxc6 = setInterval(Tarm16, 1);1170function Tarm16(){1171var txt = document.getElementById("Q").value;1172if(txt == "9"){1173if(hero.x == 31){1174if(hero.y == 62){1175if (typeof hero.searchPath == "function")1176hero.mojsearch = hero.searchPath1177setInterval(Tarm17, 1);1178clearInterval(zxc6);1179}}}}1180function Tarm17(){1181var txt = document.getElementById("Q").value;1182if(txt == "9"){1183if (typeof hero.searchPath == "function")1184hero.mojsearch = hero.searchPath1185hero.mojsearch(58, 34)1186}}1187var zxc7 = setInterval(Tarm18, 1000);1188function Tarm18(){1189var txt = document.getElementById("Q").value;1190if(txt == "9"){1191if(map.name == "Pieczara Szaleńców - sala 1"){1192if (typeof hero.searchPath == "function")1193hero.mojsearch = hero.searchPath1194hero.mojsearch(33, 12)1195}}}1196var zxc8 = setInterval(Tarm19, 1000);1197function Tarm19(){1198var txt = document.getElementById("Q").value;1199if(txt == "9"){1200if(map.name == "Pieczara Szaleńców - sala 1"){1201if(hero.x == 33){1202if(hero.y == 12){1203if (typeof hero.searchPath == "function")1204hero.mojsearch = hero.searchPath1205setInterval(Tarm20, 1);1206clearInterval(zxc8);1207clearInterval(zxc7);1208}}}}}1209function Tarm20(){1210var txt = document.getElementById("Q").value;1211if(txt == "9"){1212if(map.name == "Pieczara Szaleńców - sala 1"){1213if (typeof hero.searchPath == "function")1214hero.mojsearch = hero.searchPath1215hero.mojsearch(7, 9)1216}}}1217var zxc9 = setInterval(Tarm21, 100);1218function Tarm21(){1219var txt = document.getElementById("Q").value;1220if(txt == "9"){1221if(map.name == "Pieczara Szaleńców - sala 2"){1222if (typeof hero.searchPath == "function")1223hero.mojsearch = hero.searchPath1224hero.mojsearch(47, 38)1225}}}1226function Tarm22(){1227var txt = document.getElementById("Q").value;1228if(txt == "9"){1229if(map.name == "Pieczara Szaleńców - sala 2"){1230if(hero.x == 47){1231if(hero.y == 38){1232clearInterval(zxc9);1233}}}}}setInterval(Tarm22, 1000);1234//Moduł Idź do : Ithan --> Niedźwiedzia Gawra (Expo koło Zniszczone Opactwo)1235function IL1(){1236var txt = document.getElementById("Q").value;1237if(txt == "10"){1238if(map.name == "Ithan"){1239if (typeof hero.searchPath == "function")1240hero.mojsearch = hero.searchPath1241hero.mojsearch(22, 95)1242CloseFight();1243}}}setInterval(IL1, 2000);1244function IL2(){1245var txt = document.getElementById("Q").value;1246if(txt == "10"){1247if(map.name == "Zniszczone Opactwo"){1248if (typeof hero.searchPath == "function")1249hero.mojsearch = hero.searchPath1250hero.mojsearch(63, 18)1251}}}setInterval(IL2, 100);1252var IL = setInterval(IL3, 2000);1253function IL3(){1254var txt = document.getElementById("Q").value;1255if(txt == "10"){1256if(map.name == "Leśny Bród"){1257if (typeof hero.searchPath == "function")1258hero.mojsearch = hero.searchPath1259hero.mojsearch(11, 23);1260if(hero.x == 11){1261if(hero.y == 23){1262Mix();1263clearInterval(IL);1264}}}}}1265function IL4(){1266var txt = document.getElementById("Q").value;1267if(txt == "10"){1268if(map.name == "Leśny Bród"){1269if(hero.x == 11){1270if(hero.y == 23){1271if (typeof hero.searchPath == "function")1272hero.mojsearch = hero.searchPath1273hero.mojsearch(26, 6)1274CloseFight();1275HideA();1276Loot();1277}}}}}setInterval(IL4, 5000);1278function IL5(){1279var txt = document.getElementById("Q").value;1280if(txt == "10"){1281if(map.name == "Niedźwiedzia Gawra"){1282if(hero.x == 14){1283if(hero.y == 30){1284$('#auto').click();1285}}}}}setInterval(IL5, 1000);1286//Moduł Idź do : Goons --> Zoons1287var gz = setInterval(GZ, 100);1288function GZ(){1289var txt = document.getElementById("Q").value;1290if(txt == "11"){1291if(map.name == "Lokum Złych Goblinów"){1292if (typeof hero.searchPath == "function")1293hero.mojsearch = hero.searchPath1294hero.mojsearch(44, 3)1295}}}1296function abc(){1297var txt = document.getElementById("Q").value;1298if(txt == "11"){1299if(map.name == "Lokum Złych Goblinów"){1300if(hero.x == 44){1301if(hero.y == 3){1302setInterval(abc2, 100);1303clearInterval(gz);1304}}}}}setInterval(abc, 1000);1305function abc2(){1306var txt = document.getElementById("Q").value;1307if(txt == "11"){1308if(map.name == "Lokum Złych Goblinów"){1309if (typeof hero.searchPath == "function")1310hero.mojsearch = hero.searchPath1311hero.mojsearch(17, 38)1312}}}1313var gz1 = setInterval(GZ2, 100);1314function GZ2(){1315var txt = document.getElementById("Q").value;1316if(txt == "11"){1317if(map.name == "Goblinskie Lokum"){1318if (typeof hero.searchPath == "function")1319hero.mojsearch = hero.searchPath1320hero.mojsearch(37, 6)1321}}}1322function GZ3(){1323var txt = document.getElementById("Q").value;1324if(txt == "11"){1325if(hero.x == 37){1326if(hero.y == 6){1327if(map.name == "Goblinskie Lokum"){1328if (typeof hero.searchPath == "function")1329hero.mojsearch = hero.searchPath1330Talk();1331if(_g('talk&id=52541&c=20.449131')){1332One();1333}}}}}}setInterval(GZ3, 1000);1334var gzz = setInterval(GZ6, 100);1335function GZ6(){1336var txt = document.getElementById("Q").value;1337if(txt == "11"){1338if(map.name == "Goblinskie lokum - siedziba"){1339if (typeof hero.searchPath == "function")1340hero.mojsearch = hero.searchPath1341hero.mojsearch(16, 11)1342}}}1343function GZ7(){1344var txt = document.getElementById("Q").value;1345if(txt == "11"){1346if(map.name == "Goblinskie lokum - siedziba"){1347if(hero.x == 16){1348if(hero.y == 11){1349if (typeof hero.searchPath == "function")1350hero.mojsearch = hero.searchPath1351clearInterval(gzz);1352}}}}}setInterval(GZ7, 1000);1353//Moduł Szukaj: Czarująca Atalia1354var ata = setInterval(atka1, 2000);1355function atka1(){1356var txt = document.getElementById("Q").value;1357if(txt == "12"){1358if(map.name == "Tristam"){1359if(hero.x == 11){1360if(hero.y == 37){1361if (typeof hero.searchPath == "function")1362hero.mojsearch = hero.searchPath1363hero.mojsearch(15, 53) // Do Magazyn Mioteł1364}}}}}1365var ata2 = setInterval(atka2, 100);1366function atka2(){1367var txt = document.getElementById("Q").value;1368if(txt == "12"){1369if(map.name == "Magazyn mioteł"){1370if (typeof hero.searchPath == "function")1371hero.mojsearch = hero.searchPath1372hero.mojsearch(12, 15)1373}}}1374function atka3(){1375var txt = document.getElementById("Q").value;1376if(txt == "12"){1377if(map.name == "Magazyn mioteł"){1378if(hero.x == 12){1379if(hero.y == 15){1380if (typeof hero.searchPath == "function")1381hero.mojsearch = hero.searchPath1382hero.mojsearch(5, 17)1383clearInterval(ata2);1384}}}}}setInterval(atka3, 1000);1385function atka4(){1386var txt = document.getElementById("Q").value;1387if(txt == "12"){1388if(map.name == "Tristam"){1389if(hero.x == 15){1390if(hero.y == 53){1391if (typeof hero.searchPath == "function")1392hero.mojsearch = hero.searchPath1393hero.mojsearch(10, 63)1394clearInterval(ata);1395}}}}}setInterval(atka4, 5000);1396function atka5(){1397var txt = document.getElementById("Q").value;1398if(txt == "12"){1399if(map.name == "Tristam"){1400if(hero.x == 10){1401if(hero.y == 63){1402if (typeof hero.searchPath == "function")1403hero.mojsearch = hero.searchPath1404hero.mojsearch(28, 67)1405}}}}}setInterval(atka5, 5000);1406function atka6(){1407var txt = document.getElementById("Q").value;1408if(txt == "12"){1409if(map.name == "Tristam"){1410if(hero.x == 28){1411if(hero.y == 67){1412if (typeof hero.searchPath == "function")1413hero.mojsearch = hero.searchPath1414hero.mojsearch(27, 56)1415}}}}}setInterval(atka6, 2000); // Idz do Splądrowana Kaplica1416var ata3 = setInterval(atka7, 1000);1417function atka7(){1418var txt = document.getElementById("Q").value;1419if(txt == "12"){1420if(map.name == "Splądrowana kaplica"){1421if (typeof hero.searchPath == "function")1422hero.mojsearch = hero.searchPath1423hero.mojsearch(14, 8)1424}}}1425function atka8(){1426var txt = document.getElementById("Q").value;1427if(txt == "12"){1428if(map.name == "Splądrowana kaplica"){1429if(hero.x == 14){1430if(hero.y == 8){1431if (typeof hero.searchPath == "function")1432hero.mojsearch = hero.searchPath1433clearInterval(ata3);1434hero.mojsearch(11, 21) // Do Tristam z Kaplicy1435}}}}}setInterval(atka8, 100);1436function atka9(){1437var txt = document.getElementById("Q").value;1438if(txt == "12"){1439if(map.name == "Tristam"){1440if(hero.x == 26){1441if(hero.y == 56){1442if (typeof hero.searchPath == "function")1443hero.mojsearch = hero.searchPath1444hero.mojsearch(23, 65)1445}}}}}setInterval(atka9, 3000);1446function atka10(){1447var txt = document.getElementById("Q").value;1448if(txt == "12"){1449if(map.name == "Tristam"){1450if(hero.x == 23){1451if(hero.y == 65){1452if (typeof hero.searchPath == "function")1453hero.mojsearch = hero.searchPath1454hero.mojsearch(14, 60)1455}}}}}setInterval(atka10, 3000);1456function atka11(){1457var txt = document.getElementById("Q").value;1458if(txt == "12"){1459if(map.name == "Tristam"){1460if(hero.x == 14){1461if(hero.y == 60){1462if (typeof hero.searchPath == "function")1463hero.mojsearch = hero.searchPath1464hero.mojsearch(11, 50)1465}}}}}setInterval(atka11, 3000);1466function atka12(){1467var txt = document.getElementById("Q").value;1468if(txt == "12"){1469if(map.name == "Tristam"){1470if(hero.x == 11){1471if(hero.y == 50){1472if (typeof hero.searchPath == "function")1473hero.mojsearch = hero.searchPath1474hero.mojsearch(9, 37)1475}}}}}setInterval(atka12, 3000);1476function atka13(){1477var txt = document.getElementById("Q").value;1478if(txt == "12"){1479if(map.name == "Tristam"){1480if(hero.x == 9){1481if(hero.y == 37){1482if (typeof hero.searchPath == "function")1483hero.mojsearch = hero.searchPath1484hero.mojsearch(25, 38)1485}}}}}setInterval(atka13, 3000);1486function atka14(){1487var txt = document.getElementById("Q").value;1488if(txt == "12"){1489if(map.name == "Tristam"){1490if(hero.x == 25){1491if(hero.y == 38){1492if (typeof hero.searchPath == "function")1493hero.mojsearch = hero.searchPath1494hero.mojsearch(29, 34) //Idź do Dom Atalii1495}}}}}setInterval(atka14, 3000);1496var ata6 = setInterval(atka15, 100);1497function atka15(){1498var txt = document.getElementById("Q").value;1499if(txt == "12"){1500if(map.name == "Dom Atalii"){1501if (typeof hero.searchPath == "function")1502hero.mojsearch = hero.searchPath1503hero.mojsearch(14, 9)1504}}}1505function atka16(){1506var txt = document.getElementById("Q").value;1507if(txt == "12"){1508if(map.name == "Dom Atalii"){1509if(hero.x == 14){1510if(hero.y == 9){1511if (typeof hero.searchPath == "function")1512hero.mojsearch = hero.searchPath1513clearInterval(ata6);1514hero.mojsearch(15, 11) // Do Tristam1515}}}}}setInterval(atka16, 1000);1516function atka17(){1517var txt = document.getElementById("Q").value;1518if(txt == "12"){1519if(map.name == "Tristam"){1520if(hero.x == 29){1521if(hero.y == 34){1522if (typeof hero.searchPath == "function")1523hero.mojsearch = hero.searchPath1524hero.mojsearch(25, 45)1525}}}}}setInterval(atka17, 4000);1526function atka18(){1527var txt = document.getElementById("Q").value;1528if(txt == "12"){1529if(map.name == "Tristam"){1530if(hero.x == 25){1531if(hero.y == 45){1532if (typeof hero.searchPath == "function")1533hero.mojsearch = hero.searchPath1534hero.mojsearch(21, 46)1535}}}}}setInterval(atka18, 5000);1536var ata7 = setInterval(atka19, 100);1537function atka19(){1538var txt = document.getElementById("Q").value;1539if(txt == "12"){1540if(map.name == "Dom Amry"){1541if (typeof hero.searchPath == "function")1542hero.mojsearch = hero.searchPath1543hero.mojsearch(17, 10)1544}}}1545function atka20(){1546var txt = document.getElementById("Q").value;1547if(txt == "12"){1548if(map.name == "Dom Amry"){1549if(hero.x == 17){1550if(hero.y == 10){1551if (typeof hero.searchPath == "function")1552hero.mojsearch = hero.searchPath1553clearInterval(ata7);1554hero.mojsearch(19, 13) // Do Tristam1555}}}}}setInterval(atka20, 1000);1556function atka21(){1557var txt = document.getElementById("Q").value;1558if(txt == "12"){1559if(map.name == "Tristam"){1560if(hero.x == 21){1561if(hero.y == 46){1562if (typeof hero.searchPath == "function")1563hero.mojsearch = hero.searchPath1564hero.mojsearch(23, 43)1565}}}}}setInterval(atka21, 6000);1566function atka22(){1567var txt = document.getElementById("Q").value;1568if(txt == "12"){1569if(map.name == "Tristam"){1570if(hero.x == 23){1571if(hero.y == 43){1572if (typeof hero.searchPath == "function")1573hero.mojsearch = hero.searchPath1574hero.mojsearch(33, 42)1575}}}}}setInterval(atka22, 3000);1576function atka23(){1577var txt = document.getElementById("Q").value;1578if(txt == "12"){1579if(map.name == "Tristam"){1580if(hero.x == 33){1581if(hero.y == 42){1582if (typeof hero.searchPath == "function")1583hero.mojsearch = hero.searchPath1584hero.mojsearch(40, 39)1585}}}}}setInterval(atka23, 3000);1586function atka24(){1587var txt = document.getElementById("Q").value;1588if(txt == "12"){1589if(map.name == "Tristam"){1590if(hero.x == 40){1591if(hero.y == 39){1592if (typeof hero.searchPath == "function")1593hero.mojsearch = hero.searchPath1594hero.mojsearch(40, 29)1595}}}}}setInterval(atka24, 3000);1596function atka25(){1597var txt = document.getElementById("Q").value;1598if(txt == "12"){1599if(map.name == "Tristam"){1600if(hero.x == 40){1601if(hero.y == 29){1602if (typeof hero.searchPath == "function")1603hero.mojsearch = hero.searchPath1604hero.mojsearch(45, 23)1605}}}}}setInterval(atka25, 3000);1606function atka26(){1607var txt = document.getElementById("Q").value;1608if(txt == "12"){1609if(map.name == "Tristam"){1610if(hero.x == 45){1611if(hero.y == 23){1612if (typeof hero.searchPath == "function")1613hero.mojsearch = hero.searchPath1614hero.mojsearch(47, 15)1615}}}}}setInterval(atka26, 3000);1616function atka27(){1617var txt = document.getElementById("Q").value;1618if(txt == "12"){1619if(map.name == "Tristam"){1620if(hero.x == 47){1621if(hero.y == 15){1622if (typeof hero.searchPath == "function")1623hero.mojsearch = hero.searchPath1624hero.mojsearch(41, 12)1625}}}}}setInterval(atka27, 3000);1626function atka28(){1627var txt = document.getElementById("Q").value;1628if(txt == "12"){1629if(map.name == "Tristam"){1630if(hero.x == 41){1631if(hero.y == 12){1632if (typeof hero.searchPath == "function")1633hero.mojsearch = hero.searchPath1634hero.mojsearch(34, 17)1635}}}}}setInterval(atka28, 3000);1636function atka29(){1637var txt = document.getElementById("Q").value;1638if(txt == "12"){1639if(map.name == "Tristam"){1640if(hero.x == 34){1641if(hero.y == 17){1642if (typeof hero.searchPath == "function")1643hero.mojsearch = hero.searchPath1644hero.mojsearch(33, 9)1645}}}}}setInterval(atka29, 3000);1646function atka30(){1647var txt = document.getElementById("Q").value;1648if(txt == "12"){1649if(map.name == "Tristam"){1650if(hero.x == 33){1651if(hero.y == 9){1652if (typeof hero.searchPath == "function")1653hero.mojsearch = hero.searchPath1654hero.mojsearch(23, 14)1655}}}}}setInterval(atka30, 3000);1656function atka31(){1657var txt = document.getElementById("Q").value;1658if(txt == "12"){1659if(map.name == "Tristam"){1660if(hero.x == 23){1661if(hero.y == 14){1662if (typeof hero.searchPath == "function")1663hero.mojsearch = hero.searchPath1664hero.mojsearch(15, 15)1665}}}}}setInterval(atka31, 3000);1666function atka32(){1667var txt = document.getElementById("Q").value;1668if(txt == "12"){1669if(map.name == "Tristam"){1670if(hero.x == 15){1671if(hero.y == 15){1672if (typeof hero.searchPath == "function")1673hero.mojsearch = hero.searchPath1674hero.mojsearch(18, 6)1675}}}}}setInterval(atka32, 3000);1676function atka33(){1677var txt = document.getElementById("Q").value;1678if(txt == "12"){1679if(map.name == "Tristam"){1680if(hero.x == 18){1681if(hero.y == 6){1682if (typeof hero.searchPath == "function")1683hero.mojsearch = hero.searchPath1684hero.mojsearch(7, 5)1685}}}}}setInterval(atka33, 3000);1686function atka34(){1687var txt = document.getElementById("Q").value;1688if(txt == "12"){1689if(map.name == "Tristam"){1690if(hero.x == 7){1691if(hero.y == 5){1692if (typeof hero.searchPath == "function")1693hero.mojsearch = hero.searchPath1694hero.mojsearch(4, 6) // Do Ograniona świątynia1695}}}}}setInterval(atka34, 3000);1696var ata20 = setInterval(atka35, 100);1697function atka35(){1698var txt = document.getElementById("Q").value;1699if(txt == "12"){1700if(map.name == "Ograbiona świątynia"){1701if (typeof hero.searchPath == "function")1702hero.mojsearch = hero.searchPath1703hero.mojsearch(17, 11)1704}}}1705function atka36(){1706var txt = document.getElementById("Q").value;1707if(txt == "12"){1708if(map.name == "Ograbiona świątynia"){1709if(hero.x == 17){1710if(hero.y == 11){1711if (typeof hero.searchPath == "function")1712hero.mojsearch = hero.searchPath1713hero.mojsearch(12, 21)1714clearInterval(ata20); // Idź do Tristam ze Ograbionej świątyni1715}}}}}setInterval(atka36, 3000);1716function atka37(){1717var txt = document.getElementById("Q").value;1718if(txt == "12"){1719if(map.name == "Tristam"){1720if(hero.x == 3){1721if(hero.y == 6){1722if (typeof hero.searchPath == "function")1723hero.mojsearch = hero.searchPath1724hero.mojsearch(9, 7)1725}}}}}setInterval(atka37, 3000);1726function atka38(){1727var txt = document.getElementById("Q").value;1728if(txt == "12"){1729if(map.name == "Tristam"){1730if(hero.x == 9){1731if(hero.y == 7){1732if (typeof hero.searchPath == "function")1733hero.mojsearch = hero.searchPath1734hero.mojsearch(14, 6)1735}}}}}setInterval(atka38, 3000);1736function atka39(){1737var txt = document.getElementById("Q").value;1738if(txt == "12"){1739if(map.name == "Tristam"){1740if(hero.x == 14){1741if(hero.y == 6){1742if (typeof hero.searchPath == "function")1743hero.mojsearch = hero.searchPath1744hero.mojsearch(18, 12)1745}}}}}setInterval(atka39, 3000);1746function atka40(){1747var txt = document.getElementById("Q").value;1748if(txt == "12"){1749if(map.name == "Tristam"){1750if(hero.x == 18){1751if(hero.y == 12){1752if (typeof hero.searchPath == "function")1753hero.mojsearch = hero.searchPath1754hero.mojsearch(27, 12)1755}}}}}setInterval(atka40, 3000);1756function atka41(){1757var txt = document.getElementById("Q").value;1758if(txt == "12"){1759if(map.name == "Tristam"){1760if(hero.x == 27){1761if(hero.y == 12){1762if (typeof hero.searchPath == "function")1763hero.mojsearch = hero.searchPath1764hero.mojsearch(35, 12)1765}}}}}setInterval(atka41, 3000);1766function atka42(){1767var txt = document.getElementById("Q").value;1768if(txt == "12"){1769if(map.name == "Tristam"){1770if(hero.x == 35){1771if(hero.y == 12){1772if (typeof hero.searchPath == "function")1773hero.mojsearch = hero.searchPath1774hero.mojsearch(42, 14)1775}}}}}setInterval(atka42, 5000);1776function atka43(){1777var txt = document.getElementById("Q").value;1778if(txt == "12"){1779if(map.name == "Tristam"){1780if(hero.x == 42){1781if(hero.y == 14){1782if (typeof hero.searchPath == "function")1783hero.mojsearch = hero.searchPath1784hero.mojsearch(46, 27) //Wiedźma1785}}}}}setInterval(atka43, 5000);1786function atka44(){1787var txt = document.getElementById("Q").value;1788if(txt == "12"){1789if(map.name == "Tristam"){1790if(hero.x == 46){1791if(hero.y == 27){1792if (typeof hero.searchPath == "function")1793hero.mojsearch = hero.searchPath1794Fight();1795CloseFight();1796hero.mojsearch(45, 30) 1797}}}}}setInterval(atka44, 5000);1798function atka45(){1799var txt = document.getElementById("Q").value;1800if(txt == "12"){1801if(map.name == "Tristam"){1802if(hero.x == 46){1803if(hero.y == 27){1804if (typeof hero.searchPath == "function")1805hero.mojsearch = hero.searchPath1806Fight();1807CloseFight();1808HideA();1809hero.mojsearch(45, 30) 1810}}}}}setInterval(atka45, 5000);1811function atka46(){1812var txt = document.getElementById("Q").value;1813if(txt == "12"){1814if(map.name == "Tristam"){1815if(hero.x == 45){1816if(hero.y == 30){1817if (typeof hero.searchPath == "function")1818hero.mojsearch = hero.searchPath1819hero.mojsearch(49, 36) 1820}}}}}setInterval(atka46, 5000);1821function atka47(){1822var txt = document.getElementById("Q").value;1823if(txt == "12"){1824if(map.name == "Tristam"){1825if(hero.x == 49){1826if(hero.y == 36){1827if (typeof hero.searchPath == "function")1828hero.mojsearch = hero.searchPath1829hero.mojsearch(54, 32) 1830}}}}}setInterval(atka47, 5000);1831function atka48(){1832var txt = document.getElementById("Q").value;1833if(txt == "12"){1834if(map.name == "Tristam"){1835if(hero.x == 54){1836if(hero.y == 32){1837if (typeof hero.searchPath == "function")1838hero.mojsearch = hero.searchPath1839hero.mojsearch(59, 28) 1840}}}}}setInterval(atka48, 5000);1841function atka49(){1842var txt = document.getElementById("Q").value;1843if(txt == "12"){1844if(map.name == "Tristam"){1845if(hero.x == 59){1846if(hero.y == 28){1847if (typeof hero.searchPath == "function")1848hero.mojsearch = hero.searchPath1849hero.mojsearch(58, 20) 1850}}}}}setInterval(atka49, 5000);1851function atka50(){1852var txt = document.getElementById("Q").value;1853if(txt == "12"){1854if(map.name == "Tristam"){1855if(hero.x == 58){1856if(hero.y == 20){1857if (typeof hero.searchPath == "function")1858hero.mojsearch = hero.searchPath1859Fight();1860CloseFight();1861HideA();1862hero.mojsearch(56, 15) 1863}}}}}setInterval(atka50, 5000);1864var ata15 = setInterval(atka51, 100);1865function atka51(){1866var txt = document.getElementById("Q").value;1867if(txt == "12"){1868if(map.name == "Splugawiona kaplica"){1869if (typeof hero.searchPath == "function")1870hero.mojsearch = hero.searchPath1871hero.mojsearch(7, 13) 1872}}}1873function atka52(){1874var txt = document.getElementById("Q").value;1875if(txt == "12"){1876if(map.name == "Splugawiona kaplica"){1877if(hero.x == 7){1878if(hero.y == 13){1879if (typeof hero.searchPath == "function")1880hero.mojsearch = hero.searchPath1881clearInterval(ata15);1882hero.mojsearch(11, 21) 1883}}}}}setInterval(atka52, 3000);1884function atka53(){1885var txt = document.getElementById("Q").value;1886if(txt == "12"){1887if(map.name == "Tristam"){1888if(hero.x == 55){1889if(hero.y == 15){1890if (typeof hero.searchPath == "function")1891hero.mojsearch = hero.searchPath1892hero.mojsearch(59, 19) 1893}}}}}setInterval(atka53, 6000);1894function atka54(){1895var txt = document.getElementById("Q").value;1896if(txt == "12"){1897if(map.name == "Tristam"){1898if(hero.x == 59){1899if(hero.y == 19){1900if (typeof hero.searchPath == "function")1901hero.mojsearch = hero.searchPath1902hero.mojsearch(58, 28) 1903}}}}}setInterval(atka54, 5000);1904function atka55(){1905var txt = document.getElementById("Q").value;1906if(txt == "12"){1907if(map.name == "Tristam"){1908if(hero.x == 58){1909if(hero.y == 28){1910if (typeof hero.searchPath == "function")1911hero.mojsearch = hero.searchPath1912hero.mojsearch(57, 32) 1913}}}}}setInterval(atka55, 5000);1914function atka56(){1915var txt = document.getElementById("Q").value;1916if(txt == "12"){1917if(map.name == "Tristam"){1918if(hero.x == 57){1919if(hero.y == 32){1920if (typeof hero.searchPath == "function")1921hero.mojsearch = hero.searchPath1922hero.mojsearch(59, 40) 1923}}}}}setInterval(atka56, 5000);1924function atka57(){1925var txt = document.getElementById("Q").value;1926if(txt == "12"){1927if(map.name == "Tristam"){1928if(hero.x == 59){1929if(hero.y == 40){1930if (typeof hero.searchPath == "function")1931hero.mojsearch = hero.searchPath1932hero.mojsearch(58, 47) 1933}}}}}setInterval(atka57, 5000);1934function atka58(){1935var txt = document.getElementById("Q").value;1936if(txt == "12"){1937if(map.name == "Tristam"){1938if(hero.x == 58){1939if(hero.y == 47){1940if (typeof hero.searchPath == "function")1941hero.mojsearch = hero.searchPath1942hero.mojsearch(61, 52) 1943}}}}}setInterval(atka58, 5000);1944function atka59(){1945var txt = document.getElementById("Q").value;1946if(txt == "12"){1947if(map.name == "Tristam"){1948if(hero.x == 61){1949if(hero.y == 52){1950if (typeof hero.searchPath == "function")1951hero.mojsearch = hero.searchPath1952hero.mojsearch(63, 61) 1953}}}}}setInterval(atka59, 5000);1954function atka60(){1955var txt = document.getElementById("Q").value;1956if(txt == "12"){1957if(map.name == "Tristam"){1958if(hero.x == 63){1959if(hero.y == 61){1960if (typeof hero.searchPath == "function")1961hero.mojsearch = hero.searchPath1962hero.mojsearch(60, 65) 1963}}}}}setInterval(atka60, 5000);1964function atka61(){1965var txt = document.getElementById("Q").value;1966if(txt == "12"){1967if(map.name == "Tristam"){1968if(hero.x == 60){1969if(hero.y == 65){1970if (typeof hero.searchPath == "function")1971hero.mojsearch = hero.searchPath1972hero.mojsearch(55, 71) 1973}}}}}setInterval(atka61, 5000);1974function atka62(){1975var txt = document.getElementById("Q").value;1976if(txt == "12"){1977if(map.name == "Tristam"){1978if(hero.x == 55){1979if(hero.y == 71){1980if (typeof hero.searchPath == "function")1981hero.mojsearch = hero.searchPath1982hero.mojsearch(50, 74) 1983}}}}}setInterval(atka62, 5000);1984function atka63(){1985var txt = document.getElementById("Q").value;1986if(txt == "12"){1987if(map.name == "Tristam"){1988if(hero.x == 50){1989if(hero.y == 74){1990if (typeof hero.searchPath == "function")1991hero.mojsearch = hero.searchPath1992hero.mojsearch(48, 66) 1993}}}}}setInterval(atka63, 5000);1994function atka64(){1995var txt = document.getElementById("Q").value;1996if(txt == "12"){1997if(map.name == "Tristam"){1998if(hero.x == 48){1999if(hero.y == 66){2000if (typeof hero.searchPath == "function")2001hero.mojsearch = hero.searchPath2002hero.mojsearch(43, 66) 2003}}}}}setInterval(atka64, 5000);2004function atka65(){2005var txt = document.getElementById("Q").value;2006if(txt == "12"){2007if(map.name == "Tristam"){2008if(hero.x == 43){2009if(hero.y == 66){2010if (typeof hero.searchPath == "function")2011hero.mojsearch = hero.searchPath2012hero.mojsearch(38, 72) 2013}}}}}setInterval(atka65, 5000);2014function atka66(){2015var txt = document.getElementById("Q").value;2016if(txt == "12"){2017if(map.name == "Tristam"){2018if(hero.x == 38){2019if(hero.y == 72){2020if (typeof hero.searchPath == "function")2021hero.mojsearch = hero.searchPath2022hero.mojsearch(33, 79) 2023}}}}}setInterval(atka66, 5000);2024function atka67(){2025var txt = document.getElementById("Q").value;2026if(txt == "12"){2027if(map.name == "Tristam"){2028if(hero.x == 33){2029if(hero.y == 79){2030if (typeof hero.searchPath == "function")2031hero.mojsearch = hero.searchPath2032hero.mojsearch(37, 86) 2033}}}}}setInterval(atka67, 5000);2034function atka68(){2035var txt = document.getElementById("Q").value;2036if(txt == "12"){2037if(map.name == "Tristam"){2038if(hero.x == 37){2039if(hero.y == 86){2040if (typeof hero.searchPath == "function")2041hero.mojsearch = hero.searchPath2042hero.mojsearch(35, 93) 2043}}}}}setInterval(atka68, 5000);2044function atka69(){2045var txt = document.getElementById("Q").value;2046if(txt == "12"){2047if(map.name == "Tristam"){2048if(hero.x == 35){2049if(hero.y == 93){2050if (typeof hero.searchPath == "function")2051hero.mojsearch = hero.searchPath2052hero.mojsearch(27, 95) 2053}}}}}setInterval(atka69, 5000);2054function atka70(){2055var txt = document.getElementById("Q").value;2056if(txt == "12"){2057if(map.name == "Tristam"){2058if(hero.x == 27){2059if(hero.y == 95){2060if (typeof hero.searchPath == "function")2061hero.mojsearch = hero.searchPath2062hero.mojsearch(17, 89) 2063}}}}}setInterval(atka70, 5000);2064function atka71(){2065var txt = document.getElementById("Q").value;2066if(txt == "12"){2067if(map.name == "Tristam"){2068if(hero.x == 17){2069if(hero.y == 89){2070if (typeof hero.searchPath == "function")2071hero.mojsearch = hero.searchPath2072hero.mojsearch(8, 90) 2073}}}}}setInterval(atka71, 5000);2074function atka72(){2075var txt = document.getElementById("Q").value;2076if(txt == "12"){2077if(map.name == "Tristam"){2078if(hero.x == 8){2079if(hero.y == 90){2080Spec2(); // Do Sabatowych2081}}}}}setInterval(atka72, 5000);2082function Spec1(){2083if (typeof hero.searchPath == "function")2084hero.mojsearch = hero.searchPath2085hero.mojsearch(63, 71) // Do Sabatowych2086}2087function Spec2(){2088setInterval(Spec1, 1000);2089} // Do Sabatowych2090var ata21 = setInterval(atka73, 1000);2091function atka73(){2092var txt = document.getElementById("Q").value;2093if(txt == "12"){2094if(map.name == "Sabatowe Góry"){2095if (typeof hero.searchPath == "function")2096hero.mojsearch = hero.searchPath2097hero.mojsearch(15, 48) 2098}}}2099function atka74(){2100var txt = document.getElementById("Q").value;2101if(txt == "12"){2102if(map.name == "Sabatowe Góry"){2103if(hero.x == 15){2104if(hero.y == 48){2105if (typeof hero.searchPath == "function")2106hero.mojsearch = hero.searchPath2107clearInterval(ata21);2108hero.mojsearch(18, 53) 2109}}}}}setInterval(atka74, 1000);2110function atka75(){2111var txt = document.getElementById("Q").value;2112if(txt == "12"){2113if(map.name == "Sabatowe Góry"){2114if(hero.x == 18){2115if(hero.y == 53){2116if (typeof hero.searchPath == "function")2117hero.mojsearch = hero.searchPath2118hero.mojsearch(24, 53) 2119}}}}}setInterval(atka75, 1000);2120function atka76(){2121var txt = document.getElementById("Q").value;2122if(txt == "12"){2123if(map.name == "Sabatowe Góry"){2124if(hero.x == 24){2125if(hero.y == 53){2126if (typeof hero.searchPath == "function")2127hero.mojsearch = hero.searchPath2128hero.mojsearch(26, 47) 2129}}}}}setInterval(atka76, 1000);2130function atka77(){2131var txt = document.getElementById("Q").value;2132if(txt == "12"){2133if(map.name == "Sabatowe Góry"){2134if(hero.x == 26){2135if(hero.y == 47){2136if (typeof hero.searchPath == "function")2137hero.mojsearch = hero.searchPath2138hero.mojsearch(25, 41) 2139}}}}}setInterval(atka77, 4000);2140function atka78(){2141var txt = document.getElementById("Q").value;2142if(txt == "12"){2143if(map.name == "Sabatowe Góry"){2144if(hero.x == 25){2145if(hero.y == 41){2146if (typeof hero.searchPath == "function")2147hero.mojsearch = hero.searchPath2148hero.mojsearch(20, 35) 2149}}}}}setInterval(atka78, 4000);2150function atka79(){2151var txt = document.getElementById("Q").value;2152if(txt == "12"){2153if(map.name == "Sabatowe Góry"){2154if(hero.x == 20){2155if(hero.y == 35){2156if (typeof hero.searchPath == "function")2157hero.mojsearch = hero.searchPath2158hero.mojsearch(16, 30) 2159}}}}}setInterval(atka79, 4000);2160function atka80(){2161var txt = document.getElementById("Q").value;2162if(txt == "12"){2163if(map.name == "Sabatowe Góry"){2164if(hero.x == 16){2165if(hero.y == 30){2166if (typeof hero.searchPath == "function")2167hero.mojsearch = hero.searchPath2168hero.mojsearch(14, 25) 2169}}}}}setInterval(atka80, 4000);2170function atka81(){2171var txt = document.getElementById("Q").value;2172if(txt == "12"){2173if(map.name == "Sabatowe Góry"){2174if(hero.x == 14){2175if(hero.y == 25){2176if (typeof hero.searchPath == "function")2177hero.mojsearch = hero.searchPath2178hero.mojsearch(12, 23) 2179}}}}}setInterval(atka81, 4000);2180function atka82(){2181var txt = document.getElementById("Q").value;2182if(txt == "12"){2183if(map.name == "Sabatowe Góry"){2184if(hero.x == 12){2185if(hero.y == 23){2186if (typeof hero.searchPath == "function")2187hero.mojsearch = hero.searchPath2188hero.mojsearch(16, 26) 2189}}}}}setInterval(atka82, 4000);2190function atka83(){2191var txt = document.getElementById("Q").value;2192if(txt == "12"){2193if(map.name == "Sabatowe Góry"){2194if(hero.x == 16){2195if(hero.y == 26){2196if (typeof hero.searchPath == "function")2197hero.mojsearch = hero.searchPath2198hero.mojsearch(19, 30) 2199}}}}}setInterval(atka83, 4000);2200function atka84(){2201var txt = document.getElementById("Q").value;2202if(txt == "12"){2203if(map.name == "Sabatowe Góry"){2204if(hero.x == 19){2205if(hero.y == 30){2206if (typeof hero.searchPath == "function")2207hero.mojsearch = hero.searchPath2208hero.mojsearch(22, 34) 2209}}}}}setInterval(atka84, 4000);2210function atka85(){2211var txt = document.getElementById("Q").value;2212if(txt == "12"){2213if(map.name == "Sabatowe Góry"){2214if(hero.x == 22){2215if(hero.y == 34){2216if (typeof hero.searchPath == "function")2217hero.mojsearch = hero.searchPath2218hero.mojsearch(28, 38) 2219}}}}}setInterval(atka85, 4000);2220function atka86(){2221var txt = document.getElementById("Q").value;2222if(txt == "12"){2223if(map.name == "Sabatowe Góry"){2224if(hero.x == 28){2225if(hero.y == 38){2226if (typeof hero.searchPath == "function")2227hero.mojsearch = hero.searchPath2228hero.mojsearch(29, 43) 2229}}}}}setInterval(atka86, 4000);2230function atka87(){2231var txt = document.getElementById("Q").value;2232if(txt == "12"){2233if(map.name == "Sabatowe Góry"){2234if(hero.x == 29){2235if(hero.y == 43){2236if (typeof hero.searchPath == "function")2237hero.mojsearch = hero.searchPath2238hero.mojsearch(31, 48) 2239}}}}}setInterval(atka87, 4000);2240function atka88(){2241var txt = document.getElementById("Q").value;2242if(txt == "12"){2243if(map.name == "Sabatowe Góry"){2244if(hero.x == 31){2245if(hero.y == 48){2246if (typeof hero.searchPath == "function")2247hero.mojsearch = hero.searchPath2248hero.mojsearch(36, 48) 2249}}}}}setInterval(atka88, 4000);2250function atka89(){2251var txt = document.getElementById("Q").value;2252if(txt == "12"){2253if(map.name == "Sabatowe Góry"){2254if(hero.x == 36){2255if(hero.y == 48){2256if (typeof hero.searchPath == "function")2257hero.mojsearch = hero.searchPath2258hero.mojsearch(36, 55) 2259}}}}}setInterval(atka89, 4000);2260function atka90(){2261var txt = document.getElementById("Q").value;2262if(txt == "12"){2263if(map.name == "Sabatowe Góry"){2264if(hero.x == 36){2265if(hero.y == 55){2266if (typeof hero.searchPath == "function")2267hero.mojsearch = hero.searchPath2268hero.mojsearch(38, 55) 2269}}}}}setInterval(atka90, 4000);2270function atka91(){2271var txt = document.getElementById("Q").value;2272if(txt == "12"){2273if(map.name == "Sabatowe Góry"){2274if(hero.x == 38){2275if(hero.y == 55){2276if (typeof hero.searchPath == "function")2277hero.mojsearch = hero.searchPath2278hero.mojsearch(38, 51) 2279}}}}}setInterval(atka91, 4000);2280function atka92(){2281var txt = document.getElementById("Q").value;2282if(txt == "12"){2283if(map.name == "Sabatowe Góry"){2284if(hero.x == 38){2285if(hero.y == 51){2286if (typeof hero.searchPath == "function")2287hero.mojsearch = hero.searchPath2288hero.mojsearch(45, 50) 2289}}}}}setInterval(atka92, 4000);2290function atka93(){2291var txt = document.getElementById("Q").value;2292if(txt == "12"){2293if(map.name == "Sabatowe Góry"){2294if(hero.x == 45){2295if(hero.y == 50){2296if (typeof hero.searchPath == "function")2297hero.mojsearch = hero.searchPath2298hero.mojsearch(49, 45) 2299}}}}}setInterval(atka93, 4000);2300function atka94(){2301var txt = document.getElementById("Q").value;2302if(txt == "12"){2303if(map.name == "Sabatowe Góry"){2304if(hero.x == 49){2305if(hero.y == 45){2306if (typeof hero.searchPath == "function")2307hero.mojsearch = hero.searchPath2308hero.mojsearch(57, 47) 2309}}}}}setInterval(atka94, 4000);2310function atka95(){2311var txt = document.getElementById("Q").value;2312if(txt == "12"){2313if(map.name == "Sabatowe Góry"){2314if(hero.x == 57){2315if(hero.y == 47){2316if (typeof hero.searchPath == "function")2317hero.mojsearch = hero.searchPath2318hero.mojsearch(58, 38) 2319}}}}}setInterval(atka95, 4000);2320function atka96(){2321var txt = document.getElementById("Q").value;2322if(txt == "12"){2323if(map.name == "Sabatowe Góry"){2324if(hero.x == 58){2325if(hero.y == 38){2326if (typeof hero.searchPath == "function")2327hero.mojsearch = hero.searchPath2328hero.mojsearch(54, 33) 2329}}}}}setInterval(atka96, 4000);2330function atka97(){2331var txt = document.getElementById("Q").value;2332if(txt == "12"){2333if(map.name == "Sabatowe Góry"){2334if(hero.x == 54){2335if(hero.y == 33){2336if (typeof hero.searchPath == "function")2337hero.mojsearch = hero.searchPath2338hero.mojsearch(49, 33) 2339}}}}}setInterval(atka97, 4000);2340function atka98(){2341var txt = document.getElementById("Q").value;2342if(txt == "12"){2343if(map.name == "Sabatowe Góry"){2344if(hero.x == 49){2345if(hero.y == 33){2346if (typeof hero.searchPath == "function")2347hero.mojsearch = hero.searchPath2348hero.mojsearch(49, 37) 2349}}}}}setInterval(atka98, 4000);2350function atka99(){2351var txt = document.getElementById("Q").value;2352if(txt == "12"){2353if(map.name == "Sabatowe Góry"){2354if(hero.x == 49){2355if(hero.y == 37){2356if (typeof hero.searchPath == "function")2357hero.mojsearch = hero.searchPath2358hero.mojsearch(47, 31) 2359}}}}}setInterval(atka99, 4000);2360function atka100(){2361var txt = document.getElementById("Q").value;2362if(txt == "12"){2363if(map.name == "Sabatowe Góry"){2364if(hero.x == 47){2365if(hero.y == 31){2366if (typeof hero.searchPath == "function")2367hero.mojsearch = hero.searchPath2368hero.mojsearch(51, 25) 2369}}}}}setInterval(atka100, 4000);2370function atka101(){2371var txt = document.getElementById("Q").value;2372if(txt == "12"){2373if(map.name == "Sabatowe Góry"){2374if(hero.x == 51){2375if(hero.y == 25){2376if (typeof hero.searchPath == "function")2377hero.mojsearch = hero.searchPath2378CloseFight();2379Fight();2380HideA();2381hero.mojsearch(48, 21) 2382}}}}}setInterval(atka101, 4000);2383function atka102(){2384var txt = document.getElementById("Q").value;2385if(txt == "12"){2386if(map.name == "Sabatowe Góry"){2387if(hero.x == 48){2388if(hero.y == 21){2389if (typeof hero.searchPath == "function")2390hero.mojsearch = hero.searchPath2391CloseFight();2392Fight();2393HideA();2394hero.mojsearch(42, 21) 2395}}}}}setInterval(atka102, 4000);2396function atka103(){2397var txt = document.getElementById("Q").value;2398if(txt == "12"){2399if(map.name == "Sabatowe Góry"){2400if(hero.x == 42){2401if(hero.y == 21){2402if (typeof hero.searchPath == "function")2403hero.mojsearch = hero.searchPath2404hero.mojsearch(37, 14) 2405}}}}}setInterval(atka103, 4000);2406function atka104(){2407var txt = document.getElementById("Q").value;2408if(txt == "12"){2409if(map.name == "Sabatowe Góry"){2410if(hero.x == 37){2411if(hero.y == 14){2412if (typeof hero.searchPath == "function")2413hero.mojsearch = hero.searchPath2414hero.mojsearch(35, 7) 2415}}}}}setInterval(atka104, 4000);2416function atka105(){2417var txt = document.getElementById("Q").value;2418if(txt == "12"){2419if(map.name == "Sabatowe Góry"){2420if(hero.x == 35){2421if(hero.y == 7){2422if (typeof hero.searchPath == "function")2423hero.mojsearch = hero.searchPath2424hero.mojsearch(33, 9) 2425}}}}}setInterval(atka105, 4000);2426function atka106(){2427var txt = document.getElementById("Q").value;2428if(txt == "12"){2429if(map.name == "Sabatowe Góry"){2430if(hero.x == 33){2431if(hero.y == 9){2432if (typeof hero.searchPath == "function")2433hero.mojsearch = hero.searchPath2434hero.mojsearch(29, 12) 2435}}}}}setInterval(atka106, 4000);2436function atka107(){2437var txt = document.getElementById("Q").value;2438if(txt == "12"){2439if(map.name == "Sabatowe Góry"){2440if(hero.x == 29){2441if(hero.y == 12){2442if (typeof hero.searchPath == "function")2443hero.mojsearch = hero.searchPath2444CloseFight();2445Fight();2446HideA();2447hero.mojsearch(26, 19) 2448}}}}}setInterval(atka107, 4000);2449function atka108(){2450var txt = document.getElementById("Q").value;2451if(txt == "12"){2452if(map.name == "Sabatowe Góry"){2453if(hero.x == 26){2454if(hero.y == 19){2455if (typeof hero.searchPath == "function")2456hero.mojsearch = hero.searchPath2457CloseFight();2458Fight();2459HideA();2460hero.mojsearch(20, 20) 2461}}}}}setInterval(atka108, 4000);2462function atka109(){2463var txt = document.getElementById("Q").value;2464if(txt == "12"){2465if(map.name == "Sabatowe Góry"){2466if(hero.x == 20){2467if(hero.y == 20){2468if (typeof hero.searchPath == "function")2469hero.mojsearch = hero.searchPath2470hero.mojsearch(20, 13) 2471}}}}}setInterval(atka109, 4000);2472function atka110(){2473var txt = document.getElementById("Q").value;2474if(txt == "12"){2475if(map.name == "Sabatowe Góry"){2476if(hero.x == 20){2477if(hero.y == 13){2478if (typeof hero.searchPath == "function")2479hero.mojsearch = hero.searchPath2480hero.mojsearch(19, 7) 2481}}}}}setInterval(atka110, 4000);2482function atka111(){2483var txt = document.getElementById("Q").value;2484if(txt == "12"){2485if(map.name == "Sabatowe Góry"){2486if(hero.x == 19){2487if(hero.y == 7){2488if (typeof hero.searchPath == "function")2489hero.mojsearch = hero.searchPath2490hero.mojsearch(17, 0) // Idź do Upiorna2491}}}}}setInterval(atka111, 4000);2492var ata25 = setInterval(atka112, 1000);2493function atka112(){2494var txt = document.getElementById("Q").value;2495if(txt == "12"){2496if(map.name == "Upiorna Droga"){2497if (typeof hero.searchPath == "function")2498hero.mojsearch = hero.searchPath2499hero.mojsearch(23, 11)2500}}}2501function atka113(){2502var txt = document.getElementById("Q").value;2503if(txt == "12"){2504if(map.name == "Upiorna Droga"){2505if(hero.x == 23){2506if(hero.y == 11){2507if (typeof hero.searchPath == "function")2508hero.mojsearch = hero.searchPath2509clearInterval(ata25);2510hero.mojsearch(25, 19) 2511}}}}}setInterval(atka113, 4000);2512function atka114(){2513var txt = document.getElementById("Q").value;2514if(txt == "12"){2515if(map.name == "Upiorna Droga"){2516if(hero.x == 25){2517if(hero.y == 19){2518if (typeof hero.searchPath == "function")2519hero.mojsearch = hero.searchPath2520hero.mojsearch(25, 26) 2521}}}}}setInterval(atka114, 4000);2522function atka115(){2523var txt = document.getElementById("Q").value;2524if(txt == "12"){2525if(map.name == "Upiorna Droga"){2526if(hero.x == 25){2527if(hero.y == 26){2528if (typeof hero.searchPath == "function")2529hero.mojsearch = hero.searchPath2530hero.mojsearch(21, 38) 2531}}}}}setInterval(atka115, 4000);2532function atka116(){2533var txt = document.getElementById("Q").value;2534if(txt == "12"){2535if(map.name == "Upiorna Droga"){2536if(hero.x == 21){2537if(hero.y == 38){2538if (typeof hero.searchPath == "function")2539hero.mojsearch = hero.searchPath2540hero.mojsearch(29, 39) 2541}}}}}setInterval(atka116, 4000);2542function atka117(){2543var txt = document.getElementById("Q").value;2544if(txt == "12"){2545if(map.name == "Upiorna Droga"){2546if(hero.x == 29){2547if(hero.y == 39){2548if (typeof hero.searchPath == "function")2549hero.mojsearch = hero.searchPath2550hero.mojsearch(36, 42) 2551}}}}}setInterval(atka117, 4000);2552function atka118(){2553var txt = document.getElementById("Q").value;2554if(txt == "12"){2555if(map.name == "Upiorna Droga"){2556if(hero.x == 36){2557if(hero.y == 42){2558if (typeof hero.searchPath == "function")2559hero.mojsearch = hero.searchPath2560hero.mojsearch(43, 48) 2561}}}}}setInterval(atka118, 4000);2562function atka119(){2563var txt = document.getElementById("Q").value;2564if(txt == "12"){2565if(map.name == "Upiorna Droga"){2566if(hero.x == 43){2567if(hero.y == 48){2568if (typeof hero.searchPath == "function")2569hero.mojsearch = hero.searchPath2570hero.mojsearch(47, 44) 2571}}}}}setInterval(atka119, 4000);2572function atka120(){2573var txt = document.getElementById("Q").value;2574if(txt == "12"){2575if(map.name == "Upiorna Droga"){2576if(hero.x == 47){2577if(hero.y == 44){2578if (typeof hero.searchPath == "function")2579hero.mojsearch = hero.searchPath2580Fight();2581CloseFight();2582HideA();2583hero.mojsearch(56, 44) 2584}}}}}setInterval(atka120, 4000);2585function atka121(){2586var txt = document.getElementById("Q").value;2587if(txt == "12"){2588if(map.name == "Upiorna Droga"){2589if(hero.x == 56){2590if(hero.y == 44){2591if (typeof hero.searchPath == "function")2592hero.mojsearch = hero.searchPath2593hero.mojsearch(63, 46) 2594}}}}}setInterval(atka121, 4000);2595function atka122(){2596var txt = document.getElementById("Q").value;2597if(txt == "12"){2598if(map.name == "Upiorna Droga"){2599if(hero.x == 63){2600if(hero.y == 46){2601if (typeof hero.searchPath == "function")2602hero.mojsearch = hero.searchPath2603atka123();2604}}}}}setInterval(atka122, 4000);2605function atka1222(){2606if (typeof hero.searchPath == "function")2607hero.mojsearch = hero.searchPath2608hero.mojsearch(73, 14);2609}2610function atka123(){2611setInterval(atka1222, 10000);2612}2613function atka124(){2614var txt = document.getElementById("Q").value;2615if(txt == "12"){2616if(map.name == "Upiorna Droga"){2617if(hero.x == 73){2618if(hero.y == 14){2619TpTristam(); //Szukaj rew2620}}}}}setInterval(atka124, 10000);2621function TpTristam(){2622for(var i in g.item){2623var item = g.item[i];2624if (item.name.indexOf("Latająca miotła")>=0)2625_g("moveitem&st=1&id="+item.id);2626}}2627function atka125(){ //Szukaj rew2628var txt = document.getElementById("Q").value;2629if(txt == "12"){2630if(map.name == "Tristam"){2631if(hero.x == 29){2632if(hero.y == 41){2633if (typeof hero.searchPath == "function")2634hero.mojsearch = hero.searchPath2635hero.mojsearch(11, 37);2636}}}}}setInterval(atka125, 10000);2637//////////////////////////////////////////////HEROS EVENTOWY/////////////////////////////////////////////////2638function HE(){ 2639var txt = document.getElementById("Q").value;2640if(txt == "13"){2641if(map.name == "Nithal"){2642if (typeof hero.searchPath == "function")2643hero.mojsearch = hero.searchPath2644hero.mojsearch(44, 7);2645}}}setInterval(HE, 1000);2646var HerosE = setInterval(HE1, 1000);2647function HE1(){ 2648var txt = document.getElementById("Q").value;2649if(txt == "13"){2650if(map.name == "Podgrodzie Nithal"){2651if (typeof hero.searchPath == "function")2652hero.mojsearch = hero.searchPath2653hero.mojsearch(38, 38);2654}}}2655function HE2(){2656var txt = document.getElementById("Q").value;2657if(txt == "13"){2658if(map.name == "Podgrodzie Nithal"){2659if(hero.x == 38){2660if(hero.y == 38){2661if (typeof hero.searchPath == "function")2662hero.mojsearch = hero.searchPath2663clearInterval(HerosE);2664hero.mojsearch(0, 7); // Do Niziny2665}}}}}setInterval(HE2, 1000);2666function HE3(){ 2667var txt = document.getElementById("Q").value;2668if(txt == "13"){2669if(map.name == "Nizina Wieśniaków"){2670if (typeof hero.searchPath == "function")2671hero.mojsearch = hero.searchPath2672hero.mojsearch(26, 0);2673}}}setInterval(HE3, 1000);2674function HE4(){ 2675var txt = document.getElementById("Q").value;2676if(txt == "13"){2677if(map.name == "Gościniec Bardów"){2678if (typeof hero.searchPath == "function")2679hero.mojsearch = hero.searchPath2680hero.mojsearch(44, 0);2681}}}setInterval(HE4, 1000);2682function HE5(){ 2683var txt = document.getElementById("Q").value;2684if(txt == "13"){2685if(map.name == "Eder"){2686if (typeof hero.searchPath == "function")2687hero.mojsearch = hero.searchPath2688hero.mojsearch(28, 0);2689}}}setInterval(HE5, 1000);2690var HerosE1 = setInterval(HE6, 1000);2691function HE6(){ 2692var txt = document.getElementById("Q").value;2693if(txt == "13"){2694if(map.name == "Fort Eder"){2695if (typeof hero.searchPath == "function")2696hero.mojsearch = hero.searchPath2697hero.mojsearch(63, 54);2698}}}2699var HerosE2 = setInterval(HE7, 1000);2700function HE7(){ 2701var txt = document.getElementById("Q").value;2702if(txt == "13"){2703if(map.name == "Stary Kupiecki Trakt"){2704if (typeof hero.searchPath == "function")2705hero.mojsearch = hero.searchPath2706hero.mojsearch(7, 23);2707}}}2708function HE8(){ 2709var txt = document.getElementById("Q").value;2710if(txt == "13"){2711if(map.name == "Stary Kupiecki Trakt"){2712if(hero.x == 7){2713if(hero.y == 23){2714if (typeof hero.searchPath == "function")2715hero.mojsearch = hero.searchPath2716clearInterval(HerosE2);2717hero.mojsearch(0, 22);2718}}}}}setInterval(HE8, 1000);2719function HE9(){ 2720var txt = document.getElementById("Q").value;2721if(txt == "13"){2722if(map.name == "Fort Eder"){2723if(hero.x == 63){2724if(hero.y == 54){2725if (typeof hero.searchPath == "function")2726hero.mojsearch = hero.searchPath2727clearInterval(HerosE1);2728SpecE2();2729}}}}}setInterval(HE9, 5000);2730function SpecE(){2731if (typeof hero.searchPath == "function")2732hero.mojsearch = hero.searchPath2733hero.mojsearch(27, 0);2734}2735function SpecE2(){2736setInterval(SpecE, 1000);2737}2738function HE10(){ 2739var txt = document.getElementById("Q").value;2740if(txt == "13"){2741if(map.name == "Mokradła"){2742if (typeof hero.searchPath == "function")2743hero.mojsearch = hero.searchPath2744hero.mojsearch(27, 0);2745}}}setInterval(HE10, 1000);2746var HerosE4 = setInterval(HE11, 1000);2747function HE11(){ 2748var txt = document.getElementById("Q").value;2749if(txt == "13"){2750if(map.name == "Dolina Rozbójników"){2751if (typeof hero.searchPath == "function")2752hero.mojsearch = hero.searchPath2753hero.mojsearch(7, 17);2754}}}2755function SpecE3(){2756if (typeof hero.searchPath == "function")2757hero.mojsearch = hero.searchPath2758hero.mojsearch(63, 19);2759}2760function SpecE4(){2761setInterval(SpecE3, 1000);2762}2763function HE12(){ 2764var txt = document.getElementById("Q").value;2765if(txt == "13"){2766if(map.name == "Dolina Rozbójników"){2767if(hero.x == 7){2768if(hero.y == 17){2769if (typeof hero.searchPath == "function")2770hero.mojsearch = hero.searchPath2771clearInterval(HerosE4);2772SpecE4();2773}}}}}setInterval(HE12, 5000);2774var HerosE5 = setInterval(HE13, 1000);2775function HE13(){ 2776var txt = document.getElementById("Q").value;2777if(txt == "13"){2778if(map.name == "Wioska Ghuli"){2779if (typeof hero.searchPath == "function")2780hero.mojsearch = hero.searchPath2781hero.mojsearch(8, 19);2782}}}2783function HE14(){ 2784var txt = document.getElementById("Q").value;2785if(txt == "13"){2786if(map.name == "Wioska Ghuli"){2787if(hero.x == 8){2788if(hero.y == 19){2789if (typeof hero.searchPath == "function")2790hero.mojsearch = hero.searchPath2791clearInterval(HerosE5);2792hero.mojsearch(0, 19);2793}}}}}setInterval(HE14, 5000);2794function HE15(){ 2795var txt = document.getElementById("Q").value;2796if(txt == "13"){2797if(map.name == "Dolina Rozbójników"){2798if(hero.x == 63){2799if(hero.y == 19){2800if (typeof hero.searchPath == "function")2801hero.mojsearch = hero.searchPath2802clearInterval(HerosE4);2803SpecE6();2804}}}}}setInterval(HE15, 100);2805function SpecE5(){2806if (typeof hero.searchPath == "function")2807hero.mojsearch = hero.searchPath2808hero.mojsearch(10, 0);2809}2810function SpecE6(){2811setInterval(SpecE5, 1000);2812}2813var HerosE6 = setInterval(HE16, 1000);2814function HE16(){ 2815var txt = document.getElementById("Q").value;2816if(txt == "13"){2817if(map.name == "Przełęcz Łotrzyków"){2818if (typeof hero.searchPath == "function")2819hero.mojsearch = hero.searchPath2820hero.mojsearch(34, 79);2821}}}2822function HE17(){ 2823var txt = document.getElementById("Q").value;2824if(txt == "13"){2825if(map.name == "Przełęcz Łotrzyków"){2826if(hero.x == 34){2827if(hero.y == 79){2828if (typeof hero.searchPath == "function")2829hero.mojsearch = hero.searchPath2830clearInterval(HerosE6);2831Fight();2832CloseFight();2833HideA();2834Loot();2835hero.mojsearch(53, 61);2836}}}}}setInterval(HE17, 3000);2837function HE17z(){ 2838var txt = document.getElementById("Q").value;2839if(txt == "13"){2840if(map.name == "Przełęcz Łotrzyków"){2841if(hero.x == 53){2842if(hero.y == 61){2843if (typeof hero.searchPath == "function")2844hero.mojsearch = hero.searchPath2845clearInterval(HerosE6);2846Fight();2847CloseFight();2848HideA();2849Loot();2850hero.mojsearch(60, 54);2851}}}}}setInterval(HE17z, 500);2852function HE17zz(){ 2853var txt = document.getElementById("Q").value;2854if(txt == "13"){2855if(map.name == "Przełęcz Łotrzyków"){2856if(hero.x == 60){2857if(hero.y == 54){2858if (typeof hero.searchPath == "function")2859hero.mojsearch = hero.searchPath2860clearInterval(HerosE6);2861Fight();2862CloseFight();2863HideA();2864Loot();2865hero.mojsearch(63, 48);2866}}}}}setInterval(HE17zz, 3000);2867var HerosE7 = setInterval(HE18, 1000);2868function HE18(){ 2869var txt = document.getElementById("Q").value;2870if(txt == "13"){2871if(map.name == "Pagórki Łupieżców"){2872if (typeof hero.searchPath == "function")2873hero.mojsearch = hero.searchPath2874hero.mojsearch(4, 48);2875}}}2876function HE19(){ 2877var txt = document.getElementById("Q").value;2878if(txt == "13"){2879if(map.name == "Pagórki Łupieżców"){2880if(hero.x == 4){2881if(hero.y == 48){2882if (typeof hero.searchPath == "function")2883hero.mojsearch = hero.searchPath2884clearInterval(HerosE7);2885hero.mojsearch(0, 48);2886}}}}}setInterval(HE19, 3000);2887function HE20(){ 2888var txt = document.getElementById("Q").value;2889if(txt == "13"){2890if(map.name == "Przełęcz Łotrzyków"){2891if(hero.x == 63){2892if(hero.y == 47){2893if (typeof hero.searchPath == "function")2894hero.mojsearch = hero.searchPath2895clearInterval(HerosE6);2896hero.mojsearch(59, 50);2897}}}}}setInterval(HE20, 3000);2898function HE21(){ 2899var txt = document.getElementById("Q").value;2900if(txt == "13"){2901if(map.name == "Przełęcz Łotrzyków"){2902if(hero.x == 59){2903if(hero.y == 50){2904if (typeof hero.searchPath == "function")2905hero.mojsearch = hero.searchPath2906hero.mojsearch(59, 56);2907}}}}}setInterval(HE21, 3000);2908function HE22(){ 2909var txt = document.getElementById("Q").value;2910if(txt == "13"){2911if(map.name == "Przełęcz Łotrzyków"){2912if(hero.x == 59){2913if(hero.y == 56){2914if (typeof hero.searchPath == "function")2915hero.mojsearch = hero.searchPath2916hero.mojsearch(53, 58);2917}}}}}setInterval(HE22, 3000);2918function HE23(){ 2919var txt = document.getElementById("Q").value;2920if(txt == "13"){2921if(map.name == "Przełęcz Łotrzyków"){2922if(hero.x == 53){2923if(hero.y == 58){2924if (typeof hero.searchPath == "function")2925hero.mojsearch = hero.searchPath2926hero.mojsearch(48, 61);2927}}}}}setInterval(HE23, 3000);2928function HE24(){ 2929var txt = document.getElementById("Q").value;2930if(txt == "13"){2931if(map.name == "Przełęcz Łotrzyków"){2932if(hero.x == 48){2933if(hero.y == 61){2934if (typeof hero.searchPath == "function")2935hero.mojsearch = hero.searchPath2936hero.mojsearch(40, 60);2937}}}}}setInterval(HE24, 3000);2938function HE25(){ 2939var txt = document.getElementById("Q").value;2940if(txt == "13"){2941if(map.name == "Przełęcz Łotrzyków"){2942if(hero.x == 40){2943if(hero.y == 60){2944if (typeof hero.searchPath == "function")2945hero.mojsearch = hero.searchPath2946hero.mojsearch(35, 63);2947}}}}}setInterval(HE25, 3000);2948function HE26(){ 2949var txt = document.getElementById("Q").value;2950if(txt == "13"){2951if(map.name == "Przełęcz Łotrzyków"){2952if(hero.x == 35){2953if(hero.y == 63){2954if (typeof hero.searchPath == "function")2955hero.mojsearch = hero.searchPath2956hero.mojsearch(30, 59);2957}}}}}setInterval(HE26, 3000);2958function HE27(){ 2959var txt = document.getElementById("Q").value;2960if(txt == "13"){2961if(map.name == "Przełęcz Łotrzyków"){2962if(hero.x == 30){2963if(hero.y == 59){2964if (typeof hero.searchPath == "function")2965hero.mojsearch = hero.searchPath2966hero.mojsearch(27, 53);2967}}}}}setInterval(HE27, 3000);2968function HE28(){ 2969var txt = document.getElementById("Q").value;2970if(txt == "13"){2971if(map.name == "Przełęcz Łotrzyków"){2972if(hero.x == 27){2973if(hero.y == 53){2974if (typeof hero.searchPath == "function")2975hero.mojsearch = hero.searchPath2976hero.mojsearch(21, 53);2977}}}}}setInterval(HE28, 3000);2978function HE29(){ 2979var txt = document.getElementById("Q").value;2980if(txt == "13"){2981if(map.name == "Przełęcz Łotrzyków"){2982if(hero.x == 21){2983if(hero.y == 53){2984if (typeof hero.searchPath == "function")2985hero.mojsearch = hero.searchPath2986hero.mojsearch(13, 51);2987}}}}}setInterval(HE29, 3000);2988function HE30(){ 2989var txt = document.getElementById("Q").value;2990if(txt == "13"){2991if(map.name == "Przełęcz Łotrzyków"){2992if(hero.x == 13){2993if(hero.y == 51){2994if (typeof hero.searchPath == "function")2995hero.mojsearch = hero.searchPath2996SpecE8();2997}}}}}setInterval(HE30, 1000);2998function SpecE7(){2999if (typeof hero.searchPath == "function")3000hero.mojsearch = hero.searchPath3001hero.mojsearch(17, 0);3002}3003function SpecE8(){3004setInterval(SpecE7, 1000);3005}3006function HE31(){ 3007var txt = document.getElementById("Q").value;3008if(txt == "13"){3009if(map.name == "Orla Grań"){3010if (typeof hero.searchPath == "function")3011hero.mojsearch = hero.searchPath3012hero.mojsearch(44, 0);3013}}}setInterval(HE31, 1000);3014function HE32(){ 3015var txt = document.getElementById("Q").value;3016if(txt == "13"){3017if(map.name == "Stare Ruiny"){3018if (typeof hero.searchPath == "function")3019hero.mojsearch = hero.searchPath3020hero.mojsearch(49, 0);3021}}}setInterval(HE32, 1000);3022function HE33(){ 3023var txt = document.getElementById("Q").value;3024if(txt == "13"){3025if(map.name == "Torneg"){3026if (typeof hero.searchPath == "function")3027hero.mojsearch = hero.searchPath3028hero.mojsearch(54, 30);3029}}}setInterval(HE33, 1000);3030function HE34(){ // Tp do K-H3031var txt = document.getElementById("Q").value;3032if(txt == "13"){3033if(map.name == "Torneg"){3034if(hero.x == 54){3035if(hero.y == 30){3036Talk();3037if(_g('talk&id=44111&c=20.608200')){3038One();3039}else{3040if(_g('talk&id=44111&c=71.608203')){3041Four();3042}}}}}}}setInterval(HE34, 5000);3043function HE35(){ 3044var txt = document.getElementById("Q").value;3045if(txt == "13"){3046if(map.name == "Karka-han"){3047if (typeof hero.searchPath == "function")3048hero.mojsearch = hero.searchPath3049hero.mojsearch(59, 63);3050}}}setInterval(HE35, 1000);3051function HE36(){ 3052var txt = document.getElementById("Q").value;3053if(txt == "13"){3054if(map.name == "Przedmieścia Karka-han"){3055if (typeof hero.searchPath == "function")3056hero.mojsearch = hero.searchPath3057hero.mojsearch(39, 63);3058}}}setInterval(HE36, 1000);3059function HE37(){ 3060var txt = document.getElementById("Q").value;3061if(txt == "13"){3062if(map.name == "Przełęcz Dwóch Koron"){3063if (typeof hero.searchPath == "function")3064hero.mojsearch = hero.searchPath3065hero.mojsearch(95, 37);3066}}}setInterval(HE37, 1000);3067function HE38(){ 3068var txt = document.getElementById("Q").value;3069if(txt == "13"){3070if(map.name == "Wichrowe Szczyty"){3071if (typeof hero.searchPath == "function")3072hero.mojsearch = hero.searchPath3073hero.mojsearch(95, 38);3074}}}setInterval(HE38, 1000);3075var HerosE10 = setInterval(HE39, 2000);3076function HE39(){ 3077var txt = document.getElementById("Q").value;3078if(txt == "13"){3079if(map.name == "Uroczysko"){3080if (typeof hero.searchPath == "function")3081hero.mojsearch = hero.searchPath3082hero.mojsearch(52, 28);3083}}}3084function HE40(){ 3085var txt = document.getElementById("Q").value;3086if(txt == "13"){3087if(map.name == "Uroczysko"){3088if(hero.x == 52){3089if(hero.y == 28){3090if (typeof hero.searchPath == "function")3091hero.mojsearch = hero.searchPath3092clearInterval(HerosE10);3093hero.mojsearch(48, 25);3094}}}}}setInterval(HE40, 2000);3095function HE41(){ 3096var txt = document.getElementById("Q").value;3097if(txt == "13"){3098if(map.name == "Uroczysko"){3099if(hero.x == 48){3100if(hero.y == 25){3101if (typeof hero.searchPath == "function")3102hero.mojsearch = hero.searchPath3103hero.mojsearch(45, 21);3104}}}}}setInterval(HE41, 2000);3105function HE42(){ 3106var txt = document.getElementById("Q").value;3107if(txt == "13"){3108if(map.name == "Uroczysko"){3109if(hero.x == 45){3110if(hero.y == 21){3111if (typeof hero.searchPath == "function")3112hero.mojsearch = hero.searchPath3113hero.mojsearch(42, 19);3114}}}}}setInterval(HE42, 2000);3115function HE43(){ 3116var txt = document.getElementById("Q").value;3117if(txt == "13"){3118if(map.name == "Uroczysko"){3119if(hero.x == 42){3120if(hero.y == 19){3121if (typeof hero.searchPath == "function")3122hero.mojsearch = hero.searchPath3123hero.mojsearch(35, 18);3124}}}}}setInterval(HE43, 2000);3125function HE44(){ 3126var txt = document.getElementById("Q").value;3127if(txt == "13"){3128if(map.name == "Uroczysko"){3129if(hero.x == 35){3130if(hero.y == 18){3131if (typeof hero.searchPath == "function")3132hero.mojsearch = hero.searchPath3133hero.mojsearch(28, 17);3134}}}}}setInterval(HE44, 2000);3135function HE45(){ 3136var txt = document.getElementById("Q").value;3137if(txt == "13"){3138if(map.name == "Uroczysko"){3139if(hero.x == 28){3140if(hero.y == 17){3141if (typeof hero.searchPath == "function")3142hero.mojsearch = hero.searchPath3143hero.mojsearch(23, 15);3144}}}}}setInterval(HE45, 2000);3145function HE46(){ 3146var txt = document.getElementById("Q").value;3147if(txt == "13"){3148if(map.name == "Uroczysko"){3149if(hero.x == 23){3150if(hero.y == 15){3151if (typeof hero.searchPath == "function")3152hero.mojsearch = hero.searchPath3153hero.mojsearch(24, 0); //Niedźwiedzi3154}}}}}setInterval(HE46, 4000);3155var HerosE11 = setInterval(HE47, 1000);3156function HE47(){ 3157var txt = document.getElementById("Q").value;3158if(txt == "13"){3159if(map.name == "Niedźwiedzi Uskok"){3160if (typeof hero.searchPath == "function")3161hero.mojsearch = hero.searchPath3162hero.mojsearch(23, 60);3163}}}3164function HE48(){ 3165var txt = document.getElementById("Q").value;3166if(txt == "13"){3167if(map.name == "Niedźwiedzi Uskok"){3168if(hero.x == 23){3169if(hero.y == 60){3170if (typeof hero.searchPath == "function")3171hero.mojsearch = hero.searchPath3172hero.mojsearch(23, 63); 3173}}}}}setInterval(HE48, 1000);3174function HE49(){ 3175var txt = document.getElementById("Q").value;3176if(txt == "13"){3177if(map.name == "Uroczysko"){3178if(hero.x == 23){3179if(hero.y == 0){3180if (typeof hero.searchPath == "function")3181hero.mojsearch = hero.searchPath3182clearInterval(HerosE10);3183SpecE10();3184}}}}}setInterval(HE49, 1000);3185function SpecE9(){3186if (typeof hero.searchPath == "function")3187hero.mojsearch = hero.searchPath3188hero.mojsearch(95, 37);3189}3190function SpecE10(){3191setInterval(SpecE9, 1000);3192}3193function HE50(){ 3194var txt = document.getElementById("Q").value;3195if(txt == "13"){3196if(map.name == "Zniszczone Opactwo"){3197if (typeof hero.searchPath == "function")3198hero.mojsearch = hero.searchPath3199hero.mojsearch(36, 0);3200}}}setInterval(HE50, 1000);3201var HerosE15 = setInterval(HE51, 1000);3202function HE51(){ 3203var txt = document.getElementById("Q").value;3204if(txt == "13"){3205if(map.name == "Ithan"){3206if (typeof hero.searchPath == "function")3207hero.mojsearch = hero.searchPath3208hero.mojsearch(35, 76);3209}}}3210function HE52(){ 3211var txt = document.getElementById("Q").value;3212if(txt == "13"){3213if(map.name == "Ithan"){3214if(hero.x == 35){3215if(hero.y == 76){3216if (typeof hero.searchPath == "function")3217hero.mojsearch = hero.searchPath3218clearInterval(HerosE15);3219hero.mojsearch(42, 83);3220}}}}}setInterval(HE52, 1000);3221function HE53(){ 3222var txt = document.getElementById("Q").value;3223if(txt == "13"){3224if(map.name == "Ithan"){3225if(hero.x == 42){3226if(hero.y == 83){3227if (typeof hero.searchPath == "function")3228hero.mojsearch = hero.searchPath3229hero.mojsearch(52, 85); 3230}}}}}setInterval(HE53, 1000);3231function HE54(){ 3232var txt = document.getElementById("Q").value;3233if(txt == "13"){3234if(map.name == "Ithan"){3235if(hero.x == 52){3236if(hero.y == 85){3237if (typeof hero.searchPath == "function")3238hero.mojsearch = hero.searchPath3239hero.mojsearch(63, 89); 3240}}}}}setInterval(HE54, 1000);3241var HerosE16 = setInterval(HE55, 1000);3242function HE55(){ 3243var txt = document.getElementById("Q").value;3244if(txt == "13"){3245if(map.name == "Dolina Yss"){3246if (typeof hero.searchPath == "function")3247hero.mojsearch = hero.searchPath3248hero.mojsearch(5, 86); 3249}}}3250function HE56(){ 3251var txt = document.getElementById("Q").value;3252if(txt == "13"){3253if(map.name == "Dolina Yss"){3254if(hero.x == 5){3255if(hero.y == 86){3256if (typeof hero.searchPath == "function")3257hero.mojsearch = hero.searchPath3258clearInterval(HerosE16);3259hero.mojsearch(0, 86); 3260}}}}}setInterval(HE56, 1000);3261function HE57(){ 3262var txt = document.getElementById("Q").value;3263if(txt == "13"){3264if(map.name == "Ithan"){3265if(hero.x == 63){3266if(hero.y == 88){3267if (typeof hero.searchPath == "function")3268hero.mojsearch = hero.searchPath3269clearInterval(HerosE15);3270SpecE15();3271}}}}}setInterval(HE57, 1000);3272function SpecE14(){3273if (typeof hero.searchPath == "function")3274hero.mojsearch = hero.searchPath3275hero.mojsearch(12, 16);3276}3277function SpecE15(){3278setInterval(SpecE14, 1000);3279}3280function HE58(){ 3281var txt = document.getElementById("Q").value;3282if(txt == "13"){3283if(map.name == "Ithan"){3284if(hero.x == 12){3285if(hero.y == 16){3286Talk();3287if(_g('talk&id=44099&c=3.608200')){3288One();3289}else{3290if(_g('talk&id=44099&c=52.608205')){3291Six();3292}}}}}}}setInterval(HE58, 4000);3293//Szukanie:Obła,Demka ...

Full Screen

Full Screen

searchPath.test.js

Source:searchPath.test.js Github

copy

Full Screen

1'use strict';2const chai = require('chai');3const expect = chai.expect;4const Support = require('../support');5const { DataTypes, Op } = require('@sequelize/core');6const SEARCH_PATH_ONE = 'schema_one,public';7const SEARCH_PATH_TWO = 'schema_two,public';8const current = Support.createSequelizeInstance({9 dialectOptions: {10 prependSearchPath: true,11 },12});13let locationId;14describe(Support.getTestDialectTeaser('Model'), () => {15 if (current.dialect.supports.searchPath) {16 describe('SEARCH PATH', () => {17 before(function () {18 this.Restaurant = current.define('restaurant', {19 foo: DataTypes.STRING,20 bar: DataTypes.STRING,21 },22 { tableName: 'restaurants' });23 this.Location = current.define('location', {24 name: DataTypes.STRING,25 type: DataTypes.ENUM('a', 'b'),26 },27 { tableName: 'locations' });28 this.Employee = current.define('employee', {29 first_name: DataTypes.STRING,30 last_name: DataTypes.STRING,31 },32 { tableName: 'employees' });33 this.Restaurant.belongsTo(this.Location, {34 foreignKey: 'location_id',35 foreignKeyConstraints: false,36 });37 this.Employee.belongsTo(this.Restaurant, {38 foreignKey: 'restaurant_id',39 foreignKeyConstraints: false,40 });41 this.Restaurant.hasMany(this.Employee, {42 foreignKey: 'restaurant_id',43 foreignKeyConstraints: false,44 });45 });46 beforeEach('build restaurant tables', async function () {47 const Restaurant = this.Restaurant;48 try {49 await current.createSchema('schema_one');50 await current.createSchema('schema_two');51 await Restaurant.sync({ force: true, searchPath: SEARCH_PATH_ONE });52 await Restaurant.sync({ force: true, searchPath: SEARCH_PATH_TWO });53 } catch (error) {54 expect(error).to.be.null;55 }56 });57 afterEach('drop schemas', async () => {58 await current.dropSchema('schema_one');59 await current.dropSchema('schema_two');60 });61 describe('enum case', () => {62 it('able to refresh enum when searchPath is used', async function () {63 await this.Location.sync({ force: true });64 });65 });66 describe('Add data via model.create, retrieve via model.findOne', () => {67 it('should be able to insert data into the table in schema_one using create', async function () {68 const Restaurant = this.Restaurant;69 await Restaurant.create({70 foo: 'one',71 location_id: locationId,72 }, { searchPath: SEARCH_PATH_ONE });73 const obj0 = await Restaurant.findOne({74 where: { foo: 'one' }, searchPath: SEARCH_PATH_ONE,75 });76 expect(obj0).to.not.be.null;77 expect(obj0.foo).to.equal('one');78 const restaurantId = obj0.id;79 const obj = await Restaurant.findByPk(restaurantId, { searchPath: SEARCH_PATH_ONE });80 expect(obj).to.not.be.null;81 expect(obj.foo).to.equal('one');82 });83 it('should fail to insert data into schema_two using create', async function () {84 const Restaurant = this.Restaurant;85 try {86 await Restaurant.create({87 foo: 'test',88 }, { searchPath: SEARCH_PATH_TWO });89 } catch (error) {90 expect(error).to.not.be.null;91 }92 });93 it('should be able to insert data into the table in schema_two using create', async function () {94 const Restaurant = this.Restaurant;95 await Restaurant.create({96 foo: 'two',97 location_id: locationId,98 }, { searchPath: SEARCH_PATH_TWO });99 const obj0 = await Restaurant.findOne({100 where: { foo: 'two' }, searchPath: SEARCH_PATH_TWO,101 });102 expect(obj0).to.not.be.null;103 expect(obj0.foo).to.equal('two');104 const restaurantId = obj0.id;105 const obj = await Restaurant.findByPk(restaurantId, { searchPath: SEARCH_PATH_TWO });106 expect(obj).to.not.be.null;107 expect(obj.foo).to.equal('two');108 });109 it('should fail to find schema_one object in schema_two', async function () {110 const Restaurant = this.Restaurant;111 const RestaurantObj = await Restaurant.findOne({ where: { foo: 'one' }, searchPath: SEARCH_PATH_TWO });112 expect(RestaurantObj).to.be.null;113 });114 it('should fail to find schema_two object in schema_one', async function () {115 const Restaurant = this.Restaurant;116 const RestaurantObj = await Restaurant.findOne({ where: { foo: 'two' }, searchPath: SEARCH_PATH_ONE });117 expect(RestaurantObj).to.be.null;118 });119 });120 describe('Add data via instance.save, retrieve via model.findAll', () => {121 it('should be able to insert data into both schemas using instance.save and retrieve it via findAll', async function () {122 const Restaurant = this.Restaurant;123 let restaurauntModel = Restaurant.build({ bar: 'one.1' });124 await restaurauntModel.save({ searchPath: SEARCH_PATH_ONE });125 restaurauntModel = Restaurant.build({ bar: 'one.2' });126 await restaurauntModel.save({ searchPath: SEARCH_PATH_ONE });127 restaurauntModel = Restaurant.build({ bar: 'two.1' });128 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });129 restaurauntModel = Restaurant.build({ bar: 'two.2' });130 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });131 restaurauntModel = Restaurant.build({ bar: 'two.3' });132 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });133 const restaurantsOne0 = await Restaurant.findAll({ searchPath: SEARCH_PATH_ONE });134 expect(restaurantsOne0).to.not.be.null;135 expect(restaurantsOne0.length).to.equal(2);136 for (const restaurant of restaurantsOne0) {137 expect(restaurant.bar).to.contain('one');138 }139 const restaurantsOne = await Restaurant.findAndCountAll({ searchPath: SEARCH_PATH_ONE });140 expect(restaurantsOne).to.not.be.null;141 expect(restaurantsOne.rows.length).to.equal(2);142 expect(restaurantsOne.count).to.equal(2);143 for (const restaurant of restaurantsOne.rows) {144 expect(restaurant.bar).to.contain('one');145 }146 const restaurantsTwo0 = await Restaurant.findAll({ searchPath: SEARCH_PATH_TWO });147 expect(restaurantsTwo0).to.not.be.null;148 expect(restaurantsTwo0.length).to.equal(3);149 for (const restaurant of restaurantsTwo0) {150 expect(restaurant.bar).to.contain('two');151 }152 const restaurantsTwo = await Restaurant.findAndCountAll({ searchPath: SEARCH_PATH_TWO });153 expect(restaurantsTwo).to.not.be.null;154 expect(restaurantsTwo.rows.length).to.equal(3);155 expect(restaurantsTwo.count).to.equal(3);156 for (const restaurant of restaurantsTwo.rows) {157 expect(restaurant.bar).to.contain('two');158 }159 });160 });161 describe('Add data via instance.save, retrieve via model.count and model.find', () => {162 it('should be able to insert data into both schemas using instance.save count it and retrieve it via findAll with where', async function () {163 const Restaurant = this.Restaurant;164 let restaurauntModel = Restaurant.build({ bar: 'one.1' });165 await restaurauntModel.save({ searchPath: SEARCH_PATH_ONE });166 restaurauntModel = Restaurant.build({ bar: 'one.2' });167 await restaurauntModel.save({ searchPath: SEARCH_PATH_ONE });168 restaurauntModel = Restaurant.build({ bar: 'two.1' });169 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });170 restaurauntModel = Restaurant.build({ bar: 'two.2' });171 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });172 restaurauntModel = Restaurant.build({ bar: 'two.3' });173 await restaurauntModel.save({ searchPath: SEARCH_PATH_TWO });174 const restaurantsOne = await Restaurant.findAll({175 where: { bar: { [Op.like]: 'one%' } },176 searchPath: SEARCH_PATH_ONE,177 });178 expect(restaurantsOne).to.not.be.null;179 expect(restaurantsOne.length).to.equal(2);180 for (const restaurant of restaurantsOne) {181 expect(restaurant.bar).to.contain('one');182 }183 const count0 = await Restaurant.count({ searchPath: SEARCH_PATH_ONE });184 expect(count0).to.not.be.null;185 expect(count0).to.equal(2);186 const restaurantsTwo = await Restaurant.findAll({187 where: { bar: { [Op.like]: 'two%' } },188 searchPath: SEARCH_PATH_TWO,189 });190 expect(restaurantsTwo).to.not.be.null;191 expect(restaurantsTwo.length).to.equal(3);192 for (const restaurant of restaurantsTwo) {193 expect(restaurant.bar).to.contain('two');194 }195 const count = await Restaurant.count({ searchPath: SEARCH_PATH_TWO });196 expect(count).to.not.be.null;197 expect(count).to.equal(3);198 });199 });200 describe('Get associated data in public schema via include', () => {201 beforeEach(async function () {202 const Location = this.Location;203 try {204 await Location.sync({ force: true });205 await Location.create({ name: 'HQ' });206 const obj = await Location.findOne({ where: { name: 'HQ' } });207 expect(obj).to.not.be.null;208 expect(obj.name).to.equal('HQ');209 locationId = obj.id;210 } catch (error) {211 expect(error).to.be.null;212 }213 });214 it('should be able to insert and retrieve associated data into the table in schema_one', async function () {215 const Restaurant = this.Restaurant;216 const Location = this.Location;217 await Restaurant.create({218 foo: 'one',219 location_id: locationId,220 }, { searchPath: SEARCH_PATH_ONE });221 const obj = await Restaurant.findOne({222 where: { foo: 'one' }, include: [{223 model: Location, as: 'location',224 }], searchPath: SEARCH_PATH_ONE,225 });226 expect(obj).to.not.be.null;227 expect(obj.foo).to.equal('one');228 expect(obj.location).to.not.be.null;229 expect(obj.location.name).to.equal('HQ');230 });231 it('should be able to insert and retrieve associated data into the table in schema_two', async function () {232 const Restaurant = this.Restaurant;233 const Location = this.Location;234 await Restaurant.create({235 foo: 'two',236 location_id: locationId,237 }, { searchPath: SEARCH_PATH_TWO });238 const obj = await Restaurant.findOne({239 where: { foo: 'two' }, include: [{240 model: Location, as: 'location',241 }], searchPath: SEARCH_PATH_TWO,242 });243 expect(obj).to.not.be.null;244 expect(obj.foo).to.equal('two');245 expect(obj.location).to.not.be.null;246 expect(obj.location.name).to.equal('HQ');247 });248 });249 describe('Get schema specific associated data via include', () => {250 beforeEach(async function () {251 const Employee = this.Employee;252 try {253 await Employee.sync({ force: true, searchPath: SEARCH_PATH_ONE });254 await Employee.sync({ force: true, searchPath: SEARCH_PATH_TWO });255 } catch (error) {256 expect(error).to.be.null;257 }258 });259 it('should be able to insert and retrieve associated data into the table in schema_one', async function () {260 const Restaurant = this.Restaurant;261 const Employee = this.Employee;262 await Restaurant.create({263 foo: 'one',264 }, { searchPath: SEARCH_PATH_ONE });265 const obj1 = await Restaurant.findOne({266 where: { foo: 'one' }, searchPath: SEARCH_PATH_ONE,267 });268 expect(obj1).to.not.be.null;269 expect(obj1.foo).to.equal('one');270 const restaurantId = obj1.id;271 await Employee.create({272 first_name: 'Restaurant',273 last_name: 'one',274 restaurant_id: restaurantId,275 }, { searchPath: SEARCH_PATH_ONE });276 const obj0 = await Restaurant.findOne({277 where: { foo: 'one' }, searchPath: SEARCH_PATH_ONE, include: [{278 model: Employee, as: 'employees',279 }],280 });281 expect(obj0).to.not.be.null;282 expect(obj0.employees).to.not.be.null;283 expect(obj0.employees.length).to.equal(1);284 expect(obj0.employees[0].last_name).to.equal('one');285 const employees = await obj0.getEmployees({ searchPath: SEARCH_PATH_ONE });286 expect(employees.length).to.equal(1);287 expect(employees[0].last_name).to.equal('one');288 const obj = await Employee.findOne({289 where: { last_name: 'one' }, searchPath: SEARCH_PATH_ONE, include: [{290 model: Restaurant, as: 'restaurant',291 }],292 });293 expect(obj).to.not.be.null;294 expect(obj.restaurant).to.not.be.null;295 expect(obj.restaurant.foo).to.equal('one');296 const restaurant = await obj.getRestaurant({ searchPath: SEARCH_PATH_ONE });297 expect(restaurant).to.not.be.null;298 expect(restaurant.foo).to.equal('one');299 });300 it('should be able to insert and retrieve associated data into the table in schema_two', async function () {301 const Restaurant = this.Restaurant;302 const Employee = this.Employee;303 await Restaurant.create({304 foo: 'two',305 }, { searchPath: SEARCH_PATH_TWO });306 const obj1 = await Restaurant.findOne({307 where: { foo: 'two' }, searchPath: SEARCH_PATH_TWO,308 });309 expect(obj1).to.not.be.null;310 expect(obj1.foo).to.equal('two');311 const restaurantId = obj1.id;312 await Employee.create({313 first_name: 'Restaurant',314 last_name: 'two',315 restaurant_id: restaurantId,316 }, { searchPath: SEARCH_PATH_TWO });317 const obj0 = await Restaurant.findOne({318 where: { foo: 'two' }, searchPath: SEARCH_PATH_TWO, include: [{319 model: Employee, as: 'employees',320 }],321 });322 expect(obj0).to.not.be.null;323 expect(obj0.employees).to.not.be.null;324 expect(obj0.employees.length).to.equal(1);325 expect(obj0.employees[0].last_name).to.equal('two');326 const employees = await obj0.getEmployees({ searchPath: SEARCH_PATH_TWO });327 expect(employees.length).to.equal(1);328 expect(employees[0].last_name).to.equal('two');329 const obj = await Employee.findOne({330 where: { last_name: 'two' }, searchPath: SEARCH_PATH_TWO, include: [{331 model: Restaurant, as: 'restaurant',332 }],333 });334 expect(obj).to.not.be.null;335 expect(obj.restaurant).to.not.be.null;336 expect(obj.restaurant.foo).to.equal('two');337 const restaurant = await obj.getRestaurant({ searchPath: SEARCH_PATH_TWO });338 expect(restaurant).to.not.be.null;339 expect(restaurant.foo).to.equal('two');340 });341 });342 describe('concurency tests', () => {343 it('should build and persist instances to 2 schemas concurrently in any order', async function () {344 const Restaurant = this.Restaurant;345 let restaurauntModelSchema1 = Restaurant.build({ bar: 'one.1' });346 const restaurauntModelSchema2 = Restaurant.build({ bar: 'two.1' });347 await restaurauntModelSchema1.save({ searchPath: SEARCH_PATH_ONE });348 restaurauntModelSchema1 = Restaurant.build({ bar: 'one.2' });349 await restaurauntModelSchema2.save({ searchPath: SEARCH_PATH_TWO });350 await restaurauntModelSchema1.save({ searchPath: SEARCH_PATH_ONE });351 const restaurantsOne = await Restaurant.findAll({ searchPath: SEARCH_PATH_ONE });352 expect(restaurantsOne).to.not.be.null;353 expect(restaurantsOne.length).to.equal(2);354 for (const restaurant of restaurantsOne) {355 expect(restaurant.bar).to.contain('one');356 }357 const restaurantsTwo = await Restaurant.findAll({ searchPath: SEARCH_PATH_TWO });358 expect(restaurantsTwo).to.not.be.null;359 expect(restaurantsTwo.length).to.equal(1);360 for (const restaurant of restaurantsTwo) {361 expect(restaurant.bar).to.contain('two');362 }363 });364 });365 describe('Edit data via instance.update, retrieve updated instance via model.findAll', () => {366 it('should be able to update data via instance update in both schemas, and retrieve it via findAll with where', async function () {367 const Restaurant = this.Restaurant;368 const rnt = await Restaurant.create({ foo: 'one', bar: '1' }, { searchPath: SEARCH_PATH_ONE });369 await Promise.all([370 await rnt.update({ bar: 'x.1' }, { searchPath: SEARCH_PATH_ONE }),371 Restaurant.create({ foo: 'one', bar: '2' }, { searchPath: SEARCH_PATH_ONE })372 .then(rnt => rnt.update({ bar: 'x.2' }, { searchPath: SEARCH_PATH_ONE })),373 Restaurant.create({ foo: 'two', bar: '1' }, { searchPath: SEARCH_PATH_TWO })374 .then(rnt => rnt.update({ bar: 'x.1' }, { searchPath: SEARCH_PATH_TWO })),375 Restaurant.create({ foo: 'two', bar: '2' }, { searchPath: SEARCH_PATH_TWO })376 .then(rnt => rnt.update({ bar: 'x.2' }, { searchPath: SEARCH_PATH_TWO })),377 ]);378 await Promise.all([379 (async () => {380 const restaurantsOne = await Restaurant.findAll({381 where: { bar: 'x.1' },382 searchPath: SEARCH_PATH_ONE,383 });384 expect(restaurantsOne.length).to.equal(1);385 expect(restaurantsOne[0].foo).to.equal('one');386 expect(restaurantsOne[0].bar).to.equal('x.1');387 })(),388 (async () => {389 const restaurantsTwo = await Restaurant.findAll({390 where: { bar: 'x.2' },391 searchPath: SEARCH_PATH_TWO,392 });393 expect(restaurantsTwo.length).to.equal(1);394 expect(restaurantsTwo[0].foo).to.equal('two');395 expect(restaurantsTwo[0].bar).to.equal('x.2');396 })(),397 ]);398 });399 });400 });401 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var storybook = require('storybook-root');2storybook.searchPath('path/to/storybook');3var storybook = require('storybook-root');4storybook.searchPath('path/to/storybook');5var storybook = require('storybook-root');6storybook.searchPath('path/to/storybook');7var storybook = require('storybook-root');8storybook.searchPath('path/to/storybook');9var storybook = require('storybook-root');10storybook.searchPath('path/to/storybook');11var storybook = require('storybook-root');12storybook.searchPath('path/to/storybook');13var storybook = require('storybook-root');14storybook.searchPath('path/to/storybook');15var storybook = require('storybook-root');16storybook.searchPath('path/to/storybook');17var storybook = require('storybook-root');18storybook.searchPath('path/to/storybook');19var storybook = require('storybook-root');20storybook.searchPath('path/to/storybook');21var storybook = require('storybook-root');22storybook.searchPath('path/to/storybook');23var storybook = require('storybook-root');24storybook.searchPath('path/to/storybook');25var storybook = require('storybook-root');26storybook.searchPath('path/to/storybook');27var storybook = require('storybook-root');28storybook.searchPath('path/to/storybook');

Full Screen

Using AI Code Generation

copy

Full Screen

1import { searchPath } from 'storybook-root';2const path = searchPath('path/to/file');3console.log(path);4import { searchPath } from 'storybook-root';5const path = searchPath('path/to/file');6console.log(path);7import { searchPath } from 'storybook-root';8const path = searchPath('path/to/file');9console.log(path);10import { searchPath } from 'storybook-root';11const path = searchPath('path/to/file');12console.log(path);13import { searchPath } from 'storybook-root';14const path = searchPath('path/to/file');15console.log(path);16import { searchPath } from 'storybook-root';17const path = searchPath('path/to/file');18console.log(path);19import { searchPath } from 'storybook-root';20const path = searchPath('path/to/file');21console.log(path);22import { searchPath } from 'storybook-root';23const path = searchPath('path/to/file');24console.log(path);25import { searchPath } from 'storybook-root';26const path = searchPath('path/to/file');27console.log(path);28import { searchPath } from 'storybook-root';29const path = searchPath('path/to/file');30console.log(path);31import { searchPath } from 'storybook-root';32const path = searchPath('path/to/file');33console.log(path);34import { searchPath } from 'storybook-root';35const path = searchPath('path/to/file');36console.log(path);

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const { searchPath } = require('storybook-root');3const path = searchPath('src');4console.log(path);5const path = require('path');6const { searchPath } = require('storybook-root');7const path = searchPath('src', 'components');8console.log(path);9const path = require('path');10const { searchPath } = require('storybook-root');11const path = searchPath('src', 'components', 'Button');12console.log(path);13const path = require('path');14const { searchPath } = require('storybook-root');15const path = searchPath('src', 'components', 'Button', 'index.js');16console.log(path);17const path = require('path');18const { searchPath } = require('storybook-root');19const path = searchPath('src', 'components', 'Button', 'index.js', 'stories');20console.log(path);21const path = require('path');22const { searchPath } = require('storybook-root');23const path = searchPath('src', 'components', 'Button', 'index.js', 'stories', 'Button.stories.js');24console.log(path);25const path = require('path');26const { searchPath } = require('storybook-root');27const path = searchPath('src', 'components', 'Button', 'index.js', 'stories', 'Button.stories.js', 'Button');28console.log(path);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { searchPath } from 'storybook-root';2console.log(searchPath);3import { join } from 'path';4export const searchPath = join(__dirname, 'src');5const { searchPath } = require('storybook-root');6console.log(searchPath);7module.exports = {8};9module.exports = {10};11module.exports = {12};

Full Screen

Using AI Code Generation

copy

Full Screen

1import { searchPath } from 'storybook-root';2const path = searchPath('src', 'components', 'Button', 'index.js');3const searchPath = (rootPath, ...args) => {4 const path = args.join('/');5 const fullPath = `${rootPath}/${path}`;6 return fullPath;7};8export { searchPath };9"scripts": {10}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { searchPath } from 'storybook-root';2searchPath('Test', 'test', () => {3 console.log('Test');4});5import { searchPath } from 'storybook-root';6searchPath('Test', 'test', () => {7 console.log('Test');8});9import { searchPath } from 'storybook-root';10searchPath('Test', 'test', () => {11 console.log('Test');12});13import { searchPath } from 'storybook-root';14searchPath('Test', 'test', () => {15 console.log('Test');16});17import { searchPath } from 'storybook-root';18searchPath('Test', 'test', () => {19 console.log('Test');20});21import { searchPath } from 'storybook-root';22searchPath('Test', 'test', () => {23 console.log('Test');24});25import { searchPath } from 'storybook-root';26searchPath('Test', 'test', () => {27 console.log('Test');28});29import { searchPath } from 'storybook-root';30searchPath('Test', 'test', () => {31 console.log('Test');32});33import { searchPath } from 'storybook-root';34searchPath('Test', 'test', () => {35 console.log('Test');36});

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const storybookRoot = require('storybook-root');3const searchPath = storybookRoot.searchPath('MyComponent');4if (searchPath) {5 console.log(path.resolve(searchPath));6} else {7 console.log('MyComponent.storybook.js does not exist');8}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful