Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Tribalwars.nl tool

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Wed Feb 25, 2009 4:07 am    Post subject: Tribalwars.nl tool Reply with quote

im playing a game called tribalwars for some time and i wrote an epic script. it sends support troops so that you'll always know if someone is attacked.

Code:
var spear = 0;
var sword = 3;
var bow = 0;
var scout = 0;
var zc = 0;
var villages = getCookie('villages');


if(!document.URL.match('try=confirm_send')) {
if(villages.length < 1){
   
    var vills = prompt("Plak hier de dorpen om OS te sturen");
    if(!vills.length < 1){
        setCookie('villages',(vills + ","),365);
        var villages = getCookie('villages');
    }
}
}

/*
 *Standard cookie functions.
 */
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays) {
    var exdate=new Date();
    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie=c_name+ "=" +value+
    ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

/*
 *Submit function.
 */
function sendStuff() {
    var villgs = villages.split(',');
    var coords = villgs[0].split('|');
    document.getElementById('inputx').value = coords[0];
    document.getElementById('inputy').value = coords[1];
    var repl = (villgs[0]+',');
    villages = villages.replace(repl,'');
    setCookie('villages',villages,365);
    insertUnit(document.forms[0].spear, spear);
    insertUnit(document.forms[0].sword, sword);
    insertUnit(document.forms[0].archer, bow);
    insertUnit(document.forms[0].heavy, zc);
    insertUnit(document.forms[0].spy, scout);
    document.getElementsByName('support')[0].click();
}

/*
 *Checks at which screen we are.
 */
if(confirm != false){
if (document.URL.match('screen=place')) {
    if (document.URL.match('try=confirm')) {
        document.getElementsByName('submit')[0].click();
    } else {
        sendStuff();
    }
} else {
    alert('Fout, Ben je wel op de verzamelplaats?');
}
}


here in url (required to use the script in game)

Code:
javascript:var spear = 0;var sword = 3;var bow = 0;var scout = 0;var zc = 0;var villages = getCookie('villages');if(!document.URL.match('try=confirm_send')) {if(villages.length < 1){var vills = prompt("Plak hier de dorpen om OS te sturen");if(!vills.length < 1){setCookie('villages',(vills + ","),365);var villages = getCookie('villages');}}}function getCookie(c_name){if (document.cookie.length>0){c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}function setCookie(c_name,value,expiredays) {var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+ "=" +value+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());}function sendStuff() {var villgs = villages.split(',');var coords = villgs[0].split('|');document.getElementById('inputx').value = coords[0];document.getElementById('inputy').value = coords[1];var repl = (villgs[0]+',');villages = villages.replace(repl,'');setCookie('villages',villages,365);insertUnit(document.forms[0].spear, spear);insertUnit(document.forms[0].sword, sword);insertUnit(document.forms[0].archer, bow);insertUnit(document.forms[0].heavy, zc);insertUnit(document.forms[0].spy, scout);document.getElementsByName('support')[0].click();}if(confirm != false){if (document.URL.match('screen=place')) {if (document.URL.match('try=confirm')) {document.getElementsByName('submit')[0].click();} else {sendStuff();}} else {alert('Fout, Ben je wel op de verzamelplaats?');}}

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Wed Feb 25, 2009 7:39 pm    Post subject: Reply with quote

haha good job. I have played tribalwars since world 2 Wink
_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
Deletion
I post too much
Reputation: 0

Joined: 22 Jun 2006
Posts: 2148
Location: Underground

PostPosted: Wed Feb 25, 2009 10:03 pm    Post subject: Reply with quote

javascript injections D; so ugly

nice job, though.

_________________
Bitch, please.
redslothx wrote:
oh im a man so respect the penis powers
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Fri Feb 27, 2009 11:34 am    Post subject: Reply with quote

no injection, its legal. you should put it in your 'quicklist' (snellijst)

its handy at my niveau (1.000.000 points)

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites