View Single Post
11-02-10, 06:01 PM   #9
TransformedBG
A Fallenroot Satyr
Join Date: Oct 2010
Posts: 23
Originally Posted by Dridzt View Post
Your OnEvent is a couple parameters short too:
xml
Code:
<OnEvent>GuildLevelUp.OnEvent(self, event, ...);</OnEvent>
lua
Code:
function GuildLevelUp.OnEvent(self, event, ...)
Secondly it looks like the script handler in the xml are trying to call functions that are out of scope.

You have 'local GuildLevelUp' on top of your .lua file.

Try changing the function names in the .xml to GLUA.OnEvent and GLUA.OnLoad
The whole getting a local reference to a global table deal is pointless for this particular case btw.

YTMD! Scope.. oh how i have forgot about that word..

But just curious.. what does "..." mean exactly?
  Reply With Quote