Ninjakreborn Posted January 27, 2008 Share Posted January 27, 2008 I am trying to learn the LUA language to an extent. I am wanting to write world of warcraft add-ons. The language itself isn't much of a language as far as learning. It's a pretty basic language, with rather basic syntax. There are some modifications to it due to the world of warcraft api that changes the way the language functions slightly. I am trying to write a basic add-on TOC File ## Title: MultiAddon ## Notes: This is a multi add-on that encompasses many different features over many different areas. See features list/change list for more data ## Interface: 20300 ## DefaultState: enabled ## Author: Joyel Puryear ## Version: 1.0 MultiAddon.xml MultiAddon.lua Lua File // function to be called on wow load function MultiAddon_load() SlashCmdList["MULTI_ADDON"] = MultiAddon_runcommand; SLASH_MULTI_ADDON1 = "/MultiAddon"; end // Run command functions when /test1 is called. function MultiAddon_runcommand() logout(); end Xml File <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> <Script file="MultiAddon.lua" /> <Frame name="MultiAddonCore"> <Scripts> <OnLoad>MultiAddon_load();</OnLoad> </scripts> </Frame> </Ui> Ok. Basically this isn't working. I practically know XML. I have studied some LUA, enough to be able to do this. IT's got something to do with how I am structuring the files. I have rewritten the coding for it 5-6 times, studied all resources I could find online. It has something to do with either the onload not loading, or the slash commands not registering properly. THere are limited resources online available for this. using some of the wow fan sites, wow wiki's and multiple tutorials I understand a lot about how to do some things. But I am trying to get this first test add-on working so I can build off of it, does anyone see anything obvious that might be wrong? Quote Link to comment https://forums.phpfreaks.com/topic/88060-solved-lua-basic-wow-interface/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.