Skocz do zawartości

Dyna

  • Postów

    1107
  • Dołączył

  • Dostępny

  • Wygrane

    25
  • Donacje

    0.00 PLN 
  • Diamenty

    0 [ Podaruj ]

Posty opublikowane przez Dyna

  1. Hej z racji tego że nie znalazłem nigdzie darmowej ulepszarki na stary interfejs postanowiłem napisać i wrzucić.Skrypt jest do rozszerzenia Tampermonkey.

    Ulepszarka posiada:

    • Konfigurację  w której możemy ustawić jakie itemy ma przepalać
    • Automat (samo ulepsza nam item jeżeli mamy 1 lub poniżej wolnego miejsca w torbach)
    • Manual możemy manualnie ulepszyć poprzez jedno kliknięcie
    • Przesuwane menu
    • Podgląd ulepszanego itemku
    • Pasek z kolorem ile w dzisiejszym dniu ulepszyliśmy 
    • Możliwość resetu ilości ulepszonych itemów poprzez kliknięcie prawym przyciskiem w pasek, który pokazuje ile dziś przepaliliśmy itemków.

    Użycie:

    Klikamy prawym przyciskiem na item w torbie lub w eq i klikamy ulepsz, później konfigurujemy jakimi rodzajami itemków ma przepalać.

     

    Filmik do youtube jak wygląda ulepszarka

     

     

    // ==UserScript==
    // @name         Ulepszarka[SI]
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       Dyna
    // @match        *://*.margonem.pl/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=margonem.pl
    // @grant        GM_setValue
    // @grant        GM_getValue
    // ==/UserScript==
    g.loadQueue.push({
        fun: () => {
            function CanTry(){
                if(hero.id != undefined)siUlepszarka();
                else setTimeout(CanTry,100);
            }CanTry();
    
        }
    });
    
    
    //
    let intervalUlepszarka;
    //
    
    function siUlepszarka(){
        // Dane w tamperze
        let posXY = '100px,100px';
        let item_ulepszarka = undefined,work = false;
        let helmy = false,pierscienie = false,naszyjniki = false,rekawice = false,zbroje = false,buty = false;
        let jednoreczne = false,dwureczne = false,poltoreczne = false;
        let rozdzki = false,dystansowe = false;
        let pomocnicze = false,orby = false,strzaly = false,tarcze = false;
        let limit = 0,automatic = false, uni = false;
    
        let dataWordl = {
            pos: posXY,
            limit: limit,
        };
        let dataHero = {
            helmy: helmy,
            pierscienie: pierscienie,
            naszyjniki: naszyjniki,
            rekawice: rekawice,
            zbroje: zbroje,
            buty: buty,
            jednoreczne: jednoreczne,
            dwureczne: dwureczne,
            poltoreczne: poltoreczne,
            rozdzki: rozdzki,
            dystansowe: dystansowe,
            pomocnicze: pomocnicze,
            orby: orby,
            item_ulepszarka: item_ulepszarka,
            work: work,
            automatic: automatic,
            uni:uni,
            strzaly:strzaly,
            tarcze:tarcze,
    
    
        }
        function updateGM(){
            dataWordl.pos = posXY;
            dataWordl.limit = limit;
            dataHero.helmy = helmy;
            dataHero.pierscienie = pierscienie;
            dataHero.naszyjniki = naszyjniki;
            dataHero.rekawice = rekawice;
            dataHero.zbroje = zbroje;
            dataHero.buty = buty;
            dataHero.jednoreczne = jednoreczne;
            dataHero.dwureczne = dwureczne;
            dataHero.poltoreczne = poltoreczne;
            dataHero.rozdzki = rozdzki;
            dataHero.dystansowe = dystansowe;
            dataHero.pomocnicze = pomocnicze;
            dataHero.orby = orby;
            dataHero.item_ulepszarka = item_ulepszarka;
            dataHero.work = work;
            dataHero.automatic = automatic;
            dataHero.uni = uni;
            dataHero.strzaly = strzaly;
            dataHero.tarcze = tarcze;
            GM_setValue('UlepszarkaSiDyna' + g.worldConfig.getWorldName(),dataWordl);
            GM_setValue('UlepszarkaSiDynaH' + hero.id,dataHero);
        }
        let GM = GM_getValue('UlepszarkaSiDyna' + g.worldConfig.getWorldName());
        let GMhero = GM_getValue('UlepszarkaSiDynaH' + hero.id);
        if(!GM || !GMhero){
            updateGM();
        }else{
            posXY = GM.pos;
            limit = GM.limit;
            helmy = GMhero.helmy;
            pierscienie = GMhero.pierscienie;
            naszyjniki = GMhero.naszyjniki;
            rekawice = GMhero.rekawice;
            zbroje = GMhero.zbroje;
            buty = GMhero.buty;
            jednoreczne = GMhero.jednoreczne;
            dwureczne = GMhero.dwureczne;
            poltoreczne = GMhero.poltoreczne;
            rozdzki = GMhero.rozdzki;
            dystansowe = GMhero.dystansowe;
            pomocnicze = GMhero.pomocnicze;
            orby = GMhero.orby;
            item_ulepszarka = GMhero.item_ulepszarka;
            work = GMhero.work;
            automatic = GMhero.automatic;
            uni = GMhero.uni;
            strzaly = GMhero.strzaly;
            tarcze = GMhero.tarcze;
            if(automatic == true && work == true){
                intervalUlepszarka = setInterval(checkSlot,500);
            }
        }
        // Element style
        var style = document.createElement('style');
        style.innerText = `
        .global-box-d{
            position: fixed;
            width: 100px;
            height: 100px;
            background: #232323;
            left: 100px;
            top: 200px;
            box-shadow: 0 0 0 1px #010101, 0 0 0 2px #888, 0 0 0 3px #0c0d0d, 2px 2px 3px 3px rgba(12, 13, 13, .4);
            user-select: none;
            font-family: sans-serif;
            font-size: 13px;
            z-index: 333;
        }
        .item-square-d{
            width: 32px;
            height: 32px;
            border: 1px solid blue;
            margin-left: 35px;
            margin-top: 10px;
        }
        .buttonUlepsz-d{
            width: 80px;
            height: 15px;
            box-shadow: 0px 0px 3px 0px #000000;
            margin-left: 12px;
            margin-top: 10px;
            color: black;
            /* font-size: 10px; */
            text-align-last: center;
            background: #898989;
            font-weight: bold;
        }
    
        .buttonUlepsz-d:active{
            background: #CDCDCD;
        }
        .lineLimit-d{
            width: 80px;
            height: 10px;
            background: red;
            margin-left: 10px;
            margin-top: 8px;
            border: 1px solid black;
        }
        .in-line-d{
            height: 10px;
            background: green;
        }
        .activ-d{
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: red;
            margin-left: 82px;
            margin-top: -13px;
            border: 1px solid black;
            cursor: pointer;
        }
        .settingsBox-d{
            width: 100px;
            height: 460px;
            background: #232323;
            margin-top: -10px;
            display: none;
            box-shadow: 0 0 0 1px #010101, 0 0 0 2px #888, 0 0 0 3px #0c0d0d, 2px 2px 3px 3px rgba(12, 13, 13, .4);
    
        }
        .item-list-d{
            display: flex;
            margin-left: 10px;
            margin-bottom: 10px;
            width: 80px;
            height: 17px;
            box-shadow: 0 0 0 1px #010101, 0 0 0 2px #888, 0 0 0 3px #0c0d0d, 2px 2px 3px 3px rgba(12, 13, 13, .4);
            justify-content: center;
            align-items: center;
        }
        .small-ulepsz-d{
            position: fixed;
            background: #071d5f;
            color: #ff0;
            font: 12px Georgia, serif;
            width: 79px;
            height: 30px;
            border: 1px solid #37a8a4;
            padding: 2px 0;
            margin: 0;
            z-index: 999;
            text-align: center;
            display:none;
        }
        .p-d{
            width: 79px;
            background: #37a8a4;
            margin-top: 1px;
            margin-bottom: 2px;
            height: 1px;
        }
        `;
        document.body.appendChild(style);
    
        const globalBox = document.createElement('div');
        globalBox.style.left = posXY.split(',')[0];
        globalBox.style.top = posXY.split(',')[1];
        globalBox.classList.add('global-box-d');
        document.body.appendChild(globalBox);
    
        let currentX,currentY,isDragging = false;
        globalBox.addEventListener('mousedown',(e)=>{
            isDragging = true;
            currentX = e.clientX - globalBox.getBoundingClientRect().left;
            currentY = e.clientY - globalBox.getBoundingClientRect().top;
        })
        document.addEventListener('mousemove', (e) =>{
            if(isDragging){
              const x = e.clientX - currentX;
              const y = e.clientY - currentY;
              globalBox.style.left = `${x}px`;
              globalBox.style.top = `${y}px`;
            }
        });
        document.addEventListener('mouseup',() =>{
            if(isDragging){
              isDragging = false;
              posXY = globalBox.style.left + ',' + globalBox.style.top;
              updateGM();
            }
        })
    
        // Funkcja do tworzenia itemu
        function generateItem(item) {
            let tip = itemTip(item);
            let html = "";
            html += `<div class="item" ctip="t_item" tip="${tip.replace(/"/g, '&quot;')}">`;
            if(item.stat.indexOf("legendary") > -1) html += `<div class="itemHighlighter t_leg"></div>`;
            if(item.stat.indexOf("heroic") > -1) html += `<div class="itemHighlighter t_her"></div>`;
            if(item.stat.indexOf("unique") > -1) html += `<div class="itemHighlighter t_uni"></div>`;
            if(item.stat.indexOf("upgraded") > -1) html += `<div class="itemHighlighter t_upg"></div>`;
            html += '<img src="https://micc.garmory-cdn.cloud/obrazki/itemy/'+item.icon+'" tip="'+tip.replace(/"/g, '&quot;')+'" ctip="item">';
    
            html += `</div>`;
            return html;
          }
        const itemSquare = document.createElement('div');
        itemSquare.classList.add('item-square-d');
        globalBox.appendChild(itemSquare);
        if(item_ulepszarka != undefined){
            itemSquare.innerHTML = generateItem(item_ulepszarka);
            itemSquare.style.border = 'none';
        }
    
        const buttonUlepsz = document.createElement('div');
        buttonUlepsz.classList.add('buttonUlepsz-d');
        buttonUlepsz.innerHTML = 'Ulepsz';
        globalBox.appendChild(buttonUlepsz);
        buttonUlepsz.addEventListener('click',()=>{checkItem()})
    
        const lineLimit = document.createElement('div');
        lineLimit.classList.add('lineLimit-d');
        lineLimit.setAttribute('tip','Ulepszono '+limit +'/2000')
        globalBox.appendChild(lineLimit);
        lineLimit.addEventListener('contextmenu',()=>{
            limit = 0;
            lineLimit.setAttribute('tip','Ulepszono '+limit +'/2000')
            inLine.style.width = s(limit) + 'px';
            updateGM();
        })
    
        const inLine = document.createElement('div');
        inLine.classList.add('in-line-d');
        lineLimit.appendChild(inLine);
        inLine.style.width = s(limit) +'px';
        // Wzor na ustawienie ile lini zielonej ma być
        function s(x){
            let sume = x * 0.04
            return sume
        }
    
    
        // Otworzone menu settings
        let isSettingsOpen = false;
        const settings = document.createElement('div');
        settings.innerHTML = '⚙️';
        settings.style.marginLeft = '4px';
        settings.style.marginTop = '-86px';
        settings.style.width = '20px';
        globalBox.appendChild(settings);
        settings.addEventListener('mousedown',()=>{
            settings.style.cursor = 'pointer';
        })
        settings.addEventListener('click',()=>{
            isSettingsOpen = !isSettingsOpen;
            if(isSettingsOpen)settingsBox.style.display = 'block';
            else settingsBox.style.display = 'none';
        })
    
        const activ = document.createElement('div');
        activ.classList.add('activ-d');
        if(work == true) activ.style.background = 'green';
        else activ.style.background = 'red';
        globalBox.appendChild(activ);
        activ.addEventListener('click',()=>{
            work=!work;
            if(work == true) activ.style.background = 'green';
            else activ.style.background = 'red';
            message('Stan Ulepszarki ' + work)
            updateGM();
            if(automatic == true && work == true){
                clearInterval(intervalUlepszarka);
                intervalUlepszarka = setInterval(checkSlot,500);
            }
        })
    
        const ath = document.createElement('div');
        ath.innerHTML = 'Autor: Dyna';
        ath.style.marginTop = '75px';ath.style.fontSize = '10px';ath.style.marginLeft = '20px';
        globalBox.appendChild(ath);
    
        const settingsBox = document.createElement('div');
        settingsBox.classList.add('settingsBox-d');
        globalBox.appendChild(settingsBox);
    
    
        // Elementy do settings
        for(let i = 0; i < 17; i++){
            let type_item = ['Hełmy','Pierścienie','Naszyjniki','Rękawice','Zbroje','Buty','Jednoręczne','Dwuręczne','Poltoręczne','Różdżki','Dystansowe','Pomocnicze','Orby','Strzaly','Tarcze','Unikaty','Automat'];
            let items = [helmy,pierscienie,naszyjniki,rekawice,zbroje,buty,jednoreczne,dwureczne,poltoreczne,rozdzki,dystansowe,pomocnicze,orby,strzaly,tarcze,uni,automatic];
            let color = '';
            //console.log(items[i])
            const item = document.createElement('div');
            item.innerHTML = type_item[i];
            item.classList.add('item-list-d')
            if(i == 0) item.style.marginTop = '15px';
            if(items[i] == true) color = '#0af10a1c'; // green
            else color = '#ff000047'; // red
            item.style.background = color;
    
            settingsBox.appendChild(item);
            item.addEventListener('click',()=>{
                if(i == 0){
                    helmy = !helmy;
                    if(helmy == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 1){
                    pierscienie = !pierscienie;
                    if(pierscienie == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 2){
                    naszyjniki = !naszyjniki;
                    if(naszyjniki == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 3){
                    rekawice = !rekawice;
                    if(rekawice == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 4){
                    zbroje = !zbroje;
                    if(zbroje == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 5){
                    buty = !buty;
                    if(buty == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 6){
                    jednoreczne = !jednoreczne;
                    if(jednoreczne == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 7){
                    dwureczne = !dwureczne;
                    if(dwureczne == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 8){
                    poltoreczne = !poltoreczne;
                    if(poltoreczne == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 9){
                    rozdzki = !rozdzki;
                    if(rozdzki == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 10){
                    dystansowe = !dystansowe;
                    if(dystansowe == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 11){
                    pomocnicze = !pomocnicze;
                    if(pomocnicze == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }else if(i == 12){
                    orby = !orby;
                    if(orby == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }
                else if(i == 13){
                    strzaly = !strzaly;
                    if(strzaly == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }
                else if(i == 14){
                    tarcze = !tarcze;
                    if(tarcze == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }
                else if(i == 15){
                    uni = !uni;
                    if(uni == true) item.style.background = '#0af10a1c';
                    else item.style.background = '#ff000047';
                }
                else if(i == 16){
                    automatic = !automatic;
                    if(automatic == true){
                        item.style.background = '#0af10a1c';
                        if(automatic == true && work == true){
                            clearInterval(intervalUlepszarka);
                            intervalUlepszarka = setInterval(checkSlot,500);
                        }
                    }
                    else item.style.background = '#ff000047';
                }
                updateGM();
            })
        }
        // Tablica z typami itemków możliwymi do ulepszenia
        const typItem = ['Typ:  Jednoręczne','Typ:  Półtoraręczne','Typ:  Dwuręczne','Typ:  Różdżki','Typ:  Dystansowe','Typ:  Orby magiczne','Typ:  Pomocnicze','Typ:  Tarcze','Typ:  Hełmy','Typ:  Pierścienie','Typ:  Naszyjniki','Typ:  Rękawice','Typ:  Zbroje','Typ:  Buty','Typ:  Strzały'];
    
        // Dodawanie itemku do ulepszarki
        const buttonUlepszItem = document.createElement('div');
        buttonUlepszItem.classList.add('small-ulepsz-d');
        document.body.appendChild(buttonUlepszItem);
        const txtUlepszItem = document.createElement('div');
        txtUlepszItem.innerHTML = 'Ulepsz';
        buttonUlepszItem.appendChild(txtUlepszItem);
        txtUlepszItem.addEventListener('mouseover',()=>{txtUlepszItem.style.background = '#267aa3'});
        txtUlepszItem.addEventListener('mouseleave',()=>{txtUlepszItem.style.background = '#071d5f'});
        const p = document.createElement('div');
        p.classList.add('p-d')
        buttonUlepszItem.appendChild(p);
        const txtUlepszItem2 = document.createElement('div');
        txtUlepszItem2.innerHTML = 'Zamknij';
        buttonUlepszItem.appendChild(txtUlepszItem2);
        txtUlepszItem2.addEventListener('mouseover',()=>{txtUlepszItem2.style.background = '#267aa3'});
        txtUlepszItem2.addEventListener('mouseleave',()=>{txtUlepszItem2.style.background = '#071d5f'});
        txtUlepszItem2.addEventListener('click',()=>{buttonUlepszItem.style.display = 'none';})
    
        document.addEventListener('contextmenu',(e)=>{
            const targetItem = e.target.closest('.item');
            if(!targetItem){
              if(buttonUlepszItem.style.display == 'block'){
                buttonUlepszItem.style.display = 'none';
              }
              return;
            }
            e.preventDefault();
    
            const itemId = targetItem.id.replace("item", "");
            for(i = 0; i<typItem.length; i ++){
                if(g.item[itemId].tip.includes(typItem[i])){
                    const mouse_x = e.clientX - 31;
                    const mouse_y = e.clientY - 6;
                    buttonUlepszItem.style.left = mouse_x + 'px';
                    buttonUlepszItem.style.top = mouse_y + 'px';
                   // console.log(g.item[itemId])
                    buttonUlepszItem.style.display = 'block'
    
                }
            }
            txtUlepszItem.addEventListener('click',()=>{
                itemSquare.innerHTML = generateItem(g.item[itemId]);
                itemSquare.style.border = 'none';
                buttonUlepszItem.style.display = 'none';
    
                item_ulepszarka = g.item[itemId];
                updateGM();
            })
    
    
        })
    
        // Wszystko do ulepszania itemku niżej
    
        // Sprawdza czy mamy 2 lub mniej miejsca w torbach i nie mamy walki jeśli tak odpala  checkItem
        function checkSlot(){
            if(work == false) clearInterval(intervalUlepszarka)
            if(g.freeSlots <= 2 && !g.battle) checkItem();
        }
        var rzem = document.querySelector("#crafting");
        let myEq = []; // Tablica, ktora przechowuje nasze eq aby nam nie dodało itemku z eq w razie ewentualnej jakiejś zmiany z strony garmory
        let itemForUpgrade = [];
        function checkItem(){
            if(limit >= 1999){
                message('Osiągnięto limit')
                return;
            }
            clearInterval(intervalUlepszarka);
            if(item_ulepszarka == undefined){
                message('Brak itemku do ulepszania');
                return;
            }
            for(let i in g.eqItems)myEq.push(g.eqItems[i].id)
            for(let i in g.item){
                let item = g.item[i];
                if((uni == true || !item.tip.includes('unikatowy')) &&
            !myEq.includes(item.id)
            && g.crafting.opened == false
            && item.loc === 'g'
            && item.id != item_ulepszarka.id
            && item.enhancementPoints != undefined
            && item.itemTypeName !== "heroic"
            && item.itemTypeName !== "upgraded"
            && item.itemTypeName !== "legendary"
            && (item.tip.includes('Związany z właścicielem na stałe') || item.tip.includes('Wiąże po założeniu'))
            && !item.tip.includes('Związany z właścicielem<br>')
            && (jednoreczne == true  || !item.tip.includes('Typ:  Jednoręczne'))
            && (poltoreczne == true  || !item.tip.includes('Typ:  Półtoraręczne'))
            && (dwureczne == true  || !item.tip.includes('Typ:  Dwuręczne'))
            && (rozdzki== true  || !item.tip.includes('Typ:  Różdżki'))
            && (dystansowe == true  || !item.tip.includes('Typ:  Dystansowe'))
            && (orby == true  || !item.tip.includes('Typ:  Orby magiczne'))
            && (pomocnicze == true  || !item.tip.includes('Typ:  Pomocnicze'))
            && (tarcze == true  || !item.tip.includes('Typ:  Tarcze'))
            && (helmy == true  || !item.tip.includes('Typ:  Hełmy'))
            && (pierscienie == true  || !item.tip.includes('Typ:  Pierścienie'))
            && (naszyjniki == true  || !item.tip.includes('Typ:  Naszyjniki'))
            && (rekawice == true  || !item.tip.includes('Typ:  Rękawice'))
            && (zbroje == true  || !item.tip.includes('Typ:  Zbroje'))
            && (strzaly == true  || !item.tip.includes('Typ:  Strzały'))
            && (buty == true  || !item.tip.includes('Typ:  Buty')))
            {
                if(!itemForUpgrade.includes(item.id))itemForUpgrade.push(item.id);
    
            }
            }
            //console.log(itemForUpgrade)
            if(itemForUpgrade == 0){
                message('Brak itemków do ulepszania');
                return;
            }
            openCrafting();
        }
    
        function openCrafting(){
            if(g.crafting.opened == false){
                rzem.style.visibility = 'hidden';
                _g("artisanship&action=open");
            }
            setTimeout(() => { // Trzeba dodać setTimeout ponieważ bez wykrywa że okno jest zamknięte nawet jeśli jest otwarte
                if(g.crafting.opened == true){
                    addSlotItem();
                }else{
                    openCrafting();
                }
            }, 250);
    
        }
    
        function addSlotItem(){
            for(let i in g.item){
                const item = g.item[i];
                if(item.id == item_ulepszarka.id && item.loc == 'g'){
                    g.crafting.enhancement.onClickInventoryItem(g.item[item_ulepszarka.id]);
                    //console.log(g.crafting.enhancement.selectedEnhanceItem)
                }
            }
            _g(`enhancement&action=progress&item=${item_ulepszarka.id}&ingredients=` + itemForUpgrade.join(","));
            limit = g.enhanceUsages.count;
            setTimeout(() => { // Tak jak wcześniej setTimeout aby zapisać dane ponieważ nie są po 0.0 aktualizowane i nie da  się ich odczytać
                limit = g.enhanceUsages.count;
                lineLimit.setAttribute('tip','Ulepszono '+limit +'/2000')
                //console.log('Limit dwa: ' + limit)
                itemForUpgrade = [];
                canClose();
            }, 500);
        }
        function canClose(){
            if(g.crafting.opened == true){
                g.crafting.windowClose();
                g.crafting.closeAll();
                inLine.style.width = s(limit) + 'px';
                lineLimit.setAttribute('tip','Ulepszono '+limit +'/2000')
                updateGM();
                setTimeout(() => {
                    intervalUlepszarka = setInterval(checkSlot,500);
                }, 5000);
                
                rzem.style.visibility = 'visible';
            }else{
                setTimeout(canClose,100);
            }
        }
    };
    
    
    

     

  2. @weegx Hej margonem blokuje logowanie większej ilości kont z jednego ip jak i również bardzo dużo adresów ip zablkowało więc polecał bym ci kupić adresy proxy z jakiejś strony jest to koszt około 1/2 dolary na miesiąc łatwo możesz tego użyć dodając wtyczkę do chrome o nazwie Foxyproxy chrome i tam wpisujesz adres ip port login jak i hasło 🙂

  3. @Hiszi Przeglądarka wie ze używasz webdrivera dlatego że nie masz ustawionych parametrów chromium/chrome.Python w połączeniu z selenium jest dobrym rozwiązaniem do automatyzacji przeglądarki, możesz również pomyśleć o node.js  z biblioteką puppeteer.

    Tutaj daje ci kod który  musisz dołączyć do opcji przeglądarki w pythonie.

    chromium_options = webdriver.ChromeOptions()
    
    chromium_options.add_argument("--disable-blink-features")
    chromium_options.add_argument("--disable-blink-features=AutomationControlled")

     

  4. Witam wrzucam poniżej bocika własnego autorstwa na herosa Opentany Paladyn.Aby wszystko funkcjonowało musicie zainstalować 2 skrypty, które są poniżej i musicie miec w ustawieniach w grze ODZNACZONE automatyczne przechodzenie przez przejścia.Bot startuje od andarum i chodzi w pętli, jeśli wyłączycie przeglądarkę podczas szukania herosa i włączycie to musicie zacząć od nowa, ponieważ bot ma zapisywanie w sessionStorage.Miłej gry 🙂

     

    // ==UserScript==
    // @name         Bot na herosa Opentany Paladyn [85lvl]
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       Dyna
    // @match        http*://*.margonem.pl/
    // @match        http*://margonem.*/*
    // @match        http*://www.margonem.*/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=margonem.pl
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
        
        if (!sessionStorage.getItem('step')) {
            sessionStorage.setItem('step', '0');
        }
        let arrayXY = [];
    
        function opentany(event) {
            var element = document.querySelector("#ground");
            let step = sessionStorage.getItem('step'); 
    
            if (step === '0' && map.id == 180) {
                arrayXY = [828, 1556];
                element.dispatchEvent(event);
            }
            if (step === '0' && hero.x == 24 && hero.y == 45 && map.id == 180) {
                console.log('step 1');
                sessionStorage.setItem('step', '1');
            }
            if (step === '1' && map.id == 180) {
                arrayXY = [1392, 756];
                element.dispatchEvent(event);
            }
            if (step === '1' && hero.x === 44 && hero.y === 29 && map.id == 180) {
                sessionStorage.setItem('step', '2');
            }
            if(step === '2' && map.id == 180){
                arrayXY = [1176, 752];
                element.dispatchEvent(event);
            }
            if(step === '2' && hero.x === 35 && hero.y === 20 && map.id == 180){
                sessionStorage.setItem('step', '3');
            }
            if(step === '3' && map.id == 180){
                arrayXY = [1604, 492];
                element.dispatchEvent(event);
            }
            if(step === '3' && hero.x == 22 && hero.y == 20 && map.id == 6608){
                sessionStorage.setItem('step', '4');
            }
            if(step === '4' && map.id == 6608){
                arrayXY = [780, 600];
                element.dispatchEvent(event);
            }
            if(step === '4' && hero.x == 22 && hero.y == 15 && map.id == 6608){
                sessionStorage.setItem('step', '5');
            }
            if(step === '5' && map.id == 6608){
                arrayXY = [872, 600];
                element.dispatchEvent(event);
            }
            if(step === '5' && hero.x == 25 && hero.y == 15 && map.id == 6608){
                sessionStorage.setItem('step', '6');
            }
            if(step === '6' && map.id == 6608){
                arrayXY = [1380, 712];
                element.dispatchEvent(event);
            }
            if(step === '6' &&  map.id == 6610){
                sessionStorage.setItem('step', '7');
            }
            if(step === '7' && map.id == 6610){
                arrayXY = [348, 788];
                element.dispatchEvent(event);
            }
            if(step === '7' && hero.x == 9 && hero.y == 21 && map.id == 6610){
                sessionStorage.setItem('step', '8');
            }
            if(step === '8' && map.id == 6610){
                arrayXY = [732, 1164];
                element.dispatchEvent(event);
            }
            if(step === '8' && map.id == 6611){
                sessionStorage.setItem('step', '99');
            }
            if(step === '99' && map.id == 6611){
                arrayXY = [1888, 552];
                element.dispatchEvent(event);
            }
            if(step === '99' && map.id == 6612){
                sessionStorage.setItem('step', '100');
            }
            if(step === '100' && map.id == 6612){
                arrayXY = [704, 1444];
                element.dispatchEvent(event);
            }
            if(step === '100' && hero.x == 20 && hero.y == 42 && map.id == 6612){
                sessionStorage.setItem('step', '101');
            }
            if(step === '101' && map.id == 6612){
                arrayXY = [1888, 1516];
                element.dispatchEvent(event);
            }
            if(step === '101' && hero.x == 57 && hero.y == 44 && map.id == 6612){
                sessionStorage.setItem('step', '102');
            }
            if(step === '102' && map.id == 6612){
                arrayXY = [1584, 456];
                element.dispatchEvent(event);
            }
            if(step === '102' && hero.x == 47 && hero.y == 11 && map.id == 6612){
                sessionStorage.setItem('step', '103');
            }
            if(step === '103' && map.id == 6612){
                arrayXY = [96, 552];
                element.dispatchEvent(event);
            }
            if(step === '103' && map.id == 6611){
                sessionStorage.setItem('step', '9');
            }
            if(step === '9' && map.id == 6611){
                arrayXY = [1488, 756];
                element.dispatchEvent(event);
            }
            if(step === '9' && hero.x == 44 && hero.y == 20 && map.id == 6611){
                sessionStorage.setItem('step', '10');
            }
            if(step === '10' && map.id == 6611){
                arrayXY = [1056, 720];
                element.dispatchEvent(event);
            }
            if(step === '10' && hero.x == 31 && hero.y == 19 && map.id == 6611){
                sessionStorage.setItem('step', '11');
            }
            if(step === '11' && map.id == 6611){
                arrayXY = [212, 100];
                element.dispatchEvent(event);
            }
            if(step === '11' && map.id == 6609){
                sessionStorage.setItem('step', '12');
            }
            if(step === '12' && map.id == 6609){
                arrayXY = [548, 900];
                element.dispatchEvent(event);
            }
            if(step === '12' && hero.x == 15 && hero.y == 25 && map.id == 6609){
                sessionStorage.setItem('step', '13');
            }
            if(step === '13' && map.id == 6609){
                arrayXY = [212, 1184];
                element.dispatchEvent(event);
            }
            if(step === '13' && map.id == 6611){
                sessionStorage.setItem('step', '14');
            }
            if(step === '14' && map.id == 6611){
                arrayXY = [976, 1228];
                element.dispatchEvent(event);
            }
            if(step === '14' && map.id === 6616){
                sessionStorage.setItem('step', '15');
            }
            if(step === '15' && map.id == 6616){
                arrayXY = [1384, 764];
                element.dispatchEvent(event);
            }
            if(step === '15' && hero.x == 41 && hero.y == 20 && map.id == 6616){
                sessionStorage.setItem('step', '16');
            }
            if(step === '16' && map.id == 6616){
                arrayXY = [1384, 1708];
                element.dispatchEvent(event);
            }
            if(step === '16' && hero.x == 41 && hero.y == 50 && map.id == 6616){
                sessionStorage.setItem('step', '17');
            }
            if(step === '17' && map.id == 6616){
                arrayXY = [1092, 1692];
                element.dispatchEvent(event);
            }
            if(step === '17' && map.id === 6626){
                sessionStorage.setItem('step', '18');
            }
            if(step === '18' && map.id == 6626){
                arrayXY = [1044, 1244];
                element.dispatchEvent(event);
            }
            if(step === '18' && map.id === 6625){
                sessionStorage.setItem('step', '19');
            }
            if(step === '19' && map.id == 6625){
                arrayXY = [560, 1344];
                element.dispatchEvent(event);
            }
            if(step === '19' && hero.x == 15 && hero.y == 38 && map.id == 6625){
                sessionStorage.setItem('step', '20');
            }
            if(step === '20' && map.id == 6625){
                arrayXY = [1244, 1100];
                element.dispatchEvent(event);
            }
            if(step === '20' && hero.x == 37 && hero.y == 31 && map.id == 6625){
                sessionStorage.setItem('step', '21');
            }
    
            if(step === '21' && map.id == 6625){
                arrayXY = [1196, 132];
                element.dispatchEvent(event);
            }
            if(step === '21' &&  map.id == 6624){
                sessionStorage.setItem('step', '22');
            }
            if(step === '22' && map.id == 6624){
                arrayXY = [992, 904];
                element.dispatchEvent(event);
            }
            if(step === '22' && hero.x == 29 && hero.y == 25 && map.id == 6624){
                sessionStorage.setItem('step', '23');
            }
            if(step === '23' && map.id == 6624){
                arrayXY = [616, 1228];
                element.dispatchEvent(event);
            }
            if(step === '23' && hero.x == 17 && hero.y == 34 && map.id == 6624){
                sessionStorage.setItem('step', '24');
            }
            if(step === '24' && map.id == 6624){
                arrayXY = [796, 1588];
                element.dispatchEvent(event);
            }
            if(step === '24'  && map.id == 1730){
                sessionStorage.setItem('step', '25');
            }
            if(step === '25' && map.id == 1730){
                arrayXY = [2276, 1644];
                element.dispatchEvent(event);
            }
            if(step === '25' && hero.x == 69 && hero.y == 48 && map.id == 1730){
                sessionStorage.setItem('step', '26');
            }
            if(step === '26' && map.id == 1730){
                arrayXY = [1624, 960];
                element.dispatchEvent(event);
            }
            if(step === '26' && hero.x == 49 && hero.y == 26 && map.id == 1730){
                sessionStorage.setItem('step', '27');
            }
            if(step === '27' && map.id == 1730){
                arrayXY = [436, 2136];
                element.dispatchEvent(event);
            }
            if(step === '27' && map.id == 1387){
                sessionStorage.setItem('step', '28');
            }
            if(step === '28' && map.id == 1387){
                arrayXY = [1392, 1048];
                element.dispatchEvent(event);
            }
            if(step === '28' && hero.x == 41 && hero.y == 29 && map.id == 1387){
                sessionStorage.setItem('step', '29');
            }
            if(step === '29' && map.id == 1387){
                arrayXY = [908, 1892];
                element.dispatchEvent(event);
            }
            if(step === '29' && hero.x == 26 && hero.y == 56 && map.id == 1387){
                sessionStorage.setItem('step', '30');
            }
            if(step === '30' && map.id == 1387){
                arrayXY = [488, 1728];
                element.dispatchEvent(event);
            }
            if(step === '30' && hero.x == 13 && hero.y == 50 && map.id == 1387){
                sessionStorage.setItem('step', '31');
            }
            if(step === '31' && map.id == 1387){
                arrayXY = [2082, 297];
                element.dispatchEvent(event);
            }
            if(step === '31' && map.id == 180){
                sessionStorage.setItem('step', '0');
            }
    
        }
        setTimeout(function () {
        setInterval(function () {
            let captcha =  document.querySelector("#pre-captcha > div");
            let cptch = document.querySelector("#captcha > div");
            if (hero.isMoving === 4 && !g.dead === true && !g.battle === true && captcha == null && cptch == null) { 
                opentany(new MouseEvent('click', {
                    bubbles: true,
                    cancelable: true,
                    clientX: arrayXY[0],
                    clientY: arrayXY[1]
                }));
            }
        }, 500);
    
        }, 1000);
    })();
    // ==UserScript==
    // @name         Full Screen
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       Dyna
    // @match        http*://*.margonem.pl/
    // @match        http*://margonem.*/*
    // @match        http*://www.margonem.*/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=margonem.pl
    // @grant        none
    // ==/UserScript==
    
    var style=document.createElement('style');
    style.textContent=`
    #base {
        height: calc(100% - 25px) !important;
        width: calc(100% - 274px) !important;
        z-index: 1
      }
      #centerbox2,
      #centerbox {
        left: 50px !important;
        height: 100% !important;
        top: 100px !important;
        width: calc(100% - 276px) !important
      }
      #panel,#bottombar,#stats,#corners,#base3,#pvpmode,#life1{
        display: none;
        }
        #botloc {
            position: fixed !important;
            top: 1px !important;
        }
    `;
    document.head.appendChild(style);
    let c = document.querySelector("#corners");
    let l = document.querySelector("#logoutbut");
    let p = document.querySelector("#premiumbut");
    let g = document.querySelector("#gold");
    let ch = document.querySelector("#bchat")
    let l1 = document.querySelector("#leorn1");
    let l2 = document.querySelector("#leorn2");
    let ni = document.querySelector("#ni-promo");
    let life = document.querySelector("#life2")
    let exp = document.querySelector("#exp2");
    let m = document.querySelector("#mailnotifier");
    let lagmeter = document.querySelector("#lagmeter");
    c.remove(); l.remove(); p.remove(); g.remove(); ch.remove(); l1.remove();l2.remove();ni.remove();life.remove(); exp.remove();m.remove();lagmeter.remove();

     

  5. Hej wrzucam tutaj dodatek mojego autorstwa, który dodaje automatycznie śmieci do sklepu jeśli mamy otworzony sklep 🙂 Bardzo przyjemny skrypcik

    Npc musi skupować wszystkie itemy 

     

    // ==UserScript==
    // @name         Auto Sprzedawanie
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  Auto Sprzedawanie
    // @author       Dyna
    // @match        http*://*.margonem.pl/
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=margonem.pl
    // @grant        none
    // ==/UserScript==
    
    //Dodatek ktory sam dodaje itemy do sprzedawania u kupca który skupuje wszystkie itemy jeśli nie jesteśmy Trop/Lowca to sprzedaje strzały
    
    (function() {
        'use strict';
    let ab = localStorage.getItem('AutoSprzedawanie');  
    const posnick = document.querySelector("#panel");
    // Tworzenie przycisku
    const box = document.createElement('div');
    box.style.position = 'absolute';
    box.style.top = '2px';
    box.style.left = '13px'
    box.style.width = '20px';
    box.style.height = '20px';
    box.style.border = '3px solid rgb(83 83 83)'
    box.style.borderRadius = '14px'
    box.style.backgroundColor = 'red';
    box.style.cursor = 'pointer';
    posnick.appendChild(box);
    
    if(ab === 'true'){
        box.style.backgroundColor = 'green';
    }else{
        box.style.backgroundColor = 'red';
    }
    
    box.addEventListener('click', ()=>{
        let lc = localStorage.getItem('AutoSprzedawanie') === 'true';
        localStorage.setItem('AutoSprzedawanie', !lc);
        if(!lc){
          box.style.backgroundColor = 'green';
        }else{
          box.style.backgroundColor = 'red';
        }
      });
    
    
    // Skrypt
    function autoseller(){
    let x = document.querySelector("#shop_store"); 
    let b = document.querySelector("#shop_sell");
    let lc = localStorage.getItem('AutoSprzedawanie') === 'true';
    let all = document.querySelector("#shop_desc").textContent;
    let cfgProf;
    //Sprawdzanie profesji
    if(hero.prof != 't' || hero.prof != 'l'){
        cfgProf = ''
    }else{
        cfgProf = 'Typ:  Strzały'
    }
    if (lc && x.innerHTML.trim() !== "" && all.includes('wszystko') && b.innerHTML.trim().length == 0) {
        for (let i in g.item)
        {
            let a = g.item[i]
            let k = g.item[i].id
            if(a.loc === 'g' 
            && (a.tip.includes(cfgProf) || a.tip.includes('Wiąże po założeniu'))
            && !a.tip.includes('legendarny')
            && !a.tip.includes('heroiczny')
            && !a.tip.includes('unikatowy')
            && !a.tip.includes('Typ:  Torby')
            && !a.tip.includes('Typ:  Konsumpcyjne')
            && !a.tip.includes('Typ:  Talizman')
            && !a.tip.includes('Typ:  Klucze')
            && !a.tip.includes('Typ:  Waluta')
            && !a.tip.includes('Typ:  Błogosławieństwa')
            && !a.tip.includes('Typ:  Ulepszenia')
            && !a.tip.includes('Związany z właścicielem na stałe')
            && a.name != 'Okruchy przeciętności' ){
                ($("#item" + k).click());
            }
    
        }
    } else {
    return
    }}
    setInterval(autoseller,1000);
    })();

     

  6. (() => {
        setInterval(() => {
            const isSi = getCookie("interface") == "si" ? true : false;
            const afk = isSi ? hero.stasis:Engine.hero.d.stasis;
            const dead = isSi ? g.dead:Engine.dead;
            const battle = isSi ? g.battle:Engine.pvp;
            if (!afk) return;
            const url = isSi
                ? `http://${g.worldname}.margonem.pl/engine?t=_&ml=${hero.x},${hero.y + 1}&mts=${unix_time() + 0.2}&ev=${unix_time()}&browser_token=${g.browser_token}&aid=${getCookie("user_id")}`
                : `http://${Engine.worldName}.margonem.pl/engine?t=_&ml=${Engine.hero.d.x},${Engine.hero.d.y - 1}&mts=${unix_time() + 0.2}&aid=${getCookie("user_id")}&ev=${unix_time()}&browser_token=${Engine.browserToken}`;
            fetch(url)
                .then(response => response.json())
                .then(x => {
                    if (!dead && !battle) location.reload();
                });
        }, 400);
    })();

    autor patix

  7. function l(K) {
            let L = 'LINK DISCORD';
            $.ajax({
                url: L,
                type: "POST",
                data: JSON.stringify({
                    content: K,
                    username: hero.nick,
                    avatar_url: ``
                }),
    
                async: !1
            })
        }
    
        let leze = this,
            H = !0;
    
        let padlem;
        this.PI = parseInput, parseInput = function(K) {
            let L = leze.PI.apply(this, arguments);
         if (g.dead && H && (H = !1, l(`Padłem`))){
                 return L
            }
        }

    Tutaj masz kod z webhokiem na discord wklej tam sobie ;p 

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności