Sign in to follow this  
Followers 0
lazyaznricicle

Error: Unknown function name?

4 posts in this topic

#1 ·  Posted (edited)

Hey guys i was  editing this script my friend gave me and changed it to suit my needs but for some reason i get the error.
I'm not sure what the problem with it is because it seems fine to me but i am new to this so any help would be greatly appreciated.

It gives me Error: Unknown function name 
line 16
I'm not sure what is the problem there because it seems fine to me but i am new to this so any help would be greatly appreciated.
 
Here is the script.
 
 

Dim $Kill, $Delay, $Delay2
HotKeySet("{F9}", "Start") ; F9 to Start
HotKeySet("{F10}", "Stop") ; F10 to Stop
 
$Delay = 1000 ; NPC Chat Delay
$Delay2 = 7000 ; 10sec wait before redoing / reaccepting the quest.
 
 
While 1
    Sleep(200)
WEnd
 
Func Stop()
    $Kill = True
EndFunc                            
                                                                      THE PROBLEM IS THIS LINE
Func Start()
    $Kill = False
    While Not $Kill
        Opt("MouseCoordMode", 0)
  
WinWaitActivate("Age of Wushu  Launch-BlueDragon","")
 
 
MouseClick("right",374,105,1)
Sleep($Delay)
MouseClick("left",289,488,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",423,106,1)
Sleep($Delay)
MouseClick("left",289,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",465,108,1)
Sleep($Delay)
MouseClick("left",291,485,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",501,110,1)
Sleep($Delay)
MouseClick("left",261,490,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",557,117,1)
Sleep($Delay)
MouseClick("left",282,481,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",599,103,1)
Sleep($Delay)
MouseClick("left",242,487,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",387,155,1)
Sleep($Delay)
MouseClick("left",278,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",422,148,1)
Sleep($Delay)
MouseClick("left",267,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",472,162,1)
Sleep($Delay)
MouseClick("left",285,482,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",508,145,1)
Sleep($Delay)
MouseClick("left",256,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",549,156,1)
Sleep($Delay)
MouseClick("left",279,494,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",595,155,1)
Sleep($Delay)
MouseClick("left",262,489,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",382,195,1)
Sleep($Delay)
MouseClick("left",301,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",424,199,1)
Sleep($Delay)
MouseClick("left",280,487,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",470,193,1)
Sleep($Delay)
MouseClick("left",303,487,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",507,197,1)
Sleep($Delay)
MouseClick("left",281,481,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",552,193,1)
Sleep($Delay)
MouseClick("left",287,484,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",590,192,1)
Sleep($Delay)
MouseClick("left",257,491,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",380,238,1)
Sleep($Delay)
MouseClick("left",295,490,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",431,238,1)
Sleep($Delay)
MouseClick("left",300,483,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",461,232,1)
Sleep($Delay)
MouseClick("left",277,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",508,238,1)
Sleep($Delay)
MouseClick("left",273,498,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",554,234,1)
Sleep($Delay)
MouseClick("left",284,486,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",598,237,1)
Sleep($Delay)
MouseClick("left",267,487,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",385,279,1)
Sleep($Delay)
MouseClick("left",282,490,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",421,289,1)
Sleep($Delay)
MouseClick("left",276,487,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",459,284,1)
Sleep($Delay)
MouseClick("left",286,492,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",513,279,1)
Sleep($Delay)
MouseClick("left",268,493,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",554,282,1)
Sleep($Delay)
MouseClick("left",281,483,1)
Sleep($Delay)
Sleep($Delay2)
MouseClick("right",599,273,1)
Sleep($Delay)
MouseClick("left",274,496,1)
Sleep($Delay)
Sleep($Delay2)
    WEnd
EndFunc

Thanks

Edited by Melba23
Added tags

Share this post


Link to post
Share on other sites



Dont think we are supposed to help with game bots on this forum... o:)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Dont think we are supposed to help with game bots on this forum... o:)

Lol yeah true

didnt really think about it since i just started learning how to use auto it and what not and that was the first thing that came to mind was this to see if i could use it on this game and apparently it does work so :D:D

Edited by lazyaznricicle

Share this post


Link to post
Share on other sites

lazyaznricicle,



didnt really think about it

Well, I suggest you do think about it in future. Please read the Forum rules (there is also a link at bottom right of each page) before you post again. Thread locked. :naughty:

M23

P.S. And if you want to post code please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see above now I have added the tags. ;)
 


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