Thread Tools Display Modes
09-16-13, 03:43 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Trinket/Item proc

Is there any event to check when a trinket/item is being procced or to get the spells id for it's buff at lteast since 5.4?

Last edited by Resike : 09-16-13 at 03:51 PM.
  Reply With Quote
09-17-13, 09:59 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
Typically, procs trigger a spellcast that ends up in the Combat Log just as any other ability initiated by the player. You will need to keep track of what SpellIDs trigger from an item to tell the difference between a proc and a normal spellcast. Note all procs will have the spellcast Combat Log event originate from the player.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
09-17-13, 02:52 PM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by SDPhantom View Post
Typically, procs trigger a spellcast that ends up in the Combat Log just as any other ability initiated by the player. You will need to keep track of what SpellIDs trigger from an item to tell the difference between a proc and a normal spellcast. Note all procs will have the spellcast Combat Log event originate from the player.
And can i know which spell is the trinket is going to trigger now?
  Reply With Quote
09-17-13, 03:29 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I think you're asking how to know what the spell ID is? Look it up on wowhead - the id is in the url for the effect.
__________________
"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
09-17-13, 05:09 PM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Seerah View Post
I think you're asking how to know what the spell ID is? Look it up on wowhead - the id is in the url for the effect.
Yes i'm aware of that but since blizzard already added the internal cooldown into the trinket's tooltip, i guess then i can make an internal cooldown tracker addon for it without creating a database for all the trinekets about their proc spell id and cooldown.
  Reply With Quote
09-17-13, 07:10 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Just because the client has some info doesn't mean that the UI does. (And I didn't know what you were asking because of... well... how you said it. )
__________________
"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
09-22-13, 05:11 AM   #7
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Seerah View Post
Just because the client has some info doesn't mean that the UI does. (And I didn't know what you were asking because of... well... how you said it. )
Yeah i'm sorry my first language isn't english, anyway i don't see whats the point of adding the internal cooldowns for the new procc trinkets if you can't use that info for pretty much nothing.
  Reply With Quote
09-22-13, 12:43 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Let me rephrase what I said. Just because the cooldown information is added to the tooltip by the client, doesn't mean that there is an API for your addon to gather that information on its own. If this is the case, you will need to build your own database if you wish to have access to this information without scanning the tooltip for it.
__________________
"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
09-23-13, 02:42 AM   #9
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Seerah View Post
Let me rephrase what I said. Just because the cooldown information is added to the tooltip by the client, doesn't mean that there is an API for your addon to gather that information on its own. If this is the case, you will need to build your own database if you wish to have access to this information without scanning the tooltip for it.
Well my idea was the scanning tooltip too, but it's much better then keeping a big database up to date, since wowhead shows procc/item ids wrong in like 90%.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Trinket/Item proc

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