Ikariambot (Queuer)

10/13/2009 23:03 Utharnl#16
Quote:
Originally Posted by Mr3ddy View Post
Kann ein Account gebannt werden ?
Und wie lange sucht er den die buildings ?
No probably not.
This bot sends the same html requests to the server as if you were using a browser. So they can't see if you use this bot.


google translation:p
Nein wahrscheinlich nicht.
Dieser Bot sendet die gleiche HTML-Anfragen an den Server, als ob Sie einen Browser benutzten. So können sie nicht sehen, wenn Sie diese Bot benutzt.

~Uthar
10/14/2009 00:17 Utharnl#17
Problem was with the cookies, they tried to add a small check to only allow browser connections. That check didn't really help though :P
There was also a small change in the html code that caused to show wrong Town names.

Both problems fixed, new version on my [Only registered and activated users can see links. Click Here To Register...] and at the startpost.

~Uthar
10/16/2009 16:31 Utharnl#18
The website [Only registered and activated users can see links. Click Here To Register...] is suspended for a few days but will be back online next week.
The latest version (1.2) is also included as Attachment in my start post so you can still download it.

-edit-
fixed it faster then expected, site is working again.


~Uthar
12/09/2009 10:18 henricus#19
ive downloaded the file today but it doesnt work
after i choose the server the programme doesnt work
pls look after it:)
12/09/2009 11:01 Utharnl#20
Quote:
Originally Posted by henricus View Post
ive downloaded the file today but it doesnt work
after i choose the server the programme doesnt work
pls look after it:)
Could be that they changed something on the ikariam servers.
Will look at it this evening and make a fix for it if needed.
12/09/2009 21:19 Utharnl#21
@henricus

Just tried and it's still working fine.
Could you try the "howto steps" in the second post of this topic, I think that you made a mistake there.
Make sure you select your server before you select your world.

Quote:
Originally Posted by Note: the numbers in this quote are explained in the 2e post of this topic
Enter your username and password(10,11)
Select the server you play on(13)
Select the world you play on(1)
Choose a town and press Select(3)
Click on a building(7) to add it to the queue(6)
Click on Start(8) to activate the bot
If you want to know what the bot is doing click on Log(4)
12/21/2009 08:35 Decrypt#22
a copule of questions:

1. what programs u use to make this bot?

2. could this options be added ?

- wine transfer - keep a minimum wine quantity of wine in each town

- attack protection - auto move: army + resources to onether city (this would be a hard one)

- auto farming - auto attack some villages max 3-4 times every 24 hours..

more ideas will come but im intereted if this ones could be done
12/21/2009 11:11 Utharnl#23
Hey Decrypt thanks for your interest.
Quote:
1. what programs u use to make this bot?
I use two different programs for my bots.
For writing the code (I'm using C#) I use Microsoft Visual Studio 2008.
The other program I use is for monitoring the http requests.
Most of the time I use a firefox addon for this called "Live HTTP Header" but I have also a standalone program called "WireShark" that does the same thing.
Below is an example with "Live HTTP headers" when I switch towns in ikariam
Quote:
[Only registered and activated users can see links. Click Here To Register...]

POST /index.php HTTP/1.1
Host: s10.ikariam.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.11; .NET CLR 2.0.50727) Gecko/20071127 Firefox/2.0.0.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: [Only registered and activated users can see links. Click Here To Register...]
Cookie: PHPSESSID=3af1ed5804f643e8a470bdabe72e6a29; ikariam=79153_%241%24nRzcNivx%24ALPlxjEcl36e5BOKYJ 4G60; ikariam_sorting=a%3A2%3A%7Bs%3A6%3A%22sortBy%22%3B s%3A4%3A%22name%22%3Bs%3A5%3A%22order%22%3Bs%3A3%3 A%22asc%22%3B%7D
Content-Type: application/x-www-form-urlencoded
Content-Length: 114
action=header&function=changeCurrentCity&actionReq uest=192b84d9d7a9a8498296d031a5067ef8&oldView=city &cityId=121324
HTTP/1.x 200 OK
Date: Mon, 21 Dec 2009 10:01:01 GMT
Server: Apache
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 9015
Connection: close
Content-Type: text/html; charset=UTF-8
You don't need all the information but there are a few important lines:
-if it's a POST or GET request (first line)
-Cookie information
-Content-lenght + content (Only when you have a POST request)

After I have this information I start writing this in C# so that my bot sends the same information as in the quote above.
12/21/2009 11:32 Utharnl#24
Quote:
Originally Posted by Decrypt View Post
a copule of questions:
2. could this options be added ?

- wine transfer - keep a minimum wine quantity of wine in each town

- attack protection - auto move: army + resources to onether city (this would be a hard one)

- auto farming - auto attack some villages max 3-4 times every 24 hours..

more ideas will come but im intereted if this ones could be done
Sorry too say but I don't think I will add new functionality any more. It cost to much time and I'm soon starting with my internship. I'm only updating the bot now when someone reports a problem.

When I started this bot I already though about those functions but the HTTP requests for it aren't very practical. It will take to much time to get all the information needed to send the correct HTTP request.

Short example for attack:
Quote:
action=transportOperations&function=attackBarbaria nVillage&actionRequest=ffa54840a3c240e0725c16c7fa4 8281c&id=1332&destinationCityId=0&cargo_army_304=1 &cargo_army_304_upkeep=3&cargo_army_303=0&cargo_ar my_303_upkeep=3&cargo_army_308=0&cargo_army_308_up keep=12&cargo_army_312=0&cargo_army_312_upkeep=15& cargo_army_309=0&cargo_army_309_upkeep=45&cargo_ar my_307=0&cargo_army_307_upkeep=15&cargo_army_306=0 &cargo_army_306_upkeep=25&cargo_army_305=0&cargo_a rmy_305_upkeep=30&cargo_army_311=0&cargo_army_311_ upkeep=20&cargo_army_310=0&cargo_army_310_upkeep=1 0&transporter=1
This is only the content information (What I explained in my previous post) for an attack with 1 unit and 1 ship.

I hope that you like the bot with the current functionality and that it's very helpful :)

Also if someone wants to add new functionality to it, the source code is available in the start post. If you have questions about some parts of the code feel free to ask.
01/10/2010 04:54 nodzkki#25
i have a question...
can i check my account while the bot is running?...
01/10/2010 09:53 Utharnl#26
If you want to check your account while the bot is running you can use the start/stop button.
Also don't stop the bot while it's updating/checking the queue. Wait a few seconds till it's done and then stop the bot.
04/02/2010 12:53 ttastic20#27
how do you get the download onto your computer?
04/02/2010 13:06 Utharnl#28
There's a download link in the startpost.
You can use the direct link in that post or download the attachment.

~Uthar
05/16/2010 00:53 nachoz#29
is there anyway the bot can make an investigation instead of a building?
05/16/2010 13:29 Utharnl#30
No the only thing this bot can do is making buildings.

~Uthar