Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> lotro auto looter macro, with or without autoit
post Nov 20 2009, 10:53 PM
Post #1

tHesublime



In Training
**

Group: Members
Posts: 7
Joined: 11-November 09
Member No.: 1,042,453






Use this as a function, when ur mob is dead, select it with F10, then send U command

This example is for 1024x768 Window Mode, but can be easily edited

and then run:

This code will first find the Loot Window which popups
And then search for loot you select in the values at start!

CODE
; Activate Game Window
$winwake=WinExists ( "The Lord of the Rings Online™: Shadows of Angmar™" )
if $winwake=0 then
   Exit
endif
if $winwake=1 then
   WinActivate ( "The Lord of the Rings Online™: Shadows of Angmar™" )
endif

;What To Loot Options Maybe Retrive These From A Ini file on each function run?
$hpot=1
$mpot=1
$craft=1
$yellow=1
$purple=1
$blue=1

;Find Loot Window
$coord = PixelSearch( 0, 137, 1015, 503, 0x13109D, 1 )
If Not @error Then
   MouseMove ( $coord[0], $coord[1] , 10 )
   $loot=1
   $lx1=$coord[0]-54
   $lx2=$coord[0]+205
   $ly1=$coord[1]-2
   $ly2=$coord[1]+212
Else
    $loot=0
EndIf

;Find And Loot
; Check For Healing Potions
While $loot=1 and $hpot=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0x1db01a, 1 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
      sleep(1000)
Else
    $hpot=0
EndIf
WEnd

; Check For Mana Potions
While $loot=1 and $mpot=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0x1a4965, 1 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
      sleep(1000)
Else
    $mpot=0
EndIf
WEnd

; Crafting Items
While $loot=1 and $craft=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0x69ca99, 10 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
      sleep(1000)
Else
    $craft=0
EndIf
WEnd

; Yellow
While $loot=1 and $yellow=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0xffff00, 1 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
      sleep(1000)
Else
    $yellow=0
EndIf
WEnd

; Purple
While $loot=1 and $purple=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0xc200c7, 1 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
      sleep(1000)
Else
    $purple=0
EndIf
WEnd

; Blue
While $loot=1 and $blue=1
$coord = PixelSearch( $lx1, $ly1, $lx2, $ly2, 0x00fdff, 1 )
If Not @error Then
   MouseClick ( "left" , $coord[0], $coord[1] , 2 )
   sleep(1000)
Else
    $blue=0
EndIf
WEnd

$loot=0

;Close Loot Window
MouseClick ( "left" , $lx1+244, $ly1+29 , 1 )


This one will work without AutoIT
CODE
dim bgwHWND
dim X
dim Y
dim iteration
dim iterations

iteration = 1
iterations = 35

ownLOTROWindow
'mouseLoc

while ( iteration <= iterations)
    plantFarm
    harvestField
    lootHarvest
   debugLog "Completed iteration: " & iteration & " of " & iterations
   iteration = iteration + 1
wend


sub plantFarm
    dim X, Y
    X = randomize(336, 278)
    Y = randomize(620, 610)
    Mouse.FullMouseMove X, Y, 1
    Mouse.LMouseClick X, Y, 1, 1
    sleep 27000
end sub

sub harvestField
    dim X, Y
    X = randomize(746, 665)
    Y = randomize(596, 550)
    Mouse.FullMouseMove X, Y, 1
    Mouse.LMouseClick X, Y, 1, 1
    Mouse.RMouseClick X, Y, 1, 1
    sleep 8000
end sub

sub lootHarvest
    dim X, Y
    X = randomize(675, 592)
    Y = randomize(668, 661)
    Mouse.FullMouseMove X, Y, 1
    Mouse.LMouseClick X, Y, 1, 1
    sleep 400
end sub

sub ownLOTROWindow
    debugLog "Attempting find the LoTRO Window"
    bgwHWND = Windows.FindWindowByTitle("The Lord of the Rings Online")
    if ( bgwHWND <= 0) then
        debugLog "Whoops, you need to launch LOTRO first..."
    end if
    ShowWindow bgwHWND
    Sleep 500
    FocusWindow bgwHWND
    Sleep 500
    debugLog "Success! LOTRO Found "
end sub

function randomize (max, min)
    randomize = (Int((max-min+1)*Rnd+min))
end function


sub mouseLoc
  while (true)

   X = Mouse.GetCursorPosX()
   y = Mouse.GetCursorPosY()

   debuglog "X:" & X & "\t Y:" &Y
   Sleep 1000
  wend
end sub
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 13th March 2010 - 07:53 PM