Hmm, as someone still semi new to function calling would you be willing to give me a bit more of a hint how I would go about doing this? Can I even do it externally (I have a feeling I will have to inject for this now.)
Edit: I found something that someone posted for hooking the window and calling a function within that thread. Think I found the right place. Thanks for the hint.
Does anyone know if you can retrieve the GUID of caster of a debuff in 1.12?
The lua function UnitDebuff does not retrieve it (was only added in 2.0 I think), but is it somewhere in the memory?
I don't think it is. You can sometimes infer it from the combat log (because the caster of the aura is part of a damaging log, for example), but this is not always possible.
Is there a static location to get the local player's XP / XP-Required values?
At the moment I am using Lua's DoString to call UnitXP('player') and UnitXPMax('player'), but is there a better way?
There is a better way, but I don't think there is a static location. The better way is to find the local player object, and read the descriptors for current and max xp.
Hey guys... looking for some help for anyone who knows if there is an offset for checking local player's auto-attack status or an equivalent?
For example I'm using C_getRepeatingSpell @ 0xCEAC30 to see when local player is using Auto Shot (id 75) or Wanding aka Shoot (id 5019) but it doesn't indicate Auto Attack (spell id 6603 according to Auto Attack - Spell - World of Warcraft).
Any help or suggestions would be greatly unappreciated. Unfortunately I don't have IDA and I wasn't able to download the WoW Alpha DB from the stickied thread because the link is broken.
Usually I use CE but scanning has failed me as well in this regard.
Thanks in advance!
EDIT: After taking a break to watch some trailer park boys I got back to it and thanks to CE and a hell of a lot of scanning I found:
Player Base Address + Offset 0xC48 = GUID of Auto-Attack Target
So this only shows a guid at that address if you are actively attempting to Attack (spell id 6603) aka Auto-Attack in retail WoW a mob.
Pretty useful and close-enough to what I was looking for to get the job done.
If anyone else knows a better location in the game/CVAR/LUA Funcs I would love to learn of those too. Thanks.
Last edited by RobertoSageto; 06-29-2017 at 03:24 AM.
Reason: Found it - wanted to share for anyone else
I'm trying to call a simple Function via asm (ClearTarget in my case). The issue is that I don't know the signature of that function (parameters to pass) and every single combination seems to crash WoW. I've been debugging and trying to understand what each operation does and what it calls but still haven't managed to make it.
Note: this is for learning purposes, I have selected the easiest function that I might expect, to clear target, and I assumed that it takes no parameters, but I must be wrong because it results into a crash.
I'm trying to call a simple Function via asm (ClearTarget in my case). The issue is that I don't know the signature of that function (parameters to pass) and every single combination seems to crash WoW. I've been debugging and trying to understand what each operation does and what it calls but still haven't managed to make it.
Code:
Note: this is for learning purposes, I have selected the easiest function that I might expect, to clear target, and I assumed that it takes no parameters, but I must be wrong because it results into a crash.
Unfortunately this is not interterpreted corectly by the asm compiler: "Assembly failed! Error code: -109; Error Line: 2" (why is that anyway). I've also tried every permutation of your suggestion with no success.
I'm trying to call a simple Function via asm (ClearTarget in my case). The issue is that I don't know the signature of that function (parameters to pass)
Unfortunately this is not interterpreted corectly by the asm compiler: "Assembly failed! Error code: -109; Error Line: 2" (why is that anyway). I've also tried every permutation of your suggestion with no success.
It was just plain asm code, nothing to copy paste and hey it compiles... Did you added the quotes and of course the call, retn at the end?