Func pickuploot()
Local $lme
Local $lblockedtimer
Local $lblockedcount = 0
Local $litemexists = True
For $i = 1 To getmaxagents()
$lme = getagentbyid(-2)
If DllStructGetData($lme, "HP") <= 0 Then Return -1
$lagent = getagentbyid($i)
If NOT getismovable($lagent) Then ContinueLoop
If NOT getcanpickup($lagent) Then ContinueLoop
$litem = getitembyagentid($i)
If canpickup($litem) Then
Do
pickupitem($litem)
Sleep(getping())
Do
Sleep(100)
$lme = getagentbyid(-2)
Until DllStructGetData($lme, "MoveX") == 0 AND DllStructGetData($lme, "MoveY") == 0
$lblockedtimer = TimerInit()
Do
Sleep(3)
$litemexists = IsDllStruct(getagentbyid($i))
Until NOT $litemexists OR TimerDiff($lblockedtimer) > Random(5000, 7500, 1)
If $litemexists Then $lblockedcount += 1
Until NOT $litemexists OR $lblockedcount > 5
EndIf
Next
EndFunc
Func pickupitem($aitem)
Local $lagentid
If IsDllStruct($aitem) = 0 Then
$lagentid = $aitem
ElseIf DllStructGetSize($aitem) < 400 Then
$lagentid = DllStructGetData($aitem, "AgentID")
Else
$lagentid = DllStructGetData($aitem, "ID")
EndIf
Return sendpacket(12, 56, $lagentid, 0)
EndFunc
Func getcanpickup($aagent)
If IsDllStruct($aagent) = 0 Then $aagent = getagentbyid($aagent)
If getassignedtome($aagent) OR DllStructGetData($aagent, "Owner") = 0 Then
Return True
Else
Return False
EndIf
EndFunc
//this is or something equal is what you should already have
//insert return True into the first line of canpickup.
In case there is no pickup function at all: insert one (as above for example) and let it run after each fight/checkpoint. Fuck runtime anyway, it's a bot that executes 1000 times faster than the game reacts.
Dat 30 mins of work?
Where do you put these lines of code so it will pick up items? mine opens end chest as bot should but doesnt pick anything up
You first learn basic programming and then try again.
*******, this topic is years old.
only just got back into gw after about a 8 year break due to my original account getting banned for botting.
ended up getting the bot working after about 10 minutes of fiddling around
[Selling] Dedicated Miniature Polar Bear 11/14/2014 - Guild Wars Trading - 3 Replies Hello! :)
I want to sell my dedicated mini polar bear.
Buyer goes first, unless you're one of the big names on the board. :pimp:
Payment exclusively via PayPal. Verified only.
c/o - ??
Anyone who wants a bot free polar bear jq etc look here 11/10/2014 - Guild Wars Trading - 4 Replies Anyone who wants bots and is going buy them don't... most of them are public... and you paying for one so many people have gotten for free. look here
Game Revision.com ... remove space and move down to the public releases
[Selling] Miniature Polar Bear(Undead),2,5 Stacks of Ectos and Unid Golds 01/21/2014 - Guild Wars Trading - 0 Replies I want to sell those things listed in title;
Miniature Polar Bear and Ectos for real world currency and Unid Golds for ingame currency(gold,ectos) or real world currency.
skype or private:arrow.e.it