This is my first addon, but i have worked with several other scripting languages before and i have created complicated macros for guild memebers.
I am having a problem with registering an event. It just doesn't react to the event, and i really don't get why. It might be due to loads pre-2.0 information available everywhere. My LUA looks like this:
Code:
function RLM_OnLoad
this:RegisterEvent("UNITDIESOTHER");
end()
function RLM_OnEvent(event)
if(event == "UNITDIESOTHER") then
message("lol");
end
end
Furthermore my XML looks like this:
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="RLM.lua"/>
<Frame name="RLM" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent">
<Anchors>
<Anchor point="TOP"/>
</Anchors>
<Size>
<AbsDimension x="45" y="26"/>
</Size>
<Layers>
.. basically just some text in my frame ..
</Layers>
<Frames>
.. more frames, buttons and stuff ..
</Frames>
<Scripts>
<OnLoad>
RLM_OnLoad();
</OnLoad>
<OnEvent>
RLM_OnEvent(event);
</OnEvent>
</Scripts>
</Frame>
</Ui>
I really don't get why i dont get a "lol" message when i kill a rat ingame.
Any help would be appreciated.
/Psiphos