View Single Post
02-04-20, 11:02 AM   #8
Nodos7
A Murloc Raider
 
Nodos7's Avatar
Join Date: Feb 2020
Posts: 4
Originally Posted by Seerah View Post
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!
  Reply With Quote