;Description: Picks Up Loot.
Func PickUpLoot()
Local $lAgent
Local $aitem
Local $lDeadlock
For $i = 1 To GetMaxAgents()
If GetIsDead(-2) Then Return
$lAgent = GetAgentByID($i)
If DllStructGetData($lAgent, 'Type') <> 0x400 Then ContinueLoop
$aitem = GetItemByAgentID($i)
If CanPickUp($aitem) Then
PickUpItem($aitem)
$lDeadlock = TimerInit()
While GetAgentExists($i)
Sleep(100)
If GetIsDead(-2) Then Return
If TimerDiff($lDeadlock) > 10000 Then ExitLoop
WEnd
EndIf
Next
EndFunc
If you get error Unknown function call - it simple means your autoit script calls for a function that does not exist in your autoit files.
Next time that happens, just look in other bots and find the function your missing.
its so simple. every line hat goes like Something() is a call for a fucntion- now autoit will look for a function called something() and do that before next line
func something()
out ("hello world")
EndFunc
in this case the function just wrote hello world in GUI -
Hope this can help...
if your still having problem message me i will help you solve it.
I have tried adding these functions in GWA2 and also the bot file and jsut get error line 609 no endfunc even though there is one. Also tried copying from other scripts and still get same message. Someone has posted updated version but would be nice if i could know where i was going wrong as i dont like to leech
Looking at common gwa2 files line 609 is the region of patterns i doubt you pasted something there, so i can ipotize that the missing EndFunc is on the Vaettir file and not in the gwa2 one.
I have tried adding these functions in GWA2 and also the bot file and jsut get error line 609 no endfunc even though there is one. Also tried copying from other scripts and still get same message. Someone has posted updated version but would be nice if i could know where i was going wrong as i dont like to leech
well if you want to know how to solve that you can basicly google the error code.. your function which should start in line 609 is missing an endfunc
at the end to declare it is finished..
This stuff really is easy! Here's to bringing that egg price down! Come on folks, don't just be a leech! If you want something do a little work and research!
Awesome. I have compared these files against the ones I had previously. There was just a few incorrect lines due to how it was worded. Now I'm running into an issue of if one of the bots die, they will resurrect then zone out to Borja Marches and just stand there AFK/idle.
I'm assuming it's somewhere in here, but again.. I'm trying to learn instead of just leech.
--
;~ Description: Wait and stay alive at the same time (like Sleep(..), but without the letting yourself die part)
Func WaitFor($lMs)
If GetIsDead(-2) Then Return
Local $lAgentArray
Local $lTimer = TimerInit()
Do
Sleep(100)
If GetIsDead(-2) Then Return
$lAgentArray = GetAgentArray(0xDB)
StayAlive($lAgentArray)
Until TimerDiff($lTimer) > $lMs
EndFunc
--
Awesome. I have compared these files against the ones I had previously. There was just a few incorrect lines due to how it was worded. Now I'm running into an issue of if one of the bots die, they will resurrect then zone out to Borja Marches and just stand there AFK/idle.
I'm assuming it's somewhere in here, but again.. I'm trying to learn instead of just leech.
--
;~ Description: Wait and stay alive at the same time (like Sleep(..), but without the letting yourself die part)
Func WaitFor($lMs)
If GetIsDead(-2) Then Return
Local $lAgentArray
Local $lTimer = TimerInit()
Do
Sleep(100)
If GetIsDead(-2) Then Return
$lAgentArray = GetAgentArray(0xDB)
StayAlive($lAgentArray)
Until TimerDiff($lTimer) > $lMs
EndFunc
--
you have a clear description on top of that function..
;~ Description: Wait and stay alive at the same time (like Sleep(..), but without the letting yourself die part)
Awesome. I have compared these files against the ones I had previously. There was just a few incorrect lines due to how it was worded. Now I'm running into an issue of if one of the bots die, they will resurrect then zone out to Borja Marches and just stand there AFK/idle.
I'm assuming it's somewhere in here, but again.. I'm trying to learn instead of just leech.
--
;~ Description: Wait and stay alive at the same time (like Sleep(..), but without the letting yourself die part)
Func WaitFor($lMs)
If GetIsDead(-2) Then Return
Local $lAgentArray
Local $lTimer = TimerInit()
Do
Sleep(100)
If GetIsDead(-2) Then Return
$lAgentArray = GetAgentArray(0xDB)
StayAlive($lAgentArray)
Until TimerDiff($lTimer) > $lMs
EndFunc
--
This line:
$lAgentArray = GetAgentArray(0xDB)
Needs to be before the DO. Just put Local in front of it and delete the other local reference of it!
Someone know what i need to do, when i update my chest runner bot and he running untill it comes to open chest, then he crashing
I switch some lines, from new gwa and headers, but this for opening chest, seems like it doesn't work, so my question is, are they updated too?
Same thing for me with Deldrimor farmer, put in new Headers and GWA, fixed some double functions. Bot works fine until it wants to use the Dungeon Lock, which just crashes GW.
EDIT: Fixed with the correct Headers for GoSignPost from couple of pages ago.
Sure. My process for this was to take the headers from strecky and copy over the omni functions. Haven't tested all modes/functions - just ldoa with survivor.
This stuff really is easy! Here's to bringing that egg price down! Come on folks, don't just be a leech! If you want something do a little work and research!
hey. is the bot you posted for Me/A?
i use this setup:
Skills: OQdUAQROqPP8Id2BkAiAvpLBTAA
Domination 9+1+1
Fast Casting 8+1
Full Blessed, 3 Attunement Runes
Anniversary Shield with "Like A Rolling Stone"
but with a "normal" shield with inscr "Like A Rolling Stone" and +30hp.
but why do i die every run while he pulls right side?