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
  	        

helloworld.lua
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