Originally Posted by Seerah
What is your code now?
|
I tried a lot variations, but they all are not worked. Sorry, i'm really noob at addons.
This code not working:
Code:
function ButtonHelp_OnClick()
SendChatMessage("Help me!");
C_Timer.After(3, function () SendChatMessage("Somebody, help!") end);
end
XML code:
Code:
<Button name="ButtonHelp" inherits="UIPanelButtonTemplate" text="Help Button">
<Size>
<AbsDimension x="50" y="23" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="300" y="0" />
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ButtonHelp_OnClick();
</OnClick>
</Scripts>
</Button>
I just want to run this macro as addon and make special button for it:
Code:
/say Help me!
/in 3 /say I need help!