Sign in to follow this  
Followers 0
Penz

Need help with LotRO botting script

8 posts in this topic

I am still new to AutoIT, my friend just introduced me to it few days ago.

We have found this script and were trying to run it.

We got following error:

43) : ==> "While" statement has no matching "Wend" statement.:

Here is the full script:

=============================================================

sleep(3000)

While 1 = 1

send("{BACKSPACE}")

Sleep(random(1,2)*1000)

;keep pressing backspace until a target is aqquired

while PixelGetColor(626,121) <> 0x111095

send("{BACKSPACE}")

Sleep(random(1,2)*1000)

WEnd

;while target is aqquired

;also check to see if target is out of range by seeing if it has looped more than 100 times

While PixelGetColor(626,121) = 0x111095

;check health and use heal

if PixelGetColor(345,79) <> 0x2CE30E Then

send(2)

Sleep(random(1,2)*1000)

EndIf

;use piercing cry

send(4)

Sleep(random(1,2)*300)

;use herald's strike

send(1)

Sleep(random(1,2)*300)

;use ballard of vigour

send(3)

Sleep(random(1,2)*300)

send(5)

Sleep(random(1,2)*300)

send(6)

Sleep(random(1,2)*300)

WEnd

==============================================================

Could anyone help us out with this, please?

It is Minstrel Bot by the way.

Thanks in advance.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The error message says exactly the reason for your troubles. You have three "While" statements however only two are closed with "WEnd". It would be a crapshoot to guess where the third is supposed to go unless I knew anything about the bot, but my guess is you should append another "WEnd" at the very end. That way it will interminably look for a target, attacks it, and continues (I guess? I have never played this game)

Edited by Leighwyn

Share this post


Link to post
Share on other sites

sleep(3000)
While 1 = 1

send("{BACKSPACE}")
Sleep(random(1,2)*1000)
;keep pressing backspace until a target is aqquired
Try This;
[code]while PixelGetColor(626,121) <> 0x111095
send("{BACKSPACE}")
Sleep(random(1,2)*1000)
WEnd

;while target is aqquired
;also check to see if target is out of range by seeing if it has looped more than 100 times

While PixelGetColor(626,121) = 0x111095

;check health and use heal
if PixelGetColor(345,79) <> 0x2CE30E Then
send(2)
Sleep(random(1,2)*1000)
EndIf


;use piercing cry
send(4)
Sleep(random(1,2)*300)
;use herald's strike
send(1)
Sleep(random(1,2)*300)
;use ballard of vigour
send(3)
Sleep(random(1,2)*300)

send(5)
Sleep(random(1,2)*300)

send(6)
Sleep(random(1,2)*300)

WEnd
WEnd


[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites

Ermm... Thanks you, what a noobish mistake.

Its a nice opensource program indeed. I had been trying few things during last couple of hours :rolleyes:

Share this post


Link to post
Share on other sites

Can someone please upload his ready files to check them out plz iam a new member and iam trying to understand the wholl thing!!

I need the files ready to run at lotro cause i have allready an acount there !!thanks!!

Share this post


Link to post
Share on other sites

Here you go guys; working auto script for LOTRO, its grinds out the rez gather and beast hunting for you leveling up your char while you can relax ))

check it out and try the trial ; www.mmopilot.me or mmopilot dot me

Share this post


Link to post
Share on other sites

eliterpger,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

Before you argue that this is the subject of the thread - look at the date on the last post above yours. The rules have changed since then - and we do not like necro-posts either. So see you soon with a legitimate post I hope - or just stay away. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0