Page 1 of 1

LOTRO Program - Captain Trainer

Posted: June 29th, 2007, 11:23 am
by tault_mississippi
If you you are playing a Captain, you can easily complete these two deeds with eXhume.

You can take something like the code below - find the appropriate X/Y locations for summoning your herold, dismissing him, and casting Word of Courage - and then find a nice, out of the way place to go run it.

You can complete the Captian's Valour in one day, but the Words of Courage has a 100 use cap per day on it, so you are looking at a minimum of five day's to cap it out.

Enjoy. :-)

Code: Select all

dim bgwHWND
dim X
dim Y
dim iteration
dim iterations

iteration = 0
iterations = 477

ownLOTROWindow


while ( iteration <= iterations)
  summonHerald
  healHerald
  dismissHerald
  debugLog "Completed iteration: " & iteration & " of " & iterations
  sleep 4000
  iteration = iteration + 1
wend
sub summonHerald
    Mouse.FullMouseMove 882, 935, 1 
    Mouse.LMouseClick 882, 935, 1, 1
    sleep 12000
end sub

sub healHerald
    Mouse.FullMouseMove 222, 148, 10
    Mouse.LMouseClick 222, 148, 1, 10

    Mouse.FullMouseMove 623, 938, 10
    Mouse.LMouseClick 623, 938, 1, 10
    sleep 12000
end sub

sub dismissHerald
    Mouse.FullMouseMove 222, 148, 10
    Mouse.RMouseClick 222, 148, 1, 10

    Mouse.FullMouseMove 273, 174, 10
    Mouse.LMouseClick  273, 174, 1, 10
    sleep 1000
end sub


sub summonBubba
    Mouse.FullMouseMove 882, 935, 10
    Mouse.LMouseClick 882, 935, 1, 10
    sleep 12000
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

sub mouseLoc
while (true)

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

 debuglog "X:" & X & "\t Y:" &Y
 Sleep 1000
wend
end sub

Posted: June 29th, 2007, 7:20 pm
by Tault_admin
Moving to lotroextreme location and granting 500 points nice one.

Posted: July 1st, 2007, 2:35 am
by antareus
Nice bot, although wouldn't it be easier/simpler if the bot simply used key presses instead of mouse cords?

Posted: July 1st, 2007, 3:27 am
by tault_mississippi
Perhaps - but then I wasn't particularly shooting for easy and this seemed trivial enough to me.

By the way, what is the keypress for targeting your Herald and/or dismissing your Herald?

See - since I didn't know those two pieces of information, it was far simpler for me (personally) to just use mouse coords than to go figure that out. :-)

Posted: July 1st, 2007, 7:18 am
by antareus
Tault_mississippi wrote:Perhaps - but then I wasn't particularly shooting for easy and this seemed trivial enough to me.

By the way, what is the keypress for targeting your Herald and/or dismissing your Herald?

See - since I didn't know those two pieces of information, it was far simpler for me (personally) to just use mouse coords than to go figure that out. :-)
Makes sense, but I meant in a more general view since there are a lot of users who dont seem to understand how to get mouse cords :P.
But to answer your question, you can either press F1 twice to select the herald, or press F10 if he is the nearest npc.

To dismiss the herald you just need to type /pet releaseall

There might be an easier way to target the herald, but thats what I know so far :P.

Posted: July 1st, 2007, 7:21 am
by tault_mississippi
right on. I'll see if I can work out a function that reliably targets the pet.