Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 23:40

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

Advertisement



Pick up script

Discussion on Pick up script within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2015
Posts: 1
Received Thanks: 0
Pick up script

I have a bot that works great but I don't know how to add a script to pick up the items. Can anyone help me with this? Thanks a lot in advance!
adelga5 is offline  
Old 06/30/2016, 16:40   #2
 
lorthan118's Avatar
 
elite*gold: 0
Join Date: May 2015
Posts: 19
Received Thanks: 0
How detailed do you want to pick up loot?

The function from GWA2 should have a PickupItems() (or Pickupitem() ) function that you could post at the end off each battle functions.
lorthan118 is offline  
Old 06/30/2016, 20:55   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Here
Quote:
Func PickUpLoot()
Local $lMe
Local $lBlockedTimer
Local $lBlockedCount = 0
Local $lItemExists = True
Local $Distance

For $i = 1 To GetMaxAgents()
If GetIsDead(-2) Then Return False
$lAgent = GetAgentByID($i)
If Not GetIsMovable($lAgent) Then ContinueLoop
$lDistance = GetDistance($lAgent)
If $lDistance > 2000 Then ContinueLoop
$lItem = GetItemByAgentID($i)
If CanPickup($lItem) Then
Do
If GetDistance($lAgent) > 150 Then Move(DllStructGetData($lAgent, 'X'), DllStructGetData($lAgent, 'Y'), 100)
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(500, 1000, 1)
If $lItemExists Then $lBlockedCount += 1
Until Not $lItemExists Or $lBlockedCount > 5
EndIf
Next
EndFunc
.Cdog is offline  
Reply


Similar Threads Similar Threads
Pick UP script or program?
01/31/2010 - Dekaron - 5 Replies
Hi is there a Pick up script for CE that character auto pick up gold. cause if vac a lot of mob. it take a while to pick up before the next patch come.
Brauche Script-Hilfe für Pick-Up-Bot (AutoIt v3)
12/31/2008 - General Coding - 8 Replies
Hallo! Also ich bin grad an einer Arbeit einen Pick Up Bot zu scripten. Leider ist das meine Erste Scriptarbeit und daher kenn ich mich noch nicht so gut aus. Nun.. Ich habe schon das hier gescriptet: Aber ich will nicht immer (und die die ihn später vll. runterladen sicher auch nicht) den Bot immer neu starten müssen wenn ich mich im Spiel unterhalte.
Script vessel does not pick up items
10/02/2007 - Conquer Online 2 - 6 Replies
I have a problem where script vessel does not pick up items (mets, dbs, elites, supers) when the conquer client im botting with is minimzed...It only recognizes and picks up items when the conquer window is on top.. This causes a problem when I am botting several peoples characters at once, and i would like them to pick up mets and dbs. :D it would be great if anyone could shed any light on the issue. Thanks in advance:cool:



All times are GMT +1. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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