Page 1 of 1

Can't use "userfunctions" o.O

Posted: Tue Nov 23, 2010 10:44 pm
by jduartedj
Hi,

I made a function to check if a certain food buff was "on" and if it wasn't to eat the food!

But when I created a function file "name.lua" and placed it under userfunctions dir the bot wouldn't recognize the function!

To test my fucntion I placed it in functions.lua file of rom-bot and voila it works!

Why can't I use the userfunctions dir?

EDIT: Here look at the file if you want to.

Code: Select all

Usage: useFood(food[,buff]);

Re: Can't use "userfunctions" o.O

Posted: Wed Nov 24, 2010 12:51 am
by Administrator
You must name the file addon_whatever.lua for it to be loaded properly. If you use multiple files, only the main file needs to follow this convention.

Re: Can't use "userfunctions" o.O

Posted: Wed Nov 24, 2010 7:07 pm
by jduartedj
Administrator wrote:You must name the file addon_whatever.lua for it to be loaded properly. If you use multiple files, only the main file needs to follow this convention.
AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!! right thank you! case closed!