Can't use "userfunctions" o.O

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Can't use "userfunctions" o.O

#1 Post 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]);
Attachments
jd_UseFood.lua
Usage: useFood(food[,buff]);
(546 Bytes) Downloaded 156 times
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

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

#2 Post 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.
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

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

#3 Post 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!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Post Reply