Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 44

Thread: acquireBuff - Get a buff from a buffbot

  1. #21

    Default

    Yeah i know the feeling, when i was working on the same problem i designed a script to refill the buffs kinda like a between battle script using a improved version of this code. In mine though i just run the buffs from a datafile thats made by a webpage. It would be nice to just be able to grab the buff list from mood management but its not possible currently.

  2. #22
    Developer
    Join Date
    Apr 2006
    Posts
    925

    Default

    I've updated this to check if you have too many at songs before requesting.
    Better Basement Automation - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  3. #23

    Default

    This is a bit of an update I did awhile ago, handles a lot of the AT song problems
    Attached Files

  4. #24
    Developer
    Join Date
    Apr 2006
    Posts
    925

    Default

    I just found a case where the script didn't think I had the four songs modifier when I did so it didn't request a buff, I'll look into fixing it in the next couple days.
    Better Basement Automation - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  5. #25

    Default

    So I just switched over to using this library for requesting buffs, but I'm running into some wierdness.

    This is how I'm calling it:
    "acquireBuff2 Carlweather's Cantata of Confrontation"

    And I seem to get an infinite loop... I understand waiting for the buff, but it seems to send kmail every 30 seconds.

    > Checking for updates (running ZLib ver. : 22)...
    > You have a current version of ZLib.
    > AcquireBuff.ash made by rinn, updated by oly0015
    > So it seems you need Carlweather's Cantata of Confrontation
    > Attempting to get the song Carlweather's Cantata of Confrontation
    > Carlweather's Cantata of Confrontation
    > Refreshing buffbot data...
    > Buffbot data refreshed.
    > Previous value of acquireBuff_last_update: 20110214
    > Changed to 20110215.
    > Sending kmail to Noblesse Oblige for 4meat

    send a kmail to Noblesse+Oblige: 4 Meat
    > Refreshing buffbot data...
    > Buffbot data refreshed.
    > Previous value of acquireBuff_last_update: 20110215
    > Sending kmail to Noblesse Oblige for 4meat

    send a kmail to Noblesse+Oblige: 4 Meat
    > Refreshing buffbot data...
    > Buffbot data refreshed.
    > Previous value of acquireBuff_last_update: 20110215
    > Sending kmail to Noblesse Oblige for 4meat

    send a kmail to Noblesse+Oblige: 4 Meat
    > Refreshing buffbot data...
    > Buffbot data refreshed.
    > Previous value of acquireBuff_last_update: 20110215
    > Sending kmail to Noblesse Oblige for 4meat

  6. #26
    Developer
    Join Date
    Nov 2008
    Location
    Paris, France
    Posts
    4,510

    Default

    To avoid retrieving the buffbot data at each try, replace line 114
    PHP Code:
    cli_execute("zlib acquireBuff_last_update = " today_to_string()); 
    with
    PHP Code:
    vars["acquireBuff_last_update"] = today_to_string();
    updatevars(); 
    Another issue is that the script should try a first online bot (as determined by is_online()), and try the next one if you don't get the buff after waiting. The problem is that gather_data() is called at each try, and gather_data() resets the "online" flag that was meant to be switched off to skip the buffbot on the next iteration.

    The best way to avoid this would be to only call gather_data() only once, from the top level so it is called even if another script imports acquireBuff.ash. Simply move line 210
    PHP Code:
    gather_data(); 
    to the top level (on line 100 for example, right after the function is defined).
    Try the Nemesis Quest Script or the FamiliarFeeder interface.
    *shakes KoLMafia tech support magic 8-ball* Update mafia to the latest daily .JAR!
    NEW Dad ASCENSION STARTED 20120730
    ------------------------------
    Welcome to Parenthood, Noob

  7. #27
    Developer
    Join Date
    Apr 2006
    Posts
    925

    Default

    It only took 8 months but I updated the script with Slyz's fixes.
    Better Basement Automation - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  8. #28
    Developer
    Join Date
    Apr 2006
    Posts
    925

    Default

    I fixed an issue that wasn't causing the four songs modifier to get rechecked (because it was in the top level). I'll update it in a second.
    Better Basement Automation - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  9. #29

    Default

    I just updated to daily build 11180, and now when I use this script I get "Function 'to_skill(skill)' undefined." on this line:
    else if ((mp_cost( to_skill( activesong[knownsong] ) )+1)<cost)

    Anybody know what changed? I've been using this same script for about a year.

  10. #30
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Yeah, some meaningless conversions were removed about a month ago during a code tidying binge. For instance what the point of converting a skill to a skill? Get rid of the to_skill() and you'll be fine.

    Actually you must be using an old version of the script since it doesn't even seem to have the line you were quoting. Just download the new version.
    Last edited by Bale; 06-21-2012 at 08:50 AM.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


Similar Threads

  1. Feature - Rejected New Buffbot
    By EvilSpud in forum Bug Reports
    Replies: 1
    Last Post: 08-04-2012, 03:10 PM
  2. Bug - Fixed Buffbot buff casting weirdness
    By starkid in forum Bug Reports
    Replies: 23
    Last Post: 09-29-2010, 02:36 PM
  3. Buffbot - cast buff on someone besides sender
    By That FN Ninja in forum Scripting Discussion
    Replies: 3
    Last Post: 08-01-2009, 05:21 PM
  4. Add buff to buffbot not working
    By mooshotty in forum Community Support
    Replies: 8
    Last Post: 11-15-2007, 05:30 AM
  5. Add Buffbot
    By Pyro Kittens in forum Community Support
    Replies: 5
    Last Post: 01-25-2007, 12:04 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
  •