Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 16:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



TribalWars Simple Collector Script

Discussion on TribalWars Simple Collector Script within the Browsergames forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2011
Posts: 155
Received Thanks: 602
TribalWars Simple Collector Script

(Maybe there's a chance of ban...)

Put what you want to use in units

Then go to collector page > press f12 > console > paste the code:

Have fun

PHP Code:
const autoCollector = {
    
units: [
        {
'spear'0},
        {
'sword'0},
        {
'axe'0},
        {
'archer'0},
        {
'light'0},
        {
'marcher'0},
        {
'heavy'0},
        {
'knight'0}
    ],
    
intervalId0,
    
percents: [0.620.270.11],
    
optionsdocument.getElementsByClassName("options-container")[0].children,
    
setUnitAmount(nameamount) {
        const 
element document.getElementsByName(name)[0];

        
element.value amount;
        
element.dispatchEvent(new Event('change'));
    },
    
unitAvailable: function (name) {
        const 
field document.getElementsByName(name)[0];
        const 
text field.parentNode.lastChild.innerHTML;
        return +(
text.substr(1text.length 2));
    },
    
calculateAndSetUnits: function (level) {
        const 
percent this.percents[level];

        for (
let i 0this.units.lengthi++) {
            const 
current this.units[i];

            const 
name Object.keys(current);
            const 
amount Math.floor(current[name] * percent);
            const 
available this.unitAvailable(name);

            
this.setUnitAmount(nameMath.min(amountavailable));
        }
    },
    
tick: function () {
        for (
let i 0this.options.lengthi++) {
            const 
element this.options[i].lastChild.lastChild;

            if (
element.classList.contains("inactive-view")) {

                if (
element.firstChild === null)
                    continue;

                
this.calculateAndSetUnits(i);
                
element.lastChild.firstChild.click();
                break;
            }
        }
    },
    
start: function () {
        if (
this.intervalId !== 0)
            throw new 
Error("Already started!");
        else
            
this.intervalId setInterval(() => this.tick(), 10000)
    },
    
stop: function () {
        if (
this.intervalId === 0)
            throw new 
Error("Not started yet!");
        else {
            
clearInterval(this.intervalId);
            
this.intervalId 0;
        }
    }
};

autoCollector.start(); 
cron1003 is offline  
Reply


Similar Threads Similar Threads
Are palladium collector bots safer than box collector bots?
06/03/2016 - DarkOrbit - 3 Replies
I'm thinking about changing from box-collector bot to palladium bot, I'm just curious to know which one is safer. Also how many hours to put on a day is recommended for palla?
[Selling] CD Keys [x2 Faction Collector & others] + Collector accounts
03/21/2015 - Guild Wars Trading - 63 Replies
If you have any question, please add me on Skype : cocopwnsu http://image.noelshack.com/fichiers/2015/06/142342 8667-im-skype.gif Now Middleman for Gw1 & Gw2! My thread! http://image.noelshack.com/fichiers/2014/36/14099 44478-miniature-kuunavang.png Faction Collector Edition Key Price : 55€ per key



All times are GMT +1. The time now is 16:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.