I'm currently trying to learn how to make mods. I made one (it's called "Looky"), but in-game (at the character select screen) it says that it's "Incompatible". Could somebody help me find the bug(s) in my code?
XML:
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/ ..FrameXMLUI.xsd">
<Script file="Looky.lua"/>
<Frame name="Looky_Frame">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Frames>
<Button name="Looky_Button">
<Scripts>
<OnClick>
Hearth()
</OnClick>
</Scripts>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Button>
</Frames>
</Frame>
</Ui>
LUA:
Code:
function Hearth()
UseContainerItem(0, 1[, 1);
end
TOC:
Code:
## Interface : 20400
## Name : Looky
## Notes : An addon to use the first item in your bag (usually Hearthstone) when the button is clicked.
## Author : MelonRind
Looky.xml
Looky.lua
Please don't tell me to look through other mods, I've done that. Other than that, all help is greatly appreciated.