Jeg har følgende 3 filer:
mipscript.toc:
## Interface: 4784
## Title: MipScript
## Notes: This is my mod, nothing fancy.
mipscript.xml
mipscript.xml:
<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/
..\FrameXML\UI.xsd">
<Script file="mipscript.lua"/>
<Frame parent="UIParent">
<Scripts>
<OnLoad>
mipScript_OnLoad();
</OnLoad>
</Scripts>
</Frame>
</Ui>
mipscript.lua:
function mipScript_OnLoad()
SLASH_MIPSCRIPT1 = "/miptext";
SLASH_MIPSCRIPT2 = "/mipt";
SlashCmdList["MIPSCRIPT"] = MipScript_Slash;
end
function mipScript_Slash(text)
DEFAULT_CHAT_FRAME:AddMessage("Text: " .. text);
end
Hvor er det lige jeg gør noget galt?
