API:Hello World
From TheWarWiki
WAR API Help
Create a folder called HelloWorld in your Warhammer Online - Age of Reckoning\Interface\AddOns\ directory
Make a new file, HelloWorld.mod in HelloWorld, with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<ModuleFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UiMod name="HelloWorld" version="1.0" date="07/08/2008" >
<Author name="ckknight" email="ckknight@gmail.com" />
<Description text="Says Hello World" />
<Dependencies>
<Dependency name="EA_ChatWindow"/>
</Dependencies>
<Files>
<File name="HelloWorld.lua" />
</Files>
<OnInitialize>
<CallFunction name="HelloWorld.PrintMessage" />
</OnInitialize>
<OnUpdate/>
<OnShutdown/>
</UiMod>
</ModuleFile>
Make a new file, HelloWorld.lua in HelloWorld\, with the following contents:
HelloWorld = {}
function HelloWorld.PrintMessage()
EA_ChatWindow.Print(towstring("Hello, World!"))
end
