Please help on leveling scripting menu

User Tag List

Results 1 to 1 of 1
  1. #1
    nvmax's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Please help on leveling scripting

    Trying to make a leveling script for road to alcarnus map, lieutenant vachem

    trying to make it check for pictures then do function Im new at scripting though thought this might work let me know this is basically autoit checking for the buttons then clicking them where it detects them I do believe then moving to the next function if found let me know what I messed up I know its not perfect.

    Let me know what i can change to make this work thanks.

    Code:
    Func ChangeQ()
    	MouseClick("left", Round(236* $x_ratio),Round(485 * $y_ratio)) ;opens change quest menu
    	$gX = 0
    	$gY = 0
    	sleep(1000)
    	If _ImageSearchArea($pngLoc & "change2.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		MouseClick("left", $gX, $gY - 3, 1, 3)
    		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    		sleep(1000)
    		Call("changeq5")
    	if _ImageSearchArea($pngLoc & "change3.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		mouseclick("left", $gX, $gY - 3, 1, 3)
    		sleep(500)
    		Call("changeq3")
    		EndIf
    	EndIf
    	EndFunc
    
    Func Changeq5()
    	 If _imagesearcharea($pngloc & "change5.png", 1, 0, 0, @Desktopwidth, @DesktopHeight, $gX, $gY, 90) Then
    			Mouseclick("left" $gX, $gY - 3, 1, 3)
    			MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;moves mouse out of the way
    			sleep(1000)
    			Call("selection")
    		EndIf
    	EndFunc
    
    func selection()
    	If _ImageSearchArea($pngLoc & "selectq.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    			Mouseclick("left" $gX, $gY - 3, 1, 3,)
    			MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    			sleep(1000)
    			call("ok")
    		EndIf
    	EndFunc
    
    func ok()
    	If _ImageSearchArea($pngLoc & "Ok.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		MouseClick("left" $gX, $gY - 3, 1, 3,)
    		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    		sleep(1000)
    		call("start")
    	EndIf
    EndFunc
    
    func start()
    	If _ImageSearchArea($pngLoc & "startgame.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		MouseClick("left" $gX, $gY - 3, 1, 3,)
    		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    		sleep(1000)
    	EndIf
    EndFunc
    
    func changeq3()
    	If _ImageSearchArea($pngLoc & "change3.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		MouseClick("left" $gX, $gY - 3, 1, 3,)
    		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    		sleep(1000)
    		call("change4")
    	EndIf
    EndFunc
    
    Func change4()
    	if _ImageSearchArea($pngLoc & "change4.png", 1, 0, 0, @DesktopWidth, @DesktopHeight, $gX, $gY, 90) Then
    		MouseClick("left" $gX, $gY - 3, 1, 3,)
    		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
    		sleep(1000)
    		call("selection")
    	EndIf
    EndFunc

    Please help on leveling scripting

Similar Threads

  1. [Lua Script] Please help with npc script
    By Aferi in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-10-2011, 12:00 PM
  2. Problem with lua script :/ please help!
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-24-2009, 05:10 PM
  3. Please help with Lua Script
    By Silentnvd in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 09-23-2008, 11:16 PM
  4. C++ Script Won't Work, Please Help!
    By guitargod218 in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 06-04-2008, 01:48 PM
  5. [Help me] Lua script error? please help.
    By Szharz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 12:20 PM
All times are GMT -5. The time now is 03:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search