Ranger study macro

macros macros macros

Moderators: Phineas, noivad

Post Reply
User avatar
Talas
Exile
Posts: 599
Joined: Sun Aug 22, 2010 10:57 am
Profession: Fighter
Race: Concealed
Player Status: Active
Location: Munich, Germany
Contact:

Ranger study macro

Post by Talas » Thu Apr 28, 2011 12:06 am

Hi there...

I was thinking about a ranger study macro but first wanted to ask if there is one already...

My idea was like

Code: Select all

/study kitten
do the study command
   start loop for text log analysis
   if text-log contains "begin study" ...
        if text-log contains "kitten" exit macro (success)
        "else" cancel the study just started and re-enter the study command
   "else" check for "too strong" message and exit loop in case
goto loop start
so anyone did something like that already?
Cause i keep on hitting the wrong creep after starting the study comand and always have to cancel again which takes time...

User avatar
warawonda
Exile
Posts: 230
Joined: Fri Feb 11, 2011 8:39 pm
Profession: Mystic
Race: Sylvan
Player Status: Spambot
Location: Puzzle Island

Re: Ranger study macro

Post by warawonda » Fri Apr 29, 2011 1:55 am

Code: Select all

/study
{
set check @env.textLog.word[9]
set name @text.word[0]
"/use /study \r"
message * Checking
pause 13
if check < name
message * Study Successfully Started.
else if check > name
message * Check Failed
"/use /study /cancel " check " \r"
}
use: /study <name>
note this only allows 2 second pause before hitting
the rich get richer, and the poor get poorer; enter clanlord, and they wonder why no one new joins and stays on

Post Reply