Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 12:21

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

Advertisement



Need Help! Making a simple Bot

Discussion on Need Help! Making a simple Bot within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2018
Posts: 32
Received Thanks: 0
Question Need Help! Making a simple Bot

I just want to make a bot to trade Nicholas for GotHs in presearing. If i am being honest I have no idea how to start it. I have Autoit 3 and a bot develper as well as GWToolbox++. I just want a simple GUI, a character Select and a Start button. I am doing a simple bot to kinda learn about how to code you know? Any help or advice, hell even sources for help would be appreciated.


Thanks
Bad Head Trip



Bad Head Trip is offline  
Old 03/28/2019, 11:38   #2
 
elite*gold: 0
Join Date: Mar 2018
Posts: 77
Received Thanks: 131
Many of us started with editing existing bots. They usually come with a GUI to select a character, a start button and often even some statistics. So you won't have to deal with all the initialisation and GUI part, which gives you a real headstart. If you edit an existing bot, this could be a useful first bot project. If you want to start with your own GUI and want to do the init part yourself, then you will have a very hard time if you never coded before.

If you go the route I suggest, you would have to find the main function of the bot and edit that function so it does what you want. Which is basically map traveling and running to the location of Nick and then trading him. Map traveling is done via simple functions, you will have to lookup the mapids. For the running part, get coordinates for the path with either BotDeveloper or TB++. Just click to move your way to Nick like you would normally do. Take a look at how others did things similar to what you want to do, as they are probably more experienced. I dont know if theres anything to trade with Nick already. So maybe you will have to figure that one out yourself. CtoGS (Client to GameServer) Paket analysis with the Bot Developer may help there.

There will be a lot of functions in the bot that are only useful for the original bot. These can be deleted, but I would suggest keeping them until your bot is ready and tested. Then delete all the dead code and try the bot again. If it complains sth is missing, restore that function from a backup.

Good luck!

edit:
Just thinking about it you should have a look at the "Nicholas The Traveller - Farm Thread". Those bots there are really minimalistic. They port to a city, run out, follow a set path (and kill everything they see) and pick up drops. Change the mapids and path, as well as the AggroMoveToEx function to just MoveTo, so it does not try to kill every foe, and you're good for everything other than trading with Nick.


rheek is offline  
Thanks
1 User
Old 03/28/2019, 13:19   #3
 
elite*gold: 0
Join Date: Dec 2018
Posts: 32
Received Thanks: 0
ok there is a bot thats been updated just a few days ago from a friend of mine @. The PreSearing OmniBot, Theres a function to trade Nicholas. It checks to make sure there is 26 of each item. Maybe i can find the code to trade Nick in there.
Another Question, Is there any way for Autoit to fetch information like what Nicks item is for the day? In-Game, i heard it isnt very possible, but what about fetching this information on a site/URL?

Thank you Rheek for taking the time to reply!!!
Bad Head Trip is offline  
Old 03/28/2019, 14:30   #4
 
elite*gold: 0
Join Date: Mar 2018
Posts: 77
Received Thanks: 131
Check this:


rheek is offline  
Thanks
1 User
Old 03/28/2019, 16:48   #5
 
elite*gold: 0
Join Date: Dec 2018
Posts: 32
Received Thanks: 0
oh my! Is this the function? it has both pre and post!!!!! Thank you!!!

Im at a dead end @, how do i make sure that gw.exe is selected? and that the script runs on my character?


i start the bot but nothing happens....

EDIT: The bot starts goes to portal, then after that instead of going straight it goes right and gets stuck. Is there a way to check and make sure that area is loaded before using the moveto function?
Bad Head Trip is offline  
Old 03/30/2019, 02:22   #6
 
elite*gold: 0
Join Date: Mar 2018
Posts: 77
Received Thanks: 131
I guess most of your last post was resolved already. Regarding your last issue:

Quote:
Originally Posted by Bad Head Trip View Post
EDIT: The bot starts goes to portal, then after that instead of going straight it goes right and gets stuck. Is there a way to check and make sure that area is loaded before using the moveto function?
Check this function here, that is already included in your code. It tries to port to an outpost and checks whether it already arrived there. Shouldn't be too hard to adapt to your needs.

Quote:
Originally Posted by Bad Head Trip View Post
Func Farm_GoStartingOutpost()
Local $MapID
If GetMapID() <> $MapID Then ;Fort Ranik
logFile("Moving to Fort Ranik")
Do
RndTravel($MapID)
rndslp(500)
Until GetMapID() = $MapID
EndIf
EndFunc
rheek is offline  
Old 03/30/2019, 19:57   #7
 
elite*gold: 0
Join Date: Dec 2018
Posts: 32
Received Thanks: 0
Yes I Added one line "WaitMapLoading(162)"

My next project is to add a status Log to the GUI. Im just going to take a look at a couple bots that include one, see what i can get out of them. Ill have to do some tweaking to the GUI. ill show the progress and post when finished.

Thanks @

Bad Head Trip is offline  
Old 04/03/2019, 23:17   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 80
Received Thanks: 60
Quote:
Originally Posted by Bad Head Trip View Post
oh my! Is this the function? it has both pre and post!!!!! Thank you!!!

Im at a dead end @, how do i make sure that gw.exe is selected? and that the script runs on my character?


i start the bot but nothing happens....

EDIT: The bot starts goes to portal, then after that instead of going straight it goes right and gets stuck. Is there a way to check and make sure that area is loaded before using the moveto function?
check out my pre nick farmer, that ive havent been updating here for the lack of interest
my current unrealeased version works a lot better, but ims still strugling with some figthg function bugs, anyways this is my current nick "trading" function and works like a charm now, if you want to avoid figting just use the MoveTo istead of the aggromove one

Code:
Func GoToSeeNick()
	If GetMapID() <> 166 Then ;Pre-Searing: Fort Ranik
		RndTravel(166)
		Sleep(5000)
	EndIf
	GoOutFin()
	_WaitMapLoadingEx(162)
	Sleep(5000)
	UseSummoningStone()
	AggroMoveToEx(22524, 5743)
	AggroMoveToEx(22501, 4741)
	AggroMoveToEx(21729, 4100)
	AggroMoveToEx(20995, 3418)
	AggroMoveToEx(19987, 3413)
	AggroMoveToEx(18984, 3471)
	AggroMoveToEx(17986, 3373)
	AggroMoveToEx(17006, 3145)
	AggroMoveToEx(16503, 4012)
	AggroMoveToEx(16565, 5014)
	AggroMoveToEx(16698, 6006)
	AggroMoveToEx(16782, 7010)
	AggroMoveToEx(17046, 7976)
	AggroMoveToEx(17210, 8963)
	AggroMoveToEx(16906, 9925)
	AggroMoveToEx(16149, 10586)
	AggroMoveToEx(15221, 10973)
	AggroMoveToEx(14419, 11578)
	AggroMoveToEx(14011, 12497)
	AggroMoveToEx(13648, 13434)
	MoveTo(14380, 14125)
	MoveTo(14735, 15065)
	MoveTo(15116, 15996)
	MoveTo(15278, 16507)
	Out("Talking to Nick")
	;GoToNPCNearestCoords(15278, 16507)
	;GoToNPC("Nicholas Sandford")
	while($iHuntsman >= GetItemCountInventory( $ID_HUNTSMAN_GIFTS))
		GoToNPC( GetNearestNPCToCoords( 15278, 16507))
		Dialog(0x85)
		Dialog(0x86)	
		Sleep(5000)
	WEnd
	$bRunning = False
	ResignAndReturn()

EndFunc


afmart is offline  
Reply



« Returning Guild tag of a player by ID | Need Help with Rendering »

Similar Threads
Need Help making this simple app
03/22/2015 - General Coding - 1 Replies
hello I want make an application that answears me with X(if answear is true) or (O if answear is wrong) so how could I make something like this? I asked a friend and he told me "If I was you I would create a program which lets you insert questions with the correct answer and tags for the question. Then add a textbox where you can insert tags (space separated or however you prefer) and the program looks through all questions via the entered tags and shows you all fitting questions with...
[HELP]need help in making pps cards,adding new outfits,totems for new petz plz help
02/06/2009 - EO PServer Hosting - 10 Replies
hey need help plz i wanna make monsters drop bbs cards abd wabba know how 2 make eps cards all gonna on one like random portals and need help how 2 add new out fits if there any guides plz help me tysm :)
NEED help making simple auto attack script
06/28/2008 - Lineage 2 - 0 Replies
I have walker 2.03 and i need help making a SIMPLE auto attack script. All i wanna do is target mod, attack, pick up items, target closest mod and repeat. I can add heals and all that stuff later just need help starting a basic combat script.
i need help making a simple bot
06/16/2007 - Conquer Online 2 - 0 Replies
first of all i searched for how to make a bot but didnt find anything so i do appologize if this is a repost .i am trying to create my first lvling/hunting bot i want it to do the following things: -heal -pick up items and money, including comand tokens -possibally disconnect when ur getting pked i am very very new to making a bot of any kind so i dont know what program i should even use so pls someone help me out it would be very much appriciated i give karma to anyone that helps me and if...
need help making a simple autoit script
05/21/2006 - Silkroad Online - 2 Replies
hey guys, i wanna make a simple autoit script to press alt and tab every 2 mins...can anyone help me make a code for it? thnkz alot...my bot is wack, keep getting stuck in town and auto zerk dont work...so i wanna make a script tat does does 2 things to keep bot running and use zerk..



All times are GMT +1. The time now is 12:21.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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