-
Active Member
[EWT][WOTLK] Looking for the real target of a caster
Hi guys!
Im working on a shared wotlk script repository using ewt! (url: GitHub - Romain-P/Ewt-Scripts: Wow wotlk scripts using ewt API
I would like to know how could I get the real target of a random player casting a spell e.g a mage casting sheep.
Looked at the offsets but didnt find it
Asking this cause the target could not be actually the target of the caster. The caster can cast on any unit he wants.
I know the client got the information, cause if you dont have any target and that someone casts on you, the caster becomes your target. I even used this information to find the real target in a tricky way (I clear my target when someone casts sheep, then I wait and see if my target is affected by someone, then etc...) but that's not optimized
We can clearly see this here: https://puu.sh/zrAAq/66f496888c.gif
So I would appreciate any tip! I can call offsets & cie!
Cheers
Last edited by scriptx; 02-19-2018 at 10:50 PM.
-
Active Member
-
Member
Hi, I asked something like this time ago:
Fixing the SWD poly script ONLY when it's casted on you (not on everyone)
If you /eventtrace you can see the cast has no argument relative to the target, don't know why, so I think with lua is impossible. You may try the canceltarget and see if it targets yourself when casting Poly through macro, but a macro can be set to cast to target, focus, mouseover..so I don't know if that could be a valdid option to rely on. On seduction it can be done because the pet actually targets the Seduction target while casting so you basicallly know where the spell will land (on you or on your partner). But I assume you already know all of this stuff, it's lua basic :P
I kinda give up after discovering that listening to combat log leads to nothing talkng to Polymorph or other casts, but if you find a way that could be interesting, maybe with dr tracker so you avoid swd polymorphs that are immune.
Last edited by dealerx; 02-20-2018 at 07:30 AM.
-
Post Thanks / Like - 2 Thanks
scriptx,
bynike (2 members gave Thanks to dealerx for this useful post)
-
Active Member
Ye as I said I already worked with ClearTarget() and made something that work with Lua, but that's not optimized x)
I think if we can't find it in the client, I would try to listen packets sent by the server then catch it
-
Active Member
-
Post Thanks / Like - 1 Thanks
bynike (1 members gave Thanks to scriptx for this useful post)
-
Active Member
Still up .. i cant believe none worked on since 2012
-
Active Member
-
Active Member
-
Member
-
Active Member
soz bynike, this is another up