hehe.. gawd. I did try lots of different. Without changing the names : P.
Im now trying the method at 0x007C4640 .. Which should be CastSpellById..
Calling it with the int value of 28189.. Which should be fel armor. But it silently fails

No errormessage.. no nothing.
Gawd.. And this one should be ThisCall / Ansi?
I feel so damn lost right now..
Edit: Cdecl gives me a crash.. And ThisCall with player as object ptr also... I really have to learn ASM. Just trying aint a very good solution
Edit2:
Quote:
It's a regular lua function, so if you want to call it manually you'll have to handle the lua stack manually. If you want to avoid all this, use Framescript__Execute and pass string.Format("CastSpellByName(\"{0}\"), Spellname) |
This actually works.. Better.. My Spell in the spellbar gets fancy highlighted... With a crash ofcourse. But progress :P