Page 3 of 3 FirstFirst 1 2 3
Results 21 to 22 of 22

Thread: hatter.ash - Tea anyone!?

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

    Default

    When the "hatter" CLI command was added, the notes of the mad hatter effects were changed in statuseffects.txt, which broke this script.

    I still use it because of the handy shortcuts (meat, ml, %spell etc...). If anyone else wants to use it, find this function:
    PHP Code:
    effect[inthatter_effect_map(){
        
    effect[int]buffs;
        foreach 
    num in hatter_effects(){
            
    matcher chars create_matcher("(\\d+)"num.to_effect().note);
            
    chars.find();
            
    buffs[chars.group(1).to_int()] = num.to_effect();
        }
        return 
    buffs;

    and replace it with:
    PHP Code:
    effect[inthatter_effect_map(){
        
    effect[int]buffs;
        foreach 
    num in hatter_effects(){
            foreach 
    strb in num.to_effect().all{
                
    matcher chars create_matcher("(\\d+)"str);
                
    chars.find();
                
    buffs[chars.group(1).to_int()] = num.to_effect();
                break;
            }
        }
        return 
    buffs;

    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

  2. #22
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,745

    Default

    Updated hatter.ash to no longer have $type[""] bits which make me sad.
    Attached Files

Similar Threads

  1. New Content - Implemented 30+ character Hatter buff
    By guyy in forum Bug Reports
    Replies: 1
    Last Post: 06-22-2013, 04:06 AM
  2. 11968: fix matching for hatter command
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 03-14-2013, 06:18 PM
  3. Replies: 0
    Last Post: 03-11-2012, 11:50 PM
  4. Bug - Fixed Hatter Buff without potion in inventory
    By dungbeetle in forum Bug Reports
    Replies: 1
    Last Post: 02-22-2012, 05:56 AM
  5. 10414: do the same for the Hatter daily deed.
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 02-06-2012, 09:40 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
  •