Thread Tools Display Modes
11-17-07, 06:53 AM   #1
WaldoJeffers
A Molten Giant
 
WaldoJeffers's Avatar
Join Date: Jan 2007
Posts: 564
A Trinket macro

Can you make a macro to cast a trinket with a spell? If the trinket is on cooldown then just skip that line and cast the spell ( CoA in this case)

ie.
/cast [trinket] (if its off cooldown)
/cast Curse of Agony

That way i can ensure that trinket will never get any downtime if its being used with a frequently used spell.

Thanks for anything
__________________
I said lady, step inside my Hyundai

Last edited by WaldoJeffers : 11-17-07 at 09:00 AM.
  Reply With Quote
11-17-07, 10:36 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
It would be /use Trinket Name since it's an item and not a spell. Try this:

Code:
/use Trinket of Doom
/stopcasting
/cast Curse of Agony
I'm not sure if it will continue to the spell if the trinket's on cooldown or if it will fail.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-17-07, 11:21 AM   #3
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
I'm pretty sure you can /cast trinkets as I use /castsequence 13, 14.

and it will skip past it if its on cooldown.
  Reply With Quote
11-17-07, 12:27 PM   #4
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 193
The castsequence command will not skip spells or items in a cooldown state, you will just get an error message until it can cast the spell or use the item.

Macro's cannot check for cooldowns. However, LUA can with the GetActionCooldown(slot) function. But you cannot do any casting based on the results because of Blizzards protected functions.

My suggestion would be to write a castsequence macro with enough CoA's to "fill up" the cooldown time for your trinket (i.e. /castsequence Trinket_Name, Curse of Agony, Curse of Agony, Curse of Agony, Curse of Agony, Curse of Agony).
__________________
"Don"t tase me bro!" ~ Andrew Meyer
  Reply With Quote
11-17-07, 02:29 PM   #5
WaldoJeffers
A Molten Giant
 
WaldoJeffers's Avatar
Join Date: Jan 2007
Posts: 564
Thanks
Before I got replies I tried doing it myself ( which i should of done , but i had my doubts)

I made this

/cast vengeance of the illidari
/cast Curse of Agony

It works fine, skips the trinket line and casts CoA if trinket is on CD Except so far, its a CoA button with A vengeance of the illdari cooldown ticking on it.
And also it has no tooltip at all (i want tooltip for CoA not vengeance of the illdari)
__________________
I said lady, step inside my Hyundai
  Reply With Quote
11-17-07, 04:06 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
#showtooltip Curse of Agony
/cast vengeance of the illidari
/cast Curse of Agony
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-17-07, 04:30 PM   #7
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 193
Ok, thats just odd then. I tried making this macro:

/cast Ankh of Life
/cast Flash of Light

But if the trinket is on CD, i get an error, Item is not ready yet, and it does NOT continue to cast the spell. Any idea why?
__________________
"Don"t tase me bro!" ~ Andrew Meyer
  Reply With Quote
11-17-07, 09:07 PM   #8
WaldoJeffers
A Molten Giant
 
WaldoJeffers's Avatar
Join Date: Jan 2007
Posts: 564
Well im not sure about that, But when my trinket is on CD I get the error message but it will also cast the next line Spell ( CoA in this case)
__________________
I said lady, step inside my Hyundai
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » A Trinket macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off