The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Cegaiel/Macros/SkillsTimer/Code

From A Tale in the Desert
< User:Cegaiel‎ | Macros‎ | SkillsTimer
Revision as of 06:24, 14 February 2010 by Cegaiel (talk | contribs) (New page: <pre> ^r::reload ^p::Pause ^!w:: SetDefaultMouseSpeed, 0 Msgbox, Hover mouse over a black letter, in skills tab (ie Endurance for digging)`n`nThe letter/skill you want to hover is the on...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
^r::reload
^p::Pause
^!w::
SetDefaultMouseSpeed, 0


Msgbox, Hover mouse over a black letter, in skills tab (ie Endurance for digging)`n`nThe letter/skill you want to hover is the one that turns red when you get tired`n`nWhen you are hovering a black letter it will tell you in the tooltip.`n`nPress F2, when it tells you in tooltip, to set position.`n`nClick OK to proceed...

loop
{
MouseGetPos, skillX, skillY
PixelGetColor, color, skillX, skillY, RGB

if color = 0x000000
{
ToolTip, Mouse Position: %skillX%`, %skillY%`n`nColor: BLACK`n`nPress F2 to set.
} else {
ToolTip, Mouse Position: %skillX%`, %skillY%`n`nColor: %color%
}


GetKeyState, state, F2
if state = D
{
MsgBox Skills text location recorded!`n`nHover where you want to click and press F2.`n`nFor a dig (or other skills related tasks), pin up the Dig Hole menu and set the click to the word Dig.`n`nFor limestone/dirt set the click position on the icon.`n`nClick OK to proceed...
Tooltip
break
}
}

loop
{
MouseGetPos, ClickX, ClickY

GetKeyState, state, F2
if state = D
{
Msgbox, Click location recorded!`n`nNote you can hit Ctrl+P to pause script anytime and Ctrl+P again to resume`n`nClick OK to start...
break
}
}


loop
{

WinActivate, eGenesis Client
PixelGetColor, color, skillX, skillY, RGB

if color = 0x000000
{
MouseGetPos, OldX, OldY
Click %ClickX%, %ClickY% 
MouseMove, %OldX%, %OldY%
}

Sleep 500
}