Setup a few bots so far, slowly getting used to it, so much fun !
One issue I have is that sometimes they get stuck, IE a chest perfectly on a corner that blocks the normal route.
Does anyone know of a way to incorporate a "stuck" fuction, that will if the XY coords stay relatively unchanged, or the next waypoint isn't got to after some long delay resets the run?
Setup a few bots so far, slowly getting used to it, so much fun !
One issue I have is that sometimes they get stuck, IE a chest perfectly on a corner that blocks the normal route.
Does anyone know of a way to incorporate a "stuck" fuction, that will if the XY coords stay relatively unchanged, or the next waypoint isn't got to after some long delay resets the run?
Ty for any help
Don't know if it can help you; here a part from a bot with "stuck" function
Quote:
Func MoveAggroing1($lDestX, $lDestY, $lRandom = 150)
If GetIsDead(-2) Then Return
Local $lMe, $lAgentArray
Local $lBlocked
Local $lAngle
Local $stuckTimer = TimerInit()
Move($lDestX, $lDestY, $lRandom)
Do
RndSleep(50)
$lMe = GetAgentByID(-2)
$lAgentArray = GetAgentArray(0xDB)
If GetIsDead($lMe) Then Return False
If DllStructGetData($lMe, 'MoveX') == 0 And DllStructGetData($lMe, 'MoveY') == 0 Then
$lBlocked += 1
If $lBlocked < 4 Then
Move($lDestX, $lDestY, $lRandom)
Elseif $lBlocked < 8 then
$lAngle += 40
Move(DllStructGetData($lMe, 'X')+200*sin($lAngle), DllStructGetData($lMe, 'Y')+200*cos($lAngle))
elseif $lBlocked >= 8 Then
killDerv()
EndIf
elseIf $lBlocked > 0 Then
If TimerDiff($ChatStuckTimer) > 3000 Then ; use a timer to avoid spamming /stuck
SendChat("stuck", "/")
$ChatStuckTimer = TimerInit()
EndIf
$lBlocked = 0
TargetNearestEnemy()
sleep(1000)
If GetDistance() > 1100 Then ; target is far, we probably got stuck.
If TimerDiff($ChatStuckTimer) > 3000 Then ; dont spam
SendChat("stuck", "/")
$ChatStuckTimer = TimerInit()
RndSleep(GetPing())
EndIf
EndIf
EndIf
Similar question, trying to create a bot that returns the value of a mat (here ecto, 930) & prints it to the GUI (it's just a little subpart of a much larger project).
I'm having a few issues understanding the two functions TraderRequest and GetTraderCostValue though
My understanding was TraderRequest request's a quote from the vendor of said item and returns true or false depending on if it get's it or not (planning on adding an if false to prevent the script running if it doesn't get the fresh quote).
GetTraderCostValue should return the price of said item. But i'm getting the error :
Code:
$BuyLabel = GetTraderCostValue(930)
$BuyLabel = ^ERROR
Error : Incorrect number of parameters in function call.
Where am I going wrong? How can I debug this issue?
Can't find any info on the GetTraderCostValue function so not sure what variables it's expecting..
Tried it without the "930" and it doesn't show the error but also returns nothing to my label..
$BuyLabel = GetTraderCostValue(930)
$BuyLabel = ^ERROR
Error : Incorrect number of parameters in function call.
Where am I going wrong? How can I debug this issue?
Your Call of the function GetTraderCostValue is wrong, as your AutoIt Error States you, there are no parameter on GetTraderCostValue...
First you have to call
Code:
TraderRequest(930)
then you can get the returns price
Code:
GetTraderCostValue()
I would put a little SleepTime in between
Code:
sleep(100+GetPing())
Quote:
Originally Posted by rgegegergerg
Similar question, trying to create a bot that returns the value of a mat (here ecto, 930) & prints it to the GUI (it's just a little subpart of a much larger project).
I'm having a few issues understanding the two functions TraderRequest and GetTraderCostValue though
My understanding was TraderRequest request's a quote from the vendor of said item and returns true or false depending on if it get's it or not (planning on adding an if false to prevent the script running if it doesn't get the fresh quote).
GetTraderCostValue should return the price of said item. But i'm getting the error :
Can't find any info on the GetTraderCostValue function so not sure what variables it's expecting..
Tried it without the "930" and it doesn't show the error but also returns nothing to my label..
Any help is appreciated thanks
With the latest updates, a pattern changed wich is handling the TraderSection (Buying, Selling) stuff, without updating these patterns you probably wont get any return from GetTraderCostValue()
Hey all, I’m a full-time software developer and recently got back into Guild Wars to start making bots as a hobby. This forum has been an awesome resource and props to all of the main contributors around here making/updating bots and helping out everyone. Some people seem unappreciative of the few folk that are really doing a lot to support this community and I want to say thank you to those guys.
I’ve started editing a Vaettir bot with success but I’d like to make it more intelligent when it comes to handling items. Things like salvaging certain Mods, saving r9 items of specific attributes, salvaging Highly Salvagable items, and salvaging items for specific materials.
My idea was to make a script that bots could require in their script that would act as a module to handle these different scenarios with a GUI to select and prioritize what inscriptions/mods you’d like to salvage/store, items and requirements you’d like to store, materials you’d aim to salvage from items that don’t meet any of the other criteria, etc.
My question is, is this something that’s already done or attempted? Is this more work than I assume? I’ve laid out a decent sized framework of GUI, functions and workflow. But I haven’t developed a bot start to finish yet and I’m not sure if it’s even possible to make a ‘module’ like this that can be essentially plugged in to existing bots to handle their item/inventory logic.
Yes, someone has created a very extensive inventory manager like this. I think there are several that I know of and yes, this is an extensive project. It may be your best course to get an example to modify and upgrade as its quite an effort to develop from start to finish on your own.
I would also suggest collecting some development tools from this site and others to assist you in your efforts.
The Func EnsureEnglish() is hooked through the $mLabels array in Windows 10 along with $mCharname and other important Kernel and Windows handle data and should work normally as this is not a header or pattern value. Most likely the problem is that someone altered your gwa2.au3 and destroyed the Initialize routine... I would try a different gwa2.au3 or you can upload yours on another thread and I can take a look.... another option is to just change your game to English in the regular game menu.
Hi guys,
i was wondering if somebody have thought or done something about margonite or titan gemstones farm in DOA ? seem it doesn't exist but i can be wrong
Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?
Let me know if anyone has a solution, or has any idea what might be causing this?
Here you go Andy! I see you asked for heroes... I am going to check for that... but, I will leave this.
Code:
FUNC USESKILLEX($ASKILLSLOT, $ATARGET = -2)
IF GETISDEAD(-2) OR NOT $BOT_RUNNING THEN RETURN FALSE
$TDEADLOCK = TIMERINIT()
USESKILL($ASKILLSLOT, $ATARGET)
DO
SLEEP(250)
IF NOT $BOT_RUNNING OR GETISDEAD(-2) THEN RETURN FALSE
IF GETMAPLOADING() == 2 THEN
DISCONNECTED()
RETURN FALSE
ENDIF
UNTIL GETSKILLBARSKILLRECHARGE($ASKILLSLOT) <> 0 OR TIMERDIFF($TDEADLOCK) > 5000
RETURN 1
ENDFUNC
Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?
Let me know if anyone has a solution, or has any idea what might be causing this?
What bot or function are you using to flag a hero / heroes ? maybe the sendPacket adress is wrong...i have try a kabob farmer with a 1 hero flag and it don't crash...
GWA2 :
Quote:
;~ Description: Place a hero's position flag.
Func CommandHero($aHeroNumber, $aX, $aY)
Return SendPacket(0x14, $HEADER_HERO_PLACE_FLAG, GetHeroID($aHeroNumber), FloatToInt($aX), FloatToInt($aY), 0)
EndFunc ;==>CommandHero
;~ Description: Place the full-party position flag.
Func CommandAll($aX, $aY)
Return SendPacket(0x10, $HEADER_PARTY_PLACE_FLAG, FloatToInt($aX), FloatToInt($aY), 0)
EndFunc ;==>CommandAll
Exemple from Kabob farmer to flag 1 hero but with use the CommandAll (full-party position flag) :
Hello guys, i got hacked and gm didnt help me :( so i ask for help here 12/22/2009 - Kal Online - 25 Replies Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days...
GM Reply
Hello.
This is Kalonline.
We checked over your report and blocked hackers.
HELP! I need help scripting 02/06/2007 - Conquer Online 2 - 1 Replies OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help 12/13/2006 - Lineage 2 - 0 Replies Hey, just asking a few questions hope you don't mind ^_^
I'm looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time.
I've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting.
If this isn't possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case?
Thanks. ^_^
Note: If you...
I need help scripting 09/05/2006 - General Coding - 0 Replies Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D