MasonMill Posted August 8, 2009 Share Posted August 8, 2009 Hi, On the PixelGetColor I am getting an error that says Error: Incorrect number of of parameters in function call. Why does the function with PixelSearch work but not the one with the getcolor? For my purposes the PixelGetColor would be easier. Here is the script, thanks for the help! WinWaitActive("Darkfall Online") AdlibEnable("pause", 250); this keeps running at all times till you exit. HotKeySet("{pause}","pauseset"); uses the pause key to change the value of $Pause HotKeySet("{F12}","exitscript") $Pause = -1 While 1 Send("6");my trigger current item button Sleep(2000) _WeaponCheck();looks for the absense of the red color i used on the redreach _HaltSwing();stops swinging and rests WEnd Func _WeaponCheck() $coord = PixelGetColor(1544, 790, 0x74553C, 25) If @error Then; says "that color not found in search area" so it clicks 5(my polearm rearm button) Sleep(1000) Send("5");my 0 slot on my hotbar where i have my polearm EndIf EndFunc ;==>_WeaponCheck Func _HaltSwing() $Coord = PixelSearch(1260, 783, 1273, 791, 0xCC2728, 100); position and color of stam bar;TRY GETPIXELCOLOR If @error Then Send("{F8}") Sleep(500) Send("v");shieth sleep(1000) Send("q");toggle rest sleep(500) Send("6");trigger rest sleep(130000);time it takes to rest up Send("{SPACE}");gets up Sleep(3000) Send("v");unshieth Sleep(500) EndIf EndFunc Func pauseset() $Pause = $Pause * -1 EndFunc Func pause() While $Pause = -1 Sleep(500) Wend EndFunc Func exitscript() Exit EndFunc Link to comment Share on other sites More sharing options...
MasonMill Posted August 8, 2009 Author Share Posted August 8, 2009 oh thats why, i see! there is no threshold for pixelgetcolor. Doesn't seem to work novw6, hm wonder why... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now