Results 1 to 2 of 2

Thread: Barrel Mech choice adventure support

  1. #1
    Senior Member
    Join Date
    Sep 2006
    Posts
    360

    Default Barrel Mech choice adventure support

    I have enclosed a longish snippet from my session log recording a battle with The Biggest Barrel:

    Code:
    [448821] map to the Biggest Barrel
    Encounter: The Biggest Barrel
    Took choice 1102/1: A Giant Barrel
    choice.php?whichchoice=1102&option=1&pwd
    Encounter: The Barrelmech of Diogenes
    Round 0: DeepThought wins initiative!
    Round 1: Grog says, "you may have heard that those of my tribe have no brains. Well, look upon this and tremble! I have extra brains in my SHORT PANTS!" Your opponent looks unprepared for the mental challenge to come.
    Round 1: The Barrelmech of Diogenes drops 33 attack power.
    Round 1: The Barrelmech of Diogenes drops 33 defense.
    Round 1: DeepThought executes a macro!
    Round 1: DeepThought casts CURSE OF MARINARA!
    Round 2: Johnny makes you a fried peanut-butter-and-banana-sandwich, then accidentally eats it himself. You feel so relieved that you didn't have to eat it that you get an extra spring in your step.
    Round 2: You gain 8 hit points
    Round 2: You gain 2 Mana Points
    Round 2: The Barrelmech of Diogenes takes 7 damage.
    Round 2: You gain 7 hit points
    Round 2: The Barrelmech of Diogenes takes 2 damage.
    Round 2: The Barrelmech of Diogenes takes 2 damage.
    Round 2: The Barrelmech of Diogenes takes 9 damage.
    Round 2: You lose 984 hit points
    Round 2: DeepThought casts SUMMON LOVE STINKBUG!
    Round 3: Johnny makes you a fried peanut-butter-and-banana-sandwich, then accidentally eats it himself. You feel so relieved that you didn't have to eat it that you get an extra spring in your step.
    Round 3: You gain 6 hit points
    Round 3: You gain 4 Mana Points
    Round 3: The Barrelmech of Diogenes takes 6 damage.
    Round 3: You gain 6 hit points
    Round 3: The Barrelmech of Diogenes takes 2 damage.
    Round 3: The Barrelmech of Diogenes takes 18 damage.
    Round 3: The Barrelmech of Diogenes takes 3 damage.
    Round 3: The Barrelmech of Diogenes takes 6 damage.
    Round 3: You lose 716 hit points
    Round 3: DeepThought uses the tin snips and uses the tin snips!
    Round 4: The Barrelmech of Diogenes takes 10 damage.
    Round 4: The Barrelmech of Diogenes takes 9 damage.
    Round 4: Johnny makes you a fried peanut-butter-and-banana-sandwich, then accidentally eats it himself. You feel so relieved that you didn't have to eat it that you get an extra spring in your step.
    Round 4: You gain 4 hit points
    Round 4: You gain 5 Mana Points
    Round 4: The Barrelmech of Diogenes takes 17 damage.
    Round 4: The Barrelmech of Diogenes takes 7 damage.
    Round 4: You gain 7 hit points
    Round 4: The Barrelmech of Diogenes takes 1 damage.
    Round 4: The Barrelmech of Diogenes takes 17 damage.
    Round 4: The Barrelmech of Diogenes takes 3 damage.
    Round 4: The Barrelmech of Diogenes takes 6 damage.
    Round 4: You lose 806 hit points
    Round 4: DeepThought uses the tin snips and uses the tin snips!
    Round 5: The Barrelmech of Diogenes takes 8 damage.
    Round 5: The Barrelmech of Diogenes takes 8 damage.
    Round 5: The Barrelmech of Diogenes takes 29 damage.
    Round 5: The Barrelmech of Diogenes takes 7 damage.
    Round 5: You gain 7 hit points
    Round 5: The Barrelmech of Diogenes takes 2 damage.
    Round 5: The Barrelmech of Diogenes takes 18 damage.
    Round 5: The Barrelmech of Diogenes takes 3 damage.
    Round 5: The Barrelmech of Diogenes takes 4 damage.
    Round 5: You lose 716 hit points
    Round 5: DeepThought uses the tin snips and uses the tin snips!
    Round 6: The Barrelmech of Diogenes takes 10 damage.
    Round 6: The Barrelmech of Diogenes takes 10 damage.
    Round 6: The Barrelmech of Diogenes takes 49 damage.
    Round 6: The Barrelmech of Diogenes takes 6 damage.
    Round 6: You gain 6 hit points
    Round 6: The Barrelmech of Diogenes takes 1 damage.
    Round 6: The Barrelmech of Diogenes takes 20 damage.
    Round 6: The Barrelmech of Diogenes takes 3 damage.
    Round 6: The Barrelmech of Diogenes takes 7 damage.
    Round 6: You lose 984 hit points
    Round 6: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 7: The Barrelmech of Diogenes takes 26 damage.
    Round 7: The Barrelmech of Diogenes drops 5 attack power.
    Round 7: The Barrelmech of Diogenes drops 5 defense.
    You acquire an item: New Age hurting crystal
    Round 7: You gain 500 hit points
    Round 7: The Barrelmech of Diogenes takes 49 damage.
    Round 7: The Barrelmech of Diogenes takes 7 damage.
    Round 7: You gain 7 hit points
    Round 7: The Barrelmech of Diogenes takes 2 damage.
    Round 7: The Barrelmech of Diogenes takes 18 damage.
    Round 7: The Barrelmech of Diogenes takes 2 damage.
    Round 7: The Barrelmech of Diogenes takes 5 damage.
    Round 7: You lose 716 hit points
    Round 7: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 8: The Barrelmech of Diogenes takes 25 damage.
    Round 8: The Barrelmech of Diogenes drops 5 attack power.
    Round 8: The Barrelmech of Diogenes drops 3 defense.
    You acquire an item: New Age hurting crystal
    Round 8: You gain 500 hit points
    Round 8: The Barrelmech of Diogenes takes 49 damage.
    Round 8: The Barrelmech of Diogenes takes 6 damage.
    Round 8: You gain 6 hit points
    Round 8: The Barrelmech of Diogenes takes 1 damage.
    Round 8: The Barrelmech of Diogenes takes 16 damage.
    Round 8: The Barrelmech of Diogenes takes 3 damage.
    Round 8: The Barrelmech of Diogenes takes 2 damage.
    Round 8: You lose 806 hit points
    Round 8: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 9: The Barrelmech of Diogenes takes 28 damage.
    Round 9: The Barrelmech of Diogenes drops 3 attack power.
    Round 9: The Barrelmech of Diogenes drops 3 defense.
    You acquire an item: New Age hurting crystal
    Round 9: You gain 500 hit points
    Round 9: The Barrelmech of Diogenes takes 49 damage.
    Round 9: The Barrelmech of Diogenes takes 7 damage.
    Round 9: You gain 7 hit points
    Round 9: The Barrelmech of Diogenes takes 1 damage.
    Round 9: The Barrelmech of Diogenes takes 18 damage.
    Round 9: The Barrelmech of Diogenes takes 2 damage.
    Round 9: The Barrelmech of Diogenes takes 10 damage.
    Round 9: You lose 716 hit points
    Round 9: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 10: The Barrelmech of Diogenes takes 23 damage.
    Round 10: The Barrelmech of Diogenes drops 4 attack power.
    Round 10: The Barrelmech of Diogenes drops 3 defense.
    You acquire an item: New Age hurting crystal
    Round 10: You gain 500 hit points
    Round 10: The Barrelmech of Diogenes takes 50 damage.
    Round 10: The Barrelmech of Diogenes takes 7 damage.
    Round 10: You gain 7 hit points
    Round 10: The Barrelmech of Diogenes takes 2 damage.
    Round 10: The Barrelmech of Diogenes takes 17 damage.
    Round 10: The Barrelmech of Diogenes takes 1 damage.
    Round 10: The Barrelmech of Diogenes takes 10 damage.
    Round 10: You lose 716 hit points
    Round 10: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 11: The Barrelmech of Diogenes takes 25 damage.
    Round 11: The Barrelmech of Diogenes drops 5 attack power.
    Round 11: The Barrelmech of Diogenes drops 5 defense.
    You acquire an item: New Age hurting crystal
    Round 11: You gain 500 hit points
    Round 11: The Barrelmech of Diogenes takes 46 damage.
    Round 11: The Barrelmech of Diogenes takes 7 damage.
    Round 11: You gain 7 hit points
    Round 11: The Barrelmech of Diogenes takes 2 damage.
    Round 11: The Barrelmech of Diogenes takes 17 damage.
    Round 11: The Barrelmech of Diogenes takes 1 damage.
    Round 11: The Barrelmech of Diogenes takes 7 damage.
    Round 11: You lose 806 hit points
    Round 11: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 12: The Barrelmech of Diogenes takes 24 damage.
    Round 12: The Barrelmech of Diogenes drops 3 attack power.
    Round 12: The Barrelmech of Diogenes drops 5 defense.
    You acquire an item: New Age hurting crystal
    Round 12: You gain 500 hit points
    Round 12: The Barrelmech of Diogenes takes 46 damage.
    Round 12: The Barrelmech of Diogenes takes 6 damage.
    Round 12: You gain 6 hit points
    Round 12: The Barrelmech of Diogenes takes 1 damage.
    Round 12: The Barrelmech of Diogenes takes 20 damage.
    Round 12: The Barrelmech of Diogenes takes 2 damage.
    Round 12: The Barrelmech of Diogenes takes 9 damage.
    Round 12: You lose 895 hit points
    Round 12: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 13: The Barrelmech of Diogenes takes 22 damage.
    Round 13: The Barrelmech of Diogenes drops 4 attack power.
    Round 13: The Barrelmech of Diogenes drops 4 defense.
    You acquire an item: New Age hurting crystal
    Round 13: You gain 500 hit points
    Round 13: The Barrelmech of Diogenes takes 46 damage.
    Round 13: The Barrelmech of Diogenes takes 6 damage.
    Round 13: You gain 6 hit points
    Round 13: The Barrelmech of Diogenes takes 1 damage.
    Round 13: The Barrelmech of Diogenes takes 18 damage.
    Round 13: The Barrelmech of Diogenes takes 1 damage.
    Round 13: The Barrelmech of Diogenes takes 3 damage.
    Round 13: You lose 895 hit points
    Round 13: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 14: The Barrelmech of Diogenes takes 25 damage.
    Round 14: The Barrelmech of Diogenes drops 4 attack power.
    Round 14: The Barrelmech of Diogenes drops 5 defense.
    You acquire an item: New Age hurting crystal
    Round 14: You gain 500 hit points
    Round 14: The Barrelmech of Diogenes takes 50 damage.
    Round 14: The Barrelmech of Diogenes takes 6 damage.
    Round 14: You gain 6 hit points
    Round 14: The Barrelmech of Diogenes takes 2 damage.
    Round 14: The Barrelmech of Diogenes takes 18 damage.
    Round 14: The Barrelmech of Diogenes takes 3 damage.
    Round 14: The Barrelmech of Diogenes takes 6 damage.
    Round 14: You lose 716 hit points
    Round 14: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 15: The Barrelmech of Diogenes takes 24 damage.
    Round 15: The Barrelmech of Diogenes drops 5 attack power.
    Round 15: The Barrelmech of Diogenes drops 3 defense.
    You acquire an item: New Age hurting crystal
    Round 15: You gain 500 hit points
    Round 15: The Barrelmech of Diogenes takes 46 damage.
    Round 15: The Barrelmech of Diogenes takes 6 damage.
    Round 15: You gain 6 hit points
    Round 15: The Barrelmech of Diogenes takes 1 damage.
    Round 15: The Barrelmech of Diogenes takes 18 damage.
    Round 15: The Barrelmech of Diogenes takes 2 damage.
    Round 15: The Barrelmech of Diogenes takes 2 damage.
    Round 15: You lose 806 hit points
    Round 15: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 16: The Barrelmech of Diogenes takes 22 damage.
    Round 16: The Barrelmech of Diogenes drops 4 attack power.
    Round 16: The Barrelmech of Diogenes drops 4 defense.
    You acquire an item: New Age hurting crystal
    Round 16: You gain 500 hit points
    Round 16: The Barrelmech of Diogenes takes 49 damage.
    Round 16: The Barrelmech of Diogenes takes 7 damage.
    Round 16: You gain 7 hit points
    Round 16: The Barrelmech of Diogenes takes 1 damage.
    Round 16: The Barrelmech of Diogenes takes 20 damage.
    Round 16: The Barrelmech of Diogenes takes 2 damage.
    Round 16: The Barrelmech of Diogenes takes 7 damage.
    Round 16: You lose 716 hit points
    Round 16: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 17: The Barrelmech of Diogenes takes 24 damage.
    Round 17: The Barrelmech of Diogenes drops 4 attack power.
    Round 17: The Barrelmech of Diogenes drops 4 defense.
    You acquire an item: New Age hurting crystal
    Round 17: You gain 500 hit points
    Round 17: The Barrelmech of Diogenes takes 52 damage.
    Round 17: The Barrelmech of Diogenes takes 6 damage.
    Round 17: You gain 6 hit points
    Round 17: The Barrelmech of Diogenes takes 1 damage.
    Round 17: The Barrelmech of Diogenes takes 16 damage.
    Round 17: The Barrelmech of Diogenes takes 1 damage.
    Round 17: The Barrelmech of Diogenes takes 8 damage.
    Round 17: You lose 716 hit points
    Round 17: DeepThought uses the Miniborg Destroy-O-Bot and uses the New Age healing crystal!
    Round 18: The Barrelmech of Diogenes takes 22 damage.
    Round 18: The Barrelmech of Diogenes drops 3 attack power.
    Round 18: The Barrelmech of Diogenes drops 4 defense.
    You acquire an item: New Age hurting crystal
    Round 18: You gain 500 hit points
    Round 18: The Barrelmech of Diogenes takes 50 damage.
    Round 18: The Barrelmech of Diogenes takes 6 damage.
    Round 18: You gain 6 hit points
    Round 18: The Barrelmech of Diogenes takes 1 damage.
    Round 18: The Barrelmech of Diogenes takes 16 damage.
    Round 18: DeepThought wins the fight!
    After Battle: You gain 7 Mysteriousness
    After Battle: Johnny surveys the scene from atop the throne and sighs.
    After Battle: Grog says, "you know, I used to belong to an organization for geniuses. Every week we would attempt to solve one of the great mysteries of the universe." He tells you of their hours-long deliberation about missing socks in the dryer, and you feel refreshed and edified.
    After Battle: You gain 51 hit points
    After Battle: You gain 38 Mana Points
    You acquire an item: barrelhead
    After Battle: You gain 13 Strengthliness
    After Battle: You gain 62 Magicalness
    After Battle: You gain 16 Smarm
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    Took choice 1102/1: unknown
    choice.php?whichchoice=1102&pwd&option=1
    > i = 30.
    > Barrelmech battle failed.
    custom outfit ZMechOldGear
    > Switching familiar to Blavious Kloop.
    Here's the actual code I use for the fight:
    Code:
    void FightBarrelMech()
    {
    
        int i;
        string chunk;
        string result;
        string url;
        
        print( "Starting barrelmech battle.", "green");
        i = 0;
        use(1, $item[ map to the Biggest Barrel ]);
        while( i < 30 )
        {
            url = visit_url( "choice.php?whichchoice=1102&pwd&option=1" ); 
            i += 1;
            if( contains_text( url, "Combat" ))
            {
                result = run_combat();
                break;
            }
        }
        if( i >= 30 )
        {
            print( "i = " + i + ".", "red");    
            print( "Barrelmech battle failed.", "red");    
        }
        else
        {
            print( "Barrelmech battle complete.", "green");
        }
        return;
    
    }
    I scripted this a long time ago and just happened to look at my session log today and noticed all the unknown adventure choices. As I read the wiki (http://kol.coldfront.net/thekolwiki/...Biggest_Barrel), those choices should come before the battle, not after it. Am I misunderstanding the wiki? Is mafia somehow automatically handling all that clicking for me? Any suggestions on how to change my code to make it work properly would be greatly appreciated. As would any explaination of what's actually going on with the current setup. Thanks, in advance.

  2. #2
    Senior Member
    Join Date
    Jun 2016
    Posts
    330

    Default

    I haven't fought the barrelmech in forever, but yeah, it seems like mafia automatically takes the choice based on that fourth line: prefref choiceAdventure1102 shows it's set to 1 by default, so that would be why.
    So your script uses the map, mafia sees a choice adventure with a predefined choice, takes it, and then something (either your autoattack or your mafia ccs) kicks in, finishes the fight, and then your enter your loop.
    You then try to take a choice in a choice adventure you are not in, so kol tells you Nope, the result is not a combat, and it loops until your protection kicks in.

    So you can probably shrink it down to just a couple of lines, similiar to my old bricko script (the new one is a bit more fancy with outfit swapping and such):
    Code:
    while ( get_property_int("_brickoFights")<10 ) {
    	use( 1, $item[bricko ooze] );
    //	run_combat(); // This one may or may not be needed, depending on your kolnative autoattack and/or ccs settings. I use a native autoattack myself, so I don't need it.
    }

Posting Permissions

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