What does it do?
RandBot is a script which randomly maxcasts a random buff on a random clan member. Random!
How does it work?
RandBot is designed to function best as a mood script, although it can also be called directly. You will get maximum randbuffing from this while adventuring using the starfish trick.
RandBot only functions in aftercore. It automatically detects what buffs you can cast, and gets a list of your clan members (hitting the server for this once per day, not once per run). Before each combat, if you have at least randbot_reqamt MP (default 50), it picks a random buff and a random clan member, and maxcasts that buff on that clan member. Awesome!
RandBot will skip casting on inactive players. Inactivity is determined by the number of days since last login. Default is 7 days (1/4 of what KoL uses in the clan roster) but you can edit that number to suit your clan's size and activity level.
There are three variables you can edit in the script -- a clannie blacklist (for clan members you want to skip), a whitelist (for extra-clan members you want to include), and a buff blacklist (for buffs you want to skip). Read the script for further details.
- High-level character (avoid getting hit, high MP cap).
- Items that reduce the MP cost of skills.
- Items to increase the duration of buffs (relevant Epic weapons, JEW hat).
- Boosted monster level will result in more MP gained per combat.
- Heavier familiars will result in more MP gained per combat.
How to use it:
- Download RandBot.ash and recordings.ash to your scripts directory.
- Install SmartStasis (or use your own "stasis" ccs of choice).
- Get ZLib if you don't have it already.
- Optionally, configure RandBot's script settings, either using Prefref Plus in the relay browser, or by editing your vars_myname.txt file. All of the settings for RandBot begin with "randbot_".
- Add the script to your mood: Unconditional trigger | call RandBot.ash
- Report any bugs or suggestions here!
11.6.07 - ver. 1.0 posted.
11.7.07 - Added a check to prevent possible endless loop when no clannies can recieve your buffs.
11.30.07 - 1.1 changes: fixed a situation where the script would abort if you began with full MP, reorganized the code a bit, simplified minimum MP requirement, compacted and increased stat report.
12.17.07 - Automated the selection of the custom combat script! Also, restores your original combat/ccs settings, and your original familiar (optional).
12.27.07 - 1.2 changes: Rolled back the ccs selecting due to errors. It will still set you to use a ccs, but it will not specify the script. Clear conditions before adventuring, to prevent an error if there were leftover conditions. RandBot also now shows ministats after each combat, so you don't have to wait until the end to see how meat/MP-profitable an area is.
1.13.08 - Allows the user to specify where to adventure, rather than using your last location.
6.19.08 - 1.3 changes: Reimplemented ccs autoselecting. Included version-checking. Code and print optimizations. Print a report afterwards showing who received which buffs.
10.14.08 - 1.4 changes: Added Hobopolis buffs to the list of buffs.
10.15.08 - 2.0 major update! Randbot will now skip casting on inactive members (members who have not logged in for X days). X is configurable in the script -- default is the KoL standard 30 days, but I recommend something much smaller. Added an option to skip casting on PvP players. Also added a blacklist, so you can skip casting on any players you want. Skips casting on yourself by default (by default, you are the only player in the blacklist).
11.29.08 - 2.1 changes: now that we load showplayer.php for each clannie, don't bother trying to cast on people in HC or Ronin. Added functionality for whitelisting players not in your clan. Remove swap_familiar option. Lower default inactivity threshold to 15 days.
5.05.09 - 2.2 changes: drastically improve post-run report format. Also print a mini-report for each player after each cast.
6.14.09 - 2.3 changes: moved some functions out -- now requires ZLib. Fixed the color of Hobopolis buffs in final report.
7.25.09 - 2.4 changes: use script settings rather than variables, now that the new Zlib makes that available.
12.30.09 - 2.5 changes: added Crimbo '09 buff. Use ZLib's new vprint().
3.24.09 - 2.6 changes: fix url_encoding error introduced with recent build. Note player level when updating players, and don't attempt to cast Hobopolis buffs on players under level 15.
2.20.14 - 3.0 changes: RandBot is now a mood script. Various other enhancements.
10.31.17 - 3.1 changes: http => https. Also burn mana making recordings if applicable. Rather than save the clan in an external file, simply maintain it in a static variable. Also track casting and initiate daily casting limit per player per buff. Print reports after each cast and at the end of the day.