Hmm it feels like Im spamming this forum with noobish questions.. but.
Im trying to get rid of my "press key" when casting spells. Kinda sucks when you change bindings etc etc. So Im trying to use the CastSpellByName method.
Code:
[UnmanagedFunctionPointer(CallingConvention.ThisCall, CharSet = CharSet.Ansi)]
private delegate void CastSpellByNameDelegate(string name);
private CastSpellByNameDelegate _CastSpellById;
public void Run()
{
if (_CastSpellById == null)
{
_CastSpellById = Utilities.RegisterDelegate<CastSpellByNameDelegate>((IntPtr)0x004EDAF0);
}
_CastSpellById("Fel Armor");
}
Guess what. It doesnt work. Anyone with decent asm knowledge who can help me get the Method at 4EDAF0 right?
please...
(perhaps its time to buy hexrays soon... )