Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 06:01

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

Advertisement



Grepolis bot (Now with attack option)

Discussion on Grepolis bot (Now with attack option) within the Browsergames forum part of the Other Online Games category.

Reply
 
Old 02/04/2010, 07:05   #31
 
elite*gold: 0
Join Date: Jan 2010
Posts: 23
Received Thanks: 1
Quote:
Originally Posted by srialmaster View Post
Here's what I did:

//Get current ingame building queue
String l_QueuedBuilding1 = "";
String l_QueuedBuilding2 = "";
String l_QueuedBuilding3 = "";
String l_QueuedBuilding4 = "";
String l_QueuedBuilding5 = "";
String l_QueuedBuilding6 = "";
String l_QueuedBuilding7 = "";
l_Search = "id=\"main_tasks_0\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding1 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[0] = l_QueuedBuilding1;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding2 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[1] = l_QueuedBuilding2;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding3 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[2] = l_QueuedBuilding3;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding4 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[3] = l_QueuedBuilding4;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding5 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = l_QueuedBuilding5;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding6 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = l_QueuedBuilding6;
l_Search = "id=\"main_tasks_1\"";
l_Index = l_Response.IndexOf(l_Search);
if (l_Index != -1)
{
l_Search = "/images/game/main/";
l_Index = l_Response.IndexOf(l_Search, l_Index);
l_QueuedBuilding2 = l_Response.Substring(l_Index + l_Search.Length, l_Response.IndexOf(".", l_Index) - (l_Index + l_Search.Length));
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = l_QueuedBuilding7;
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[3] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[2] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[3] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[1] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[2] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[3] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
}
else
{
m_Towns[m_CurrentTown].IngameBuildingQueue[0] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[1] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[2] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[3] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[4] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[5] = "";
m_Towns[m_CurrentTown].IngameBuildingQueue[6] = "";
}
setStatusBar("Building levels updated.");
refreshBuildingLevels();
updateBuildPermission();
}
else
{
setStatusBar("Building levels not found");
debug("Building levels not found");
}
if (m_IsBotRunning)
m_Timer.Start();
break;
}
}

-Nate
Attached is my full Form1.cs:
Attached Files
File Type: zip Form1.zip (5.1 KB, 15 views)
srialmaster is offline  
Old 02/04/2010, 20:18   #32
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
You can get that to work by using this part:
l_Search = "id=\"main_tasks_0\"";

You can find the other queues by editing the number from 0 - 6.

But if you can send me the source code when you have a full queue I can make it for you.
If you use FireFox login on grepolis and enter the senate, after that press ctrl+u.
If you use IE go to the same page and look in the IE menu for View Source.

~Uthar
Utharnl is offline  
Old 02/04/2010, 23:47   #33
 
elite*gold: 0
Join Date: Feb 2010
Posts: 1
Received Thanks: 0
hummn, cant seem to get the english version to work on my computer.
bountylord is offline  
Old 02/04/2010, 23:56   #34
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
Could you post your settings?
Maybe something is wrong there
Utharnl is offline  
Old 02/05/2010, 05:42   #35
 
elite*gold: 0
Join Date: Jan 2010
Posts: 23
Received Thanks: 1
Quote:
Originally Posted by Utharnl View Post
You can get that to work by using this part:
l_Search = "id=\"main_tasks_0\"";

You can find the other queues by editing the number from 0 - 6.

But if you can send me the source code when you have a full queue I can make it for you.
If you use FireFox login on grepolis and enter the senate, after that press ctrl+u.
If you use IE go to the same page and look in the IE menu for View Source.

~Uthar
Should I try using main_tasks_0-6?

Ok, I do have to use main_tasks_0-6:

<div id="main_tasks">
<h4>Construction queue (4/7)</h4>
<div id="main_tasks_0" class="main_tasks_task">
<div style="position: relative;">
<div class="main_task_time">4:01:43</div>
<div style="width: 40px; height: 40px; background-image: url(/images/game/main/ironer.png)" class="main_tasks_image" id="order_0">
</div>
<a href="javascript:void(0)" id="finish_for_gold" class="main_tasks_finish " onclick="BuildingMain.confirm_finish_for_gold(1207 102)"></a>
</div>
</div>
<div id="main_tasks_1" class="main_tasks_task">
<div style="position: relative;">
<div class="main_task_time">4:33:16</div>
<div style="width: 40px; height: 40px; background-image: url(/images/game/main/ironer.png)" class="main_tasks_image" id="order_1">
</div>
<a href="javascript:void(0)" id="finish_for_gold" class="main_tasks_finish " onclick="BuildingMain.confirm_finish_for_gold(1207 108)"></a>
</div>
</div>
<div id="main_tasks_2" class="main_tasks_task">
<div style="position: relative;">
<div class="main_task_time">0:05:45</div>
<div style="width: 40px; height: 40px; background-image: url(/images/game/main/hide.png)" class="main_tasks_image" id="order_2">
</div>
<a href="javascript:void(0)" id="finish_for_gold" class="main_tasks_finish " onclick="BuildingMain.confirm_finish_for_gold(1207 112)"></a>
</div>
</div>
<div id="main_tasks_3" class="main_tasks_task">
<div style="position: relative;">
<div class="main_task_time">1:52:21</div>
<div style="width: 40px; height: 40px; background-image: url(/images/game/main/farm.png)" class="main_tasks_image" id="order_3">
</div>
<a href="javascript:void(0)" id="finish_for_gold" class="main_tasks_finish " onclick="BuildingMain.confirm_finish_for_gold(1208 415)"></a>
<a href="javascript:void(0)" id="main_tasks_cancel" class="main_tasks_cancel" onclick="BuildingMain.confirm_building_cancel_dial og.open()"></a>
</div>
</div>
<div id="main_tasks_right"></div>
</div>


It still doesn't work.
I have attached the updated form1.cs and senate_souce.htm, they are both in the form1.zip
Attached Files
File Type: zip Form1.zip (19.5 KB, 10 views)
srialmaster is offline  
Old 02/05/2010, 12:36   #36
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
The idea is good, but there should be some small mistake somewhere. I will give it a better look this weekend to fix it.
I'm not planning to pay for this game so I can't test it. I'll send you the updated version so you can test it for me

~Uthar
Utharnl is offline  
Old 02/08/2010, 02:47   #37
 
elite*gold: 0
Join Date: Jan 2010
Posts: 23
Received Thanks: 1
The one you sent me in PM seems to work well with 3 in queue. You know, once you get up to 1K, you can't really build so quickly anymore....

Any thoughts into adding the option to build troops too?
srialmaster is offline  
Old 02/08/2010, 07:42   #38
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
Thanks for testing. Will add the new version with the source code when I get home later this day.

I haven't any plans for adding troops yet but maybe some time later.


//edit
Uploaded v1.2
Utharnl is offline  
Old 02/09/2010, 00:20   #39
 
elite*gold: 0
Join Date: Feb 2010
Posts: 2
Received Thanks: 0
what are the sources?
Ac3On3 is offline  
Old 02/09/2010, 20:52   #40
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
The sources are the so called "source code".
Other developers or users that are interested in it can see then how I created the bot.

~Uthar
Utharnl is offline  
Old 02/13/2010, 00:47   #41
 
elite*gold: 0
Join Date: Sep 2007
Posts: 390
Received Thanks: 23
happy to see someone started a project bot for this game.
i will not use it atm, coz i'm premium and i already can queue 7 building (enought)
but if u plan to add some raid option, i will start to test

good luck
patricia1 is offline  
Old 02/13/2010, 16:58   #42
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
Uploaded version 1.3
-Added resources and max storage
Utharnl is offline  
Old 02/14/2010, 09:11   #43
 
EshLeN's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 42
Received Thanks: 6
Quote:
Originally Posted by Utharnl View Post
Uploaded version 1.3
-Added resources and max storage
GOOD JOB , really nice. And it's working even in ro servers.
We would love this bot more if you can add an atack option to farm cities near us.
EshLeN is offline  
Old 02/15/2010, 14:26   #44
 
elite*gold: 0
Join Date: Jan 2010
Posts: 23
Received Thanks: 1
Quote:
Originally Posted by Utharnl View Post
Uploaded version 1.3
-Added resources and max storage
Hey,

Any chance to add a feature to save the queue list to a txt file so if we need to reboot, we can reload the program it once we login, it will have the same queue list we had before?

-Nate
srialmaster is offline  
Old 02/15/2010, 20:14   #45
 
elite*gold: 0
Join Date: Mar 2009
Posts: 100
Received Thanks: 1
It would be nice if you could make a raid option...
Unghiutza is offline  
Reply


Similar Threads Similar Threads
Grepolis Bot (GrepolisNet)
09/03/2019 - Browsergames - 172 Replies
http://grepolis.eden-daoc.net/1c.png << Download the GrepolisNET here >> GrepolisNET is a new kind of browser, based on Firefox, designed for your favorite game Grepolis, which includes lots of usefull tools Probably the first bot allowing the user to browse and play while it is running !
Grepolis Bot?
02/20/2011 - Browsergames - 4 Replies
Huhu, wollte mal fragen ob es einen grepolis Bot gibt ? wenn ja vllt könnte einer den link posten dank euch
Grepolis Help
04/05/2010 - Main - 1 Replies
Hey ich will den Bot benützen !!! aber wie geht der eig. der hier >>>http://www.elitepvpers.com/forum/browse rgames/438818-grepolis-bot-now-attack-option.html



All times are GMT +1. The time now is 06:02.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.