Page 1 of 1
New to this ...
Posted: Sun Sep 25, 2011 1:52 pm
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
Re: New to this ...
Posted: Sun Sep 25, 2011 6:46 pm
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
Re: New to this ...
Posted: Mon Sep 26, 2011 1:57 am
by Daystar
ok sweet thanks lisa i couldnt figure out where to put the file was my issure =P got it now thx!
Re: New to this ...
Posted: Mon Sep 26, 2011 7:46 pm
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.
Re: New to this ...
Posted: Mon Sep 26, 2011 8:10 pm
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 =)
Re: New to this ...
Posted: Tue Sep 27, 2011 3:49 am
by imaginethat
awesome, thanks Lisa.
Looks like the userfunctions folder is my new home.