Addon/HelloWorld

This is a simplest addon that print "Hello World Loaded" when component load and use a slash command "/hello" to print "Hello World!".
==helloworld.xml==
<nowiki>
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns="http://www.red5studios.com/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.red5studios.com/ ../../../../schemas/component.xsd">
	<Info
		title="HelloWorld"
		author="Red5"
		description="Hello World."
		url=""
		uiVersion="1000"
	/>
	
	<Events>
		<Event name="ON_COMPONENT_LOAD" bind="OnComponentLoad" />
	</Events>
	
	<Frames>
		<HUDFrame name="Main" dimensions="left:0; width:0; top:0; height:0" visible="false">
			<OnMessage bind="OnMessage"/>
		</HUDFrame>
	</Frames>
</Component>
</nowiki>
==helloworld.lua==
<nowiki>
require "string"
require "table"
require "math"
require "lib/lib_Slash"
require "lib/lib_Util"
function printSystemMessage(message)
	Component.GenerateEvent("MY_SYSTEM_MESSAGE", {text=message})
end
function OnComponentLoad() -- ON_COMPONENT_LOAD
	LIB_SLASH.BindCallback({slash_list = "hello", description = "Hello World.", func = helloworld})
	printSystemMessage("Hello World Loaded");
end
function helloworld()
	printSystemMessage("Hello World!");
end
</nowiki>
Category:Addon_API