Quote:
Originally Posted by MagicTurlte
@ [Only registered and activated users can see links. Click Here To Register...] As posted above i have spent a while trying to edit the vaettir, both o.3v and nyila version. v0.3 works till you pick up look function line 609 which i have tried editing and swapping out other scripts but no avail. nyila version wont run stops at line 439 again i changed things but still no luck. Any pointers?
|
Add this to Gwa2 or Vaettir v0.3
;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. :)