New to this ...

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Daystar
Posts: 2
Joined: Sun Sep 25, 2011 1:47 pm

New to this ...

#1 Post by Daystar »

Hey guys hows it going .. im new to this and im looking for some assistance .. i got my rombot up and fully working ...

however i cannot for the life of me figure out how to add in new scripts, rombot wiki isnt very helpful on this topic and when i tried googleing all i got was RSBot help .. and ive looked threw 25 pages of forums here with no luck

ive tried just putting the file in the script/rom folder as a .XML .. and ive tried putting it in just the scripts folder

if anyone can give me an indepth guide on how to add new scripts it would be much appreciated
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: New to this ...

#2 Post by lisa »

what do you mean add in new scripts? are you saying you are getting scripts from others and they don't have the file extension .xml ?

all waypoint files go in the
scripts/rom/waypoints
folder
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Daystar
Posts: 2
Joined: Sun Sep 25, 2011 1:47 pm

Re: New to this ...

#3 Post by Daystar »

ok sweet thanks lisa i couldnt figure out where to put the file was my issure =P got it now thx!
imaginethat
Posts: 61
Joined: Sun Jul 10, 2011 10:39 pm

Re: New to this ...

#4 Post by imaginethat »

Hi
I have been using the "userfunctions.lua" file (currently over 1000 lines) to add all my functions into. When I need to add code to a waypoint file, I generally try to create a function, as I probably need to add it to other waypoint files, so just add the function call in the waypoint file.

Am I able to split this userfunctions.lua file up into grouped function files? and what is the deal with the "userfunctions" folder. Can I create any old file (correctly named "addon_blablabla_functions.lua" and it do the same job as the userfunctions.lua file?
Is there anything magical about an "addon" as opposed to a file containing general functions?

Do I need to watch out for anything if using the userfunctions folder?

My functions are all working as expected, but I might be missing an easier way of organising things.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: New to this ...

#5 Post by lisa »

any file in the userfunctions folder with name

userfunction_blahblah.lua

will be loaded by bot.

I've got 26 userfunction files in my userfunctions folder, makes it easier to organise =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
imaginethat
Posts: 61
Joined: Sun Jul 10, 2011 10:39 pm

Re: New to this ...

#6 Post by imaginethat »

awesome, thanks Lisa.
Looks like the userfunctions folder is my new home.
Post Reply