Post Reply Home » Forums » EverQuest 2 » EverQuest 2 Premium Discussions

Question to Pickled about addition to Crafting Macro : EverQuest 2 Premium Discussions

Posted: February 9th, 2005
tault_loraik
Hey Pickled, I was trying to wrap my head around your recipe crafting macro last night as I want to add a section that if you finish or run out of components you will camp to Char Select Screen (the infamous "Login Screen").

In an instance you run out of components you set it so the macro reads colors at each component location and if the background equals the color behind the resource then it proceedes to the mouse move cmds to bring up options, select camp, then camp to char. select screen.

For the instance you craft the amount of items you need you given a 60 sec option to select more crafting or cancel before moving thru to the camp features.

Do you think this is a resonable task for me to work into your program, or better yet do you think it will cause any issues that you can see.

I am thinking the resource location colors will have to be global var. and then using simple function formatting to take action upon the proper reaction of the color setting. The question is where would these featurs fit in your script as to not cause errors.

I reworked your Crafting macro to work on my 1288x1033 window and all my custom UI stuff.

Loraik

Loraik
Posted: February 10th, 2005
tault_akanon
Hmm - I like this idea. Do you mind if I incorporate coded colors into the next revision of MacrossUI?
Posted: February 10th, 2005
User avatar
Total Posts:1390 Joined:2004
That should be pretty easy. All of the commands you need should already be in use in Pickled's macro. Simply make it check for colors in the right places like you said and then get the macro to push ENTER and type /CAMP.

P.S. They might not be the exact camp commands (never tryed it) but there would be a command for it.
Posted: February 11th, 2005
tault_loraik
Can't seem to find the cmds to enter text. I have:

Send("{enter}") ;Press enter on keyboard

Ok so now I am at a prompt but how do I get things to type at the prompt? I am looking all through the AutoIT docs but not seeing it..

Any help please?

Loraik
Posted: February 11th, 2005
tault_loraik
Ok this is what I was able to toss together here at work... Am I barking up the right tree?

Code: Select all


;---------------------------------------------------------------------
;--- Added to global variables
;---------------------------------------------------------------------

$ingred1X = ---- ; Mouse X coordinate for the first Ingredient 
$ingred1Y = ---- ; Mouse Y coordinate for the first Ingredient 
$ingred2X = ---- ; Mouse X coordinate for the second Ingredient
$ingred2Y = ---- ; Mouse Y coordinate for the second Ingredient 
$ingred3X = ---- ; Mouse X coordinate for the third Ingredient
$ingred3Y = ---- ; Mouse Y coordinate for the third Ingredient 
$backgr1X = ---- ; Mouse X for background color of empty area for ingredients  
$backgr1Y = ---- ; Mouse Y for background color of empty area for ingredients  
$ingredback = ------- ; background color of empty area for ingredients 

;---------------------------------------------------------------------
;The next code determines pixel color and assigns to a value
;---------------------------------------------------------------------

MouseMove($ingred1X, ingred1Y, 5) 
$ingredColorBack1 = PixelGetColor($ingred2X, $ingred2Y)

MouseMove($ingred2X, ingred2Y, 5) 
$ingredColorBack2 = PixelGetColor($ingred2X, $ingred2Y)

MouseMove($ingred3X, ingred3Y, 5) 
$ingredColorBack3 = PixelGetColor($ingred3X, $ingred3Y)
	
;---------------------------------------------------------------------
;--- My intention here is if the resource runs out it see's the color now
;--- matches the empty ersource variable and pops a box up that will
;--- log you out in 60 seconds if you do not click the ABORT button on
;--- the MsgBox.  Once clicked it just drops the script then you rightclick
;--- and exit it like you would normally would

If ($ingredColorBack1 = $ingredback) Then
 	  	MsgBox(3, "Out of Resources", "You have 60 sec. to press ABORT or you will camp to the Character Selection Screen" [, 6000]) 
   		If 3 Then Exit(0) Else 
			Send("{enter}") ;Press enter on keyboard
			Send("/camp") ;Camps to Character Select Screen
			Send("{enter}") ;Press enter on keyboard
EndIf

If ($ingredColorBack2 = $ingredback) Then
 	  	MsgBox(3, "Out of Resources", "You have 60 sec. to press ABORT or you will camp to the Character Selection Screen" [, 6000]) 
   		If 3 Then Exit(0) Else 
			Send("{enter}") ;Press enter on keyboard
			Send("/camp") ;Camps to Character Select Screen
			Send("{enter}") ;Press enter on keyboard
EndIf

If ($ingredColorBack3 = $ingredback) Then
 	  	MsgBox(3, "Out of Resources", "You have 60 sec. to press ABORT or you will camp to the Character Selection Screen" [, 6000]) 
   		If 3 Then Exit(0) Else 
			Send("{enter}") ;Press enter on keyboard
			Send("/camp") ;Camps to Character Select Screen
			Send("{enter}") ;Press enter on keyboard
EndIf

I know this is prob. totally fubar, atm I am at work so I can't test but I would like to know if I am on the right track..

Loraik
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 145 guests
Post Reply