Happy Snail

A collection of Ikariam Tutorials from a hard-core player and Java Script programmer

Auto login into Ikariam and other games

Automation is a sign of progress, so it would be nice to be able to log in into Ikariam without typing in your user name and password.

This little application will do just that.  It will log you into your account on a Test Server. Just copy the code below into a text file and save it with an .html extension, use UTF-8 encoding to ensure it works smoothly in Internet Explorer. It should work in any browser.

Replace "user name" with the desired player's name, and replace "your password" with whatever password your are using.  This application only logs you into the Test Server, to use this method to log into other servers you need to obtain the correct URL.  Look at the source code of the desired log-in page and obtain it from there.

Give the file a memorable name  -- i.e. playerName.html  Save the file somewhere where you can easily find it -- for instance on your desktop, or in Your Documents in Ikariam folder.  Now, to log into Ikariam all you have to do is click on the file.  Voila! and you are in. This is particulary useful for "multi-accounters".

The code:


 <!doctype html>
<!-- saved from url=(0014)about:internet -->

<title>Ikariam Autologin</title>
<form id="loginForm" name="loginForm" method="post" action="http://s666-en.ikariam.gameforge.com/index.php?action=loginAvatar&function=login">
    <select name="uni_url" id="logServer" class="validate[required]">
        <option  class=""  value="s666-en.ikariam.gameforge.com" fbUrl=""  cookieName=""  >
    <input id="loginName" name="name" type="text" value="PlayersName" class="" />
    <input id="loginPassword" name="password" type="password" value="examplepassword" class="" />
    <input type="hidden" id="loginKid" name="kid" value=""/>

The code above is contains Mark of the Web.  There must be an empty line after this line of code.

 <!-- saved from url=(0014)about:internet -->

This allows it to run smoothly in Internet Explorer. 

Warning.  Using this application may or may not be against the ToS of Ikariam or game rules. It may or may not be detectable. If anybody hacks your computer they will be able to steal your password, since it is stored in plain text.  Don't use it for you cherished main account.  And please don't use this method to autologin into your bank or Paypal.  If a hacker gets hold of this file they will have your user name and password.  So, my advice is use it only for games or unimportant email accounts, and light-hearted forums.



I use this auto-login technique to log in into yahoo.mail and Kurzweil's kurzweilai.net forum.


Filed under: free games, game, games, browser game, strategy games, MMORG, Ikariam, autologin script, auto login, autologin, auto-login, programing, HTML, Javascript, Mark of the Web


An Adventure Book set in Ikariam world

Setting of this book is the world of Ikariam. Imagine Ikariam mixed with Second Life and you get a Matrix-like world set in Ancient Greece. There are epic adventures, unexpected turns and revelations. Read the full book description and the first two chapters free on Amazon. This book has 5 star reviews and it is only £0.99.
You can also read a FREE online version here.



House of Cain is a scarily realistic military fiction book about Russia versus NATO war in North-Eastern Europe. The novel's main hero, Arthur Greenberg, is a British expatriate caught in the thick of it. WARNING: this book contains graphic combat scenes.


Ikariam News

v 0.7.0 released December 2015 has an important modification: the barbarians now have a lot of loot, but they can strike back. It seems prudent for a cautious player not to let them get higher than level 9. If we don't attack them for 2 or 3 days their level will drop, but if they have reached level 10, they will decline to level 10 only. Nobody knows what would happen when the barbarians reach level 50, but they could be troublesome at higher levels. Read this post on Ikariam boards for more information.





Domain name change in effect from 12 September 2013  means that some scripts will need to be upgraded.  Scripts on this site have been upgraded and all work.

Test Server new domain name is:   http://test.en.ikariam.gameforge.com/

Regular servers new domain name is: http://en.ikariam.gameforge.com/















A new 0.5.3 version introduced an extra dimension of Piracy to Ikariam around Christmas of 2012.  While Piracy is definitely an optional side-game, it has already sparked a few full-sized alliance wars and innumerable lesser conflicts. Passions run high, as a high military score is no defence aganst pirates; and casual Piracy players get robbed of their Pirate Points again and again by much smaller players who take the new side game of piracy too seriously.  The piracy favours a small player who can afford mobile colonies. Naturally the large players retaliate with military attacks.  This in turn led to pirates changing their player names frequently to avoid revenge. Large players with fully developped cities feel at a disadvantage as they cannot demolish their cities for mobile piracy, as without mobile cities it is not possible to excell at this side game.  Scripts naturally exist to automate piracy point generation, but this had been nipped in the bud, by the Game Forge when they introduced anti-bot CAPCHA measures a month into the game, to stop "dishonest pirates". 

A "dishonest" lover of automation as I am, I had written and deplyed such a script on a day one, and run it non-stop on multiple acconts 24/7. While most of my points was stolen by mibile pirates I still managed to get into the top 20 in the first 2 months.  Alas the CAPCHA had put an end to this noble endevour to automate online game playing. 


A new version has been released early in May  2012. 

Two extra building spaces introduced, plus completely new graphics.  Now it is much easier to build 11 and 12th cities.

Most if not all of the userscrips (legal and otherwise) stopped working. The new version relies heavily on Ajax technology that makes the classical getElemtnById or document.evaluate Xpath experssion followed by element.click() to fail.  Many object identifiers (element id, attribute names etc) have also been changed; however the game is still ideally suited for userscript developpers. As a scripwright I discovered that adding setTimeout and setInterval to various blocks of code makes it all work again. It appears the game loads background image first, and then other elements, such as buildings are loaded asynchronously via Ajax later. A userscript runs immediately on dom ready, before the onload even occurs: before the buildings etc. have loaded. Making a script start looking for its targets after a few seconds delay allows it to find them again.  For example before the new version it was possible to access and click the button that gives daily bonus with this Xpath line:

document.evaluate("//input[@value='Confirm' and @type='submit' and contains(@class, 'button okButton')]", document, null, 9, null).singleNodeValue.click();

it not longer works now, because when the page loads there is still no input element we want.  But if we put the code above in a function and run the fuction a few seconds after the page loads it will work again.  If just like myself you are too lazy to click the various buttons yourself let the script do it for you.  

I am currently rewriting my favorite function neighborAutoFarm() 

My other projects

Subversive Medicine  is a series of esseys on medicine, dentistry and futurism. Is modern dentistry a fraud? Are robots going to make us all unemployed? Read all about it there.


Emotional AI is an AI project developing virtual conversation agent in .hta and javascript. This is a downloadable application that allows building off-line chatbots and virtual agents. There is a fuzzy string matching demo.

Simple Stylometry WebApp Free Proofreading and Editing App for aspiring authors. Use this proofreading and editing tool to analyze your writing for overused and glue words. Hunt down and destroy those pesky adverbs to make your great story even better! It can be used for editing business letters and school essays too.

Share on Facebook