Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31

Thread: RandBot -- a randomized clan buffbot

  1. #1
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,653

    Default RandBot -- a randomized clan buffbot

    RandBot 3.1

    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.

    Recommended:
    • 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!


    Changelog
    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.
    Attached Files
    Last edited by zarqon; 10-31-2017 at 02:26 PM.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  2. #2

    Default Re: RandBot 1.0 -- a randomized clan buffbot

    I'm having a problem downloading the ash file, is anyone else experiencing that?

  3. #3
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,653

    Default Re: RandBot 1.0 -- a randomized clan buffbot

    Ok, I just updated the RandBot.ash file... try again.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  4. #4

    Default Re: RandBot 1.0 -- a randomized clan buffbot

    Thank you, Zarq! I hope to use this a bit while I level up to 30. I'll keep you posted. Hopefully my clan will get a kick out of it.

  5. #5
    Junior Member
    Join Date
    Feb 2008
    Posts
    1

    Default Re: RandBot -- a randomized clan buffbot

    I created a kolmafia account just to say how much I like this script. I actually started a new AT solely for this bot.

    PS. The Origami gentlemens magazine is perfect for your Familiar equip.

  6. #6
    Junior Member
    Join Date
    Sep 2007
    Posts
    10

    Default Re: RandBot -- a randomized clan buffbot

    I just tried this script out and well totally awesome. This script is exactly what I need to put my clan's buff bot to use until I find more stable internet in which to run her on. I couldn't have hoped for or created a better script.

    -Enameless

  7. #7
    Junior Member
    Join Date
    Jan 2007
    Location
    Philadelphia, PA
    Posts
    20

    Default Re: RandBot -- a randomized clan buffbot

    Very nice!

    I pulled a few bits out of it to supplement my clan buffbot's scripts so now when he gets bored (no one requesting buffs) he can randomly buff clan members.
    - Wolffauer

    BuffBot: NotBot

  8. #8
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,653

    Default Re: RandBot -- a randomized clan buffbot

    Update Bump!

    I revisited this script today, since a few little things had been niggling at me:

    • RandBot will now automatically select your ccs. This was broken in mafia when I originally implemented it long ago, but seems to be working now.
    • When RandBot completes adventuring, it will print a report detailing who received which buffs. It's fun information to see.
    • Some general code and output cleanup. I've learned a bit since I wrote this.
    • Added version-checking like in my other scripts, so I won't need to always post "bump" update posts like this.


    We have a clanbot who basically runs this script every day, and we all end up with loads of random free buffs. It's great. Also, very delayed thanks to the authors of the above complimentary comments! Glad it has useful to people outside my clan as well.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  9. #9
    Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default Re: RandBot -- a randomized clan buffbot

    Just curious ... does it distinguish between hardcore and softcore clan members? Or what happens when it tries to buff hardcore/ronin members?

    Again, just curious

  10. #10
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,653

    Default Re: RandBot -- a randomized clan buffbot

    If a cast is unsuccessful, for instance the target is in Ronin/HC or already has three different AT buffs, RandBot tries a different random buff on somebody else until it finally succeeds (or until it has tried casting 10+members times).
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

Similar Threads

  1. Replies: 3
    Last Post: 02-01-2015, 07:30 PM
  2. Bug - Fixed Clear cached clan data only when actually leave current clan
    By Veracity in forum Bug Reports
    Replies: 5
    Last Post: 12-20-2013, 04:17 AM
  3. Replies: 0
    Last Post: 07-20-2013, 12:40 PM
  4. Replies: 0
    Last Post: 06-29-2012, 10:53 AM
  5. Replies: 4
    Last Post: 02-22-2010, 01:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •