Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 09:15

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

Advertisement



Where to learn to code bots for GW

Discussion on Where to learn to code bots for GW within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2019
Posts: 18
Received Thanks: 5
Where to learn to code bots for GW

Hello everyone,

I'd like to learn to code bots for GW. I don't really know where to start, i found this topic : in german, and i unfortunately don't speak any german.

I used google translate, and it seems a bit too advanced for my knowledge in code. I know basic algorythmic, and started to learn C# (mostly theoric, i didn't had much time to use it).

Do you guys have any good learning posts/ websites in english/french ?

Thanks !
zolf02 is offline  
Old 06/18/2020, 02:05   #2
 
elite*gold: 0
Join Date: Sep 2014
Posts: 339
Received Thanks: 115
If your serious about learning to code bots... you have found a good starting point! Read every post in this Guildwars forum for the next six months and stay tuned! when you have extra time read through some older threads - ask questions, get envolved - copy and paste a lot for the first three months... debug your code and you will start to progress... ask questions a lot! Discord chat someone who will help you! The reward is well worth the work! Most importantly have fun!
phat34 is offline  
Thanks
1 User
Old 06/18/2020, 17:34   #3
 
elite*gold: 0
Join Date: Sep 2017
Posts: 12
Received Thanks: 2
Thanks for that hints, i am trying the same since some weeks.

Just trying some bots, reading the source code and try to understand.
I have several experience in html and php. But this is new for me.

Is there some Information about the basics? And as i understood gwa2 is a set of tools, that make autoit able to run special guildwars commands, right?

So its part of all bots and the functions are used in the bots?
0815Storm is offline  
Old 06/19/2020, 00:13   #4
 
elite*gold: 0
Join Date: Jul 2019
Posts: 98
Received Thanks: 51
The basic idea of all bots at least for games tend to be sequential or event driven. Most of the gwa2 bots lean more towards the sequential with some state like behavior. Example one shows the simplest idea such as a macro that presses the c key waits 1 minute then presses the x key etc. It is 100% sequential and also the easiest to build.

Code:
while(running)
{
	//action 1
	//action 2
	//action 3
	//action 4
	//action n..
}
The second loop is a state machine or event driven style bot. These aren't very common in guild wars as the game is relatively static.

Code:
while(running)
{
	//loading available information
	//Transition to state potentially substates of previous state
	//process state
}
The limiting factor of both of these bots tend to be your possible information you are able to procure from the game process and possible actions. A macro only bot is going to only be able to go by pixel color, timing, and other simplistic information for the actions.

While a more complex API like gwa2 allows direct memory reading of game statistics and actions that may be too complex for a simple macro.

The first question on making bots you need to decide upon is do you want to learn to script a bot for a framework such as gwa2 or do you want to build an API engine like gwa2? If its the first that is far simpler and can be learned from looking at premade scripts on this site. The other will take quite a lot of developer knowledge to piece together over time.
list comprehension is offline  
Thanks
1 User
Old 01/19/2021, 01:33   #5
 
elite*gold: 0
Join Date: Nov 2020
Posts: 16
Received Thanks: 2
Exclamation

Quote:
Originally Posted by list comprehension View Post
The basic idea of all bots at least for games tend to be sequential or event driven. Most of the gwa2 bots lean more towards the sequential with some state like behavior. Example one shows the simplest idea such as a macro that presses the c key waits 1 minute then presses the x key etc. It is 100% sequential and also the easiest to build.

Code:
while(running)
{
	//action 1
	//action 2
	//action 3
	//action 4
	//action n..
}
The second loop is a state machine or event driven style bot. These aren't very common in guild wars as the game is relatively static.

Code:
while(running)
{
	//loading available information
	//Transition to state potentially substates of previous state
	//process state
}
The limiting factor of both of these bots tend to be your possible information you are able to procure from the game process and possible actions. A macro only bot is going to only be able to go by pixel color, timing, and other simplistic information for the actions.

While a more complex API like gwa2 allows direct memory reading of game statistics and actions that may be too complex for a simple macro.

The first question on making bots you need to decide upon is do you want to learn to script a bot for a framework such as gwa2 or do you want to build an API engine like gwa2? If its the first that is far simpler and can be learned from looking at premade scripts on this site. The other will take quite a lot of developer knowledge to piece together over time.
With this being said should i take a look into the GWA2 for commands and functions? What id like to do just for the shear simplicity is make a Iris flower farmer.

Step one: make sure in ashford abbey, if not map there.
Step two: move towards portal, exit portal
Step three: move to x, scan for iris flower.
Step four:Locate iris flower, move towards it
Step fiveick up flower
Step six: map back
Step seven: loop
Mad head Trip is offline  
Old 01/19/2021, 14:52   #6
 
elite*gold: 0
Join Date: Dec 2020
Posts: 2
Received Thanks: 0
I'd suggest just looking at one bot that you may have, and study the code. Rather than looking at the GWA2 File, and the many functions that are in it, look at what your bot uses. If you find a function that isn't being declared in your bots file, then lookup the function in the GWA2 File.

You'll most likely see a GUI Region for the End User, the main While Loop that is running the bot, and the many functions that are called somewhere within that loop, or called from a function of a function (of another function, etc.) that's listed in that loop.

Although it may take the mentioned 6 months to become a more in depth developer, a lot of the stuff in these bots are pretty basic, since the GWA2 file already exists for you. You should have a pretty good/basic understanding within a couple-few weeks.

As with any code, refer to the documentation if you're actually wanting to learn what particular syntax does. For most cases, if you're using public bots, you'll most likely be referring to the autoIt Documentation - Google is your friend.

In addition, write your own comment lines in the code. One should be able to understand the flow of the program by reading the comments.
sneakysnoops is offline  
Old 01/19/2021, 23:22   #7
 
elite*gold: 0
Join Date: Nov 2020
Posts: 16
Received Thanks: 2
Quote:
Originally Posted by sneakysnoops View Post
I'd suggest just looking at one bot that you may have, and study the code. Rather than looking at the GWA2 File, and the many functions that are in it, look at what your bot uses. If you find a function that isn't being declared in your bots file, then lookup the function in the GWA2 File.

You'll most likely see a GUI Region for the End User, the main While Loop that is running the bot, and the many functions that are called somewhere within that loop, or called from a function of a function (of another function, etc.) that's listed in that loop.

Although it may take the mentioned 6 months to become a more in depth developer, a lot of the stuff in these bots are pretty basic, since the GWA2 file already exists for you. You should have a pretty good/basic understanding within a couple-few weeks.

As with any code, refer to the documentation if you're actually wanting to learn what particular syntax does. For most cases, if you're using public bots, you'll most likely be referring to the autoIt Documentation - Google is your friend.

In addition, write your own comment lines in the code. One should be able to understand the flow of the program by reading the comments.
Thank you i am working on that simple flower farmer....i know what i want it to do but i dont know how to start it.....how do i check and make sure i am in the correct map?
Mad head Trip is offline  
Reply


Similar Threads Similar Threads
[Selling] [CODE][/CODE][BATTLE]-✅ESP,GLOW,NO-RECOIL,FLY,TP,SILENT - AIM - IN TEST✅[CODE][/CODE]
07/21/2019 - Rainbow Six Siege Trading - 2 Replies
I'm passing here to tell you that the cheat -BattleByeR6- is the better cheat, 100% reliable. In this cheat -BatlleByeR6- there is no risk of getting banned, it will be added several other options in our cheat -BattleByeR6- ● Interested in adding contact at discord : BattleBye #9647 Or enter into our discord BattleBye : https://discord.gg/dbHUSmu Options of our cheat BattleyeR6
[Selling] [CODE][/CODE][BATTLEBYE-CHEATS]-✅ESP,GLOW,NO-RECOIL,FLY,TP,SILENT-AIM-✅ [CODE][/CODE]
07/20/2019 - Rainbow Six Siege Trading - 0 Replies
I'm passing here to tell you that the cheat -BattleByeR6- is the better cheat, 100% reliable. In this cheat -BatlleByeR6- there is no risk of getting banned, it will be added several other options in our cheat -BattleByeR6- ● Interested in adding contact at discord : BattleBye #9647 Or enter into our discord BattleBye : https://discord.gg/dbHUSmu
[Selling] [CODE][/CODE][BATTLEBYE]-✅ESP,GLOW,NO-RECOIL,FLY,TP,AIM.✅[CODE][/CODE]
07/19/2019 - Rainbow Six Siege Trading - 0 Replies
I'm passing here to tell you that the cheat -BattleByeR6- is the better cheat, 100% reliable. In this cheat -BatlleByeR6- there is no risk of getting banned, it will be added several other options in our cheat -BattleByeR6- ● Interested in adding contact at discord : BattleBye #9647 Or enter into our discord BattleBye : https://discord.gg/dbHUSmu
[Selling] learn 2 learn (Kurs)
08/24/2015 - Trading - 1 Replies
Hey, da in vielen Teilen Deutschlands langsam wieder die Schulzeit beginnt (und ich das heute erfahren durfte), damit auch die Lernezeit wieder beginnt, wollte ich euch folgendes Vorstellen. Und zwar ist das Lernen heute überall notwendig. Vom Leben als Schüler, zum Auszubildenden oder Studenten, bis hin zum Beruf -überall muss gerlernt werden. Meistens ist es aber dann so, dass es schwer ist, die ganzen Infos in seinen Schädel zu bekommen. Dafür ist dieser Kurs. Ich bin...
What do ya gotta learn to code a server?
10/02/2008 - CO2 Private Server - 7 Replies
C# is the answer to that. The simple, low-end answer. But you need to know more than just standard C#. Do you need to know some kind of SQL API? Or .NET? Thanks, TheGeneral:bandit:



All times are GMT +1. The time now is 09:15.


Powered by vBulletin®
Copyright ©2000 - 2021, 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.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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