Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-18-09, 02:45 PM   #1
Aeragon
A Kobold Labourer
Join Date: Oct 2008
Posts: 1
Question how to call a function from xml

Hi,

I have trouble calling a function from the xml file

<Scripts>
<OnLoad>
DEFAULT_CHAT_FRAME:AddMessage("Loading InstaBolt", 255, 0, 0);
InstaBolt_OnLoad()
DEFAULT_CHAT_FRAME:AddMessage("Loaded InstaBolt", 255, 0, 0);
this:RegisterEvent("VARIABLES_LOADED")
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED") then
InstaBolt_Events()
else
InstaBolt_OnEvent(event,...)
end
</OnEvent>
</Scripts>

That code work before 3.1 and now it don't work anymore, the function InstaBolt_OnLoad() isn't call. I can't figure out what I need to do to be able to call function in my lua file.

Can someone help me?

Last edited by Aeragon : 04-18-09 at 02:54 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » how to call a function from xml


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off