Penz Posted June 26, 2007 Share Posted June 26, 2007 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. Link to comment Share on other sites More sharing options...
Leighwyn Posted June 26, 2007 Share Posted June 26, 2007 (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 June 26, 2007 by Leighwyn Link to comment Share on other sites More sharing options...
Kogmedia Posted June 26, 2007 Share Posted June 26, 2007 expandcollapse popupsleep(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 Link to comment Share on other sites More sharing options...
Penz Posted June 26, 2007 Author Share Posted June 26, 2007 Ermm... Thanks you, what a noobish mistake. Its a nice opensource program indeed. I had been trying few things during last couple of hours Link to comment Share on other sites More sharing options...
Chika95 Posted May 13, 2008 Share Posted May 13, 2008 I see that this is an old post but just in case someone runs into this in the future. I've developed an open source bot for LOTRO. See the following thread:http://www.autoitscript.com/forum/index.ph...amp;hl=LOTRObot Link to comment Share on other sites More sharing options...
notis Posted June 7, 2009 Share Posted June 7, 2009 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!! Link to comment Share on other sites More sharing options...
eliterpger Posted October 1, 2013 Share Posted October 1, 2013 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 1, 2013 Moderators Share Posted October 1, 2013 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. 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts