lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 08-23-2011, 07:32 AM
Elsee Elsee is offline
The Wary
 
Join Date: Aug 2011
Posts: 3
Begginers Woe.

Hi there wanna get started writing a plugin and i cant get this to work, and i cant understand why.

Main.Lua
Code:
-- Main.lua
import "Elsees.Elsees.HelloClass";

ElseesCommand = Tubine.ShellCommand();
Tubine.Shell.AddCommand("el", ElseesCommand);

HelloClass class = HelloClass();

function ElseesCommand:Execute(cmd, args)
	if(cmd == "sayhi") then
		class.SayHello();
	else
		Turbine.Shell.WriteLine("Invalid Command");
        end
end

Tubine.Shell.WriteLine("Elsee Plugin V0.1");
HelloClass.lua
Code:
-- HelloClass
import "Turbine.Utils";
HelloClass = class( );

function HelloClass:Constructor()
	self.SayHello();
end

function HelloClass:SayHello()
	Turbine.Shell.WriteLine("Hello World!");
end
I have the Turbine Files in my plugin folder, all i get is the error "Unable to load Plugins "Elsees"", which i dont understand. from what i have googled that error was/is caused by bad directory structure?

Code:
LOTRO / Plugins / Elsees / Elsees / luafiles
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:48 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui