postreply Home » Forums » Vanguard » VGExtreme General Discussion

Autoit script that helps looting Restricted items : VGExtreme General Discussion

Posted: May 27th, 2007, 8:33 am
owner2119

Total Posts: 48
Joined: March 6th, 2007, 10:57 am
I was botting for zaraj coins and i noticed that the bot could not loot them since they are quest items. i made this script to loot them. It can be adjusted to work on any loot. If yoiu want to use for other loot just change the color cords to be true on the loot that u want. Set your loot in vge to sleep 2000 after looting to give time for script to loot. If anyone know how to do this in vge then let me know and ill put it in my bot and release it. Loot follow mouse must be off.


; Detect windows by class name
opt("winTitleMatchMode", 4)
If @error Then
MsgBox(4096, "Error", "detect window")
endif

; Set Coordinate mode to relative to window
AutoItSetOption ( "PixelCoordMode", 2 )
AutoItSetOption ( "MouseCoordMode", 2 )
AutoItSetOption ( "SendKeyDownDelay", 50 )

global $Window = winGetHandle("classname=vgclientUnrealWWindowsViewportWindow")
If @error Then
MsgBox(4096, "Error", "Could not find the correct window")
endif





; Main Loop
While WinExists($Window)
Sleep(1000);


$lootbox = lootbox();
$coinyes = coinyes();




if $lootbox = 1 and $coinyes = 1 Then
MouseClick("left", 37, 77, 2)
sleep (1000);
MouseClick("left", 742, 424, 2)
EndIf

if $lootbox = 1 and $coinyes = 0 Then
MouseClick("left", 89, 267, 2)
EndIf



Wend


Func lootbox()
WinActivate ($Window);

$color1="0x3E371E"
If pixelgetcolor(98, 19) = $color1 then
WinActivate($Window);
return 1;
Else
return 0;
endif

EndFunc




Func coinyes()
WinActivate ($Window);

$color2="0x096B8F"
If pixelgetcolor(66, 64) = $color2 then
WinActivate($Window);
return 1;
Else
return 0;
endif

EndFunc
Posted: May 27th, 2007, 4:44 pm
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
User avatar
How is this related to VGExtreme?

_________________
Use Search first, ask questions later!
Posted: May 27th, 2007, 11:13 pm
owner2119
you have the same effect without coding by settings - interface - confirmations and enable "bind on equip" so no confirmations for the coins anymore
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 9 guests
postreply