taultunleashed logoQuestion to Pickled about addition to Crafting Macro : EverQuest 2 Premium Discussions
newtopic  postreply
 [ 5 posts ] 
blue large dot

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

Posted: February 9th, 2005, 9:46 pm
 
tault_loraik
tault_loraik's Reps:
User avatar
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


Reply with quote
Posted: February 10th, 2005, 7:51 am
 
tault_akanon
tault_akanon's Reps:
User avatar
Hmm - I like this idea. Do you mind if I incorporate coded colors into the next revision of MacrossUI?


Reply with quote
Posted: February 10th, 2005, 12:39 pm
 
Tault_nazeroth

Total Posts: 1390
Joined: November 17th, 2004, 5:16 pm
Tault_nazeroth's Reps: 1
User avatar
Moderator
premium
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.


Reply with quote
Posted: February 11th, 2005, 1:49 am
 
tault_loraik
tault_loraik's Reps:
User avatar
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


Reply with quote
Posted: February 11th, 2005, 3:46 am
 
tault_loraik
tault_loraik's Reps:
User avatar
Ok this is what I was able to toss together here at work... Am I barking up the right tree?

Code:

;---------------------------------------------------------------------
;--- 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


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 18 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of EverQuest 2 Premium Discussions RSS Feed 
Sitemap of EverQuest 2 Premium Discussions Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?