run protected LUA functions?

05/11/2010 12:06 run32.dll#1
Hi there

before I start with the serious shit let me explain why I did this:
Yesterday I tried to script a small addon that helps me while I do some Multiboxing with 6 Characters. I had no idea how to do this so I had to google for addon development tutorials.

What should this addon do for me?:
-Assist the partyleader to get his target (I control the partyleader manually)
-Cast the Mage Flame-spell if the target is alive

Everything went fine until I tested this:
PHP Code:
function romboxer_OnUpdate()
    --
AssistUnit("party1")
    if ( 
UnitIsDeadOrGhost("target") == false ) then
        CastSpellByName
("Flame")
        
DEFAULT_CHAT_FRAME:AddMessage("CSBN->Flame")
    
end
end 
While testing this I could see the "CSBN->Flame"-messagespam in my chat. That means the script was executed properly. BUT the character did NOT start casting? wtf why? Well lets find out, google is my friend:
[Only registered and activated users can see links. Click Here To Register...]
Looks like I can't do this -.- ... but damn it I want to!

I fired up IDA and f*cking(!) 8hours later I finally managed to find that damn peace of shit code that prevents the execution of 'CastSpellByName'. Now I can use my addon.

edit:
*removed the theorypart because it was crap*
Will post a LUA-dump when I get my hands on the new binary tomorrow.

This little lua-fix can be quite powerfull if you're an addondeveloper. PM me if you need it - but I want something good in return. I used this fix to create an addon that heals me and my party while I only move my character ... yes I'm lazy :D