zerachiel Posted December 13, 2011 Share Posted December 13, 2011 (edited) well, i've trying to make an some script for my game,i have created many script :1. auto attack2. auto healing char HP3. auto uses char Mana Potion4. auto healing pet hp5. auto uses pet mana potionthis is my auto attack scriptGlobal $Paused HotKeySet("{PAUSE}", "TogglePause") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused SoundPlay(@WindowsDir & "mediachord.wav",0) While $Paused sleep(100) ToolTip("BOT Disable",253,583) Sleep(100) WEnd If NOT $Paused Then SoundPlay(@WindowsDir & "mediading.wav",0) EndIf Sleep(100) ToolTip("BOT Enable",253,583) Sleep(100) ;---------------------------------------------------------------------------------------------------------------------------------------------------------------------- While 1=1 Send("`") ;looking for s Sleep(1900) Send("1") ;attack Sleep(100) Send("2") ;skill 2 Sleep(100) Send("3") ;skill 3 Sleep(100) Send("4") ;skill 4 Sleep(100) send("{space}") ;pick up monster's drop item Sleep(100) WEnd ;---------------------------------------------------------------------------------------------------- EndFuncand this is my auto heal scriptDo $coord = PixelSearch (88, 101, 137, 104, 0x5A553A) If Not @error then Send("Q") EndIf Until ProcessClose ("The Void-CRYSTAL SAGA at R2Games.com - Mozilla Firefox")=Truei combined this script become :expandcollapse popupGlobal $Paused HotKeySet("{PAUSE}", "TogglePause") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused SoundPlay(@WindowsDir & "mediachord.wav",0) While $Paused sleep(100) ToolTip("BOT Disable",253,583) Sleep(100) WEnd If NOT $Paused Then SoundPlay(@WindowsDir & "mediading.wav",0) EndIf Sleep(100) ToolTip("BOT Enable",253,583) Sleep(100) ;---------------------------------------------------------------------------------------------------------------------------------------------------------------------- While 1=1 Send("`") ;looking monster Sleep(1900) Send("1") ;attack Sleep(100) Send("2") ;skill 2 Sleep(100) Send("3") ;skill 3 Sleep(100) Send("4") ;skill 4 Sleep(100) send("{space}") ;pick up monster's drop item Sleep(100) Call("Char HP") WEnd Func Char HP() $coord = PixelSearch (88, 101, 149, 104, 0x5A553A) If Not @error then Send("Q") EndIf EndFunc ;------------------------------------------------------------------------------------------------------------------------------------ EndFuncbut the script error, do you have any idea to help me? ======================================================| sorry about my grammar |====================================================== Edited December 13, 2011 by zerachiel Link to comment Share on other sites More sharing options...
zerachiel Posted December 13, 2011 Author Share Posted December 13, 2011 i need help you guys Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 13, 2011 Moderators Share Posted December 13, 2011 zerachiel,Welcome to the AutoIt forum. You seem to have missed the Forum Rules on your way in. Please read them now and then you will understand why you will get no help and this thread will shortly be closed. I hope to see you again soon with a legitimate question. M23P.S. Bumping your own thread within 24hrs is another thing not to do, by the way! 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...
zerachiel Posted December 13, 2011 Author Share Posted December 13, 2011 oke then, sorry about my mistake Link to comment Share on other sites More sharing options...
Recommended Posts