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
Last edited by Xrystal : 05-21-18 at 12:40 PM.
|