View Single Post
05-21-18, 12:16 PM   #31
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
UNIT_SPELLCAST_SUCCEEDED changes

The UNIT_SPELLCAST_SUCCEEDED event now returns 3 values:

1. unit
2. code string - see below for an example
3. spell id

Teleport Dalaran (Northrend) resulted in the following

1. player
2. Cast-3-2084-571-11759-53140-000503097C
3. 53140

Portal Dalaran (Northrend) resulted in the following

1. player
2. Cast-3-2084-571-11759-53142-0000830AEF
3. 53142

After doing a few tests only the last two values changed, the spell ID depending on the spell cast and the last value intermittently and may be the same on different spells cast close together so could be a timestamp of sorts.

Edit: Correction, it appears that last value changes per cast, with multiples sometimes appearing on a single button click. Looks like validating argument 2 against the previous to confirm if it is a repeat or not may be required

Edit2: Correction again ... forgot that my code was doing the event test on several buttons with each checking its relevance rofl. Only 1 event per spell cast
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 05-21-18 at 12:40 PM.
  Reply With Quote