Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COOLDOWNS explanation and examples.
Cooldowns is a new feature/command for macros.

It allows doing very time specific and more advanced macros with it.

Here they are
Cooldown.Create(CooldownName, Delay)

Lets start with explanation.

Cooldown.Create(CooldownName, Delay)
this command creates cooldown with specified name, starts COUNTING down to ZERO from the time we specified in milliseconds.
Cooldown.Create(ADVERTISE, 600000)
Creates Cooldown named ADVERTISE that counts down from 1 minute to 0.

This command RESETS cooldown to 0 with given name.

This command will return value of remaining miliseconds of given cooldown (or 0 if inactive)


These two commands basically do the same thing but in contrary.
Lets say we activated our cooldown ADVERTISE with first command and its counting down.
Cooldown.Blocked(ADVERTISE) will return result 1
Cooldown.UnBlocked(ADVERTISE) will return result 0
But when our cooldown ADVERTISE is inactive results would be swapped.

So here is easiest example of use i can think of.

We make macro to YELL a message once every minute.

1000 {advert}
Self.Yell(SELL XXXXX for 123456, pm me)
Cooldown.Create(ADVERTISE, 600000)

But there is much more use for cooldowns than simple message spamming.
I took it to the next level, as u can see on my latest LURE MACRO

But what is also very interesting, that as a NAME of cooldown we can use a VARIABLE,
for example ID of our Target.

Here is example of manual macro for advanced attack that you can use 'utori kor'
bleeding spell on anything you target once every time cooldown is finished.
Very useful on OTS where Inflict Wound short, or no exhaust
to use against INVISIBLE targets like warlocks or Warzone monsters.

[macro]0 {Utori KOR} Cooldown.Blocked(KOR:TargetID)==0 Self.Say(utori kor) Cooldown.Create(KOR:TargetID, 59000) exit() [/macro]

[Image: bOarP6j.png][Image: KQqaWR2.png]

Post your ideas for cooldown use in here

Forum Jump:

Users browsing this thread: 2 Guest(s)