Results 1 to 10 of 10

Thread: Automatic Rave Combo for pickpocketing as a Disco Bandit

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

    Default Automatic Rave Combo for pickpocketing as a Disco Bandit

    Here's a cute little consult script I just got around to writing since I wanted an example for the wiki that did something interesting, but wouldn't be very long.

    This will attempt to steal by any means possible. If you've got two chances to steal because you're wearing the Bling of the New Wave and fail the first time, then it will attempt to steal a second time. If you fail to pick a pocket, then if you're a Disco Bandit it will attempt the Rave Combo that is guaranteed to steal an item.

    PHP Code:
    void main(int initroundmonster foestring url) {
       while(
    contains_text(url"form name=steal")) {
          
    url steal();
          if((
    contains_text(url"grab something") || contains_text(url"You manage to wrest")))
             return;   
    // Something has been stolen. Job done!
       
    }
       if(
    my_class() != $class[Disco Bandit]) return;
       
    matcher combo create_matcher("(.+),(.+),(.+)"get_property("raveCombo5"));
       if(
    combo.find())
          for 
    i from 1 to 3 {
             if(
    contains_text(url"You win the fight")) return;
             
    url use_skill(combo.group(i).to_skill());
          }

    Use it like any other consult script:

    Code:
    [ default ]
    1: consult RaveSteal.ash
    2: attack
    Of course, this is just a little stand-by until zarqon adds Rave Combos to FTF/SS, but I liked it, so I thought I'd share it.
    Last edited by Bale; 03-18-2010 at 12:43 AM.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  2. #2
    Senior Member
    Join Date
    Mar 2006
    Posts
    118

    Default

    Very nice, thank you!

  3. #3

    Default

    Alright, I'm a total Mafia noob. I can't figure out how to get this script to run, and not for lack of trying. How does it know what makes up the Rave Combo? Also, Mafia doesn't seem to let me use the Rave moves in the custom combat script thing. When I click Save, it changes them to "attack with weapon". Any idea what I'm doing wrong?

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

    Default

    Save the code as a script in your /script directory as RaveSteal.ash. (You'll want to copy-paste it into notepad or other unformatted text editor.) Consult scripts are not part of the ccs. Then set up your CCS as I suggested.

    The script only works if you've used the Rave Combo in a recent version of mafia. Mafia then recognizes that you used a combo and saved the information about the skill order to do that. This information can then be recalled with get_property("raveCombo5"). I then parse it out using a regular expression.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  5. #5
    Senior Member adeyke's Avatar
    Join Date
    Feb 2009
    Location
    Bühlerzell, Germany
    Posts
    202

    Default

    And just to emphasize: you'll need a recent daily build for rave skill support, since even the newest official release (13.9) doesn't have it.

  6. #6

    Default

    Yep, I needed to update to the daily version of Mafia. Thanks

  7. #7
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Default

    OK, this is cool. I've never looked at the scripting detail before.

  8. #8

    Default

    Hello!

    I've been trying to use this script in my CCS, consulting as per the directions, but it seems to attempt to rave steal even if a pickpocket attempt is successful. I was wondering if I need to run the script alone first (and set the variables it asks for). I have a build 10005 at the present, and do have all the combos saved into mafia.

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

    Default

    Is "consult RaveSteal.ash" the first thing in your CCS? Is your KoL autoattack disabled?
    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

  10. #10

    Default

    It was me being dumb and forgetting to turn off auto-attack: steal >.> Thank you very much for the help!

Similar Threads

  1. Replies: 7
    Last Post: 04-11-2015, 03:02 PM
  2. New Content - Implemented Disco Bandit Revamp
    By Bale in forum Bug Reports
    Replies: 54
    Last Post: 10-24-2013, 09:05 PM
  3. Bug - Not A Bug Rave Combo Helper fails to learn any combos
    By Morgoth1145 in forum Bug Reports
    Replies: 45
    Last Post: 09-18-2012, 11:42 AM
  4. How to set rave combo?
    By Deathless Assassin in forum Community Support
    Replies: 3
    Last Post: 09-20-2011, 05:05 AM
  5. Feature - Implemented Autodiscover sixth Rave Combo
    By Darzil in forum Bug Reports
    Replies: 2
    Last Post: 01-20-2011, 05:21 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
  •