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

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,752

    Default

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

  3. #23
    Junior Member
    Join Date
    Feb 2020
    Posts
    5

    Default

    I'm new to scripting. I just want a super simple "visit the hatter and get the buff" script. so after I drink a potion, I try to run this script:

    void main()
    {
    print("1");
    visit_url("rabbithole.php?action=teaparty");
    print("2");
    visit_url("choice.php?pwd="+my_hash()+"&whichchoic e=441&option=1");
    print("end");
    }

    the line that doesn't work is: visit_url("rabbithole.php?action=teaparty"); it just hangs mafia until times out. What the heck is wrong with that line? Why won't it visit the hatter?

    thanks guys,

    seesee

  4. #24

    Default

    Do you have the effect Down the Rabbit Hole?

  5. #25
    Junior Member
    Join Date
    Feb 2020
    Posts
    5

    Default

    Yes. I run this script after drinking a potion. Eventually, I'd like to develop this script into more, but for now, I can't even make this ONE little line work for me, and it seems to be at the heart of most other Hatter scripts. so...I just don't understand it.

  6. #26

    Default

    Looks like that URL hasn't worked for years, because KoL changed. Checking outside of a script quickly shows that you need place.php?whichplace=rabbithole.

  7. #27
    Junior Member
    Join Date
    Feb 2020
    Posts
    5

    Default

    so are you saying I should write, visit_url("rabbithole.php?whichplace=rabbithole?ac tion=teaparty"); I don't think I understand.

  8. #28
    Junior Member
    Join Date
    Feb 2020
    Posts
    5

    Default

    oh..you mean. exactly that... visit_url("place.php?whichplace=rabbithole"); i see. but how to add in the action=teaparty ?

  9. #29
    Junior Member
    Join Date
    Feb 2020
    Posts
    5

    Default

    i wrote, visit_url("place.php?whichplace=rabbithole?action= teaparty"); I'll have to wait till tomorrow to see if that works, 'cause I already visited the hatter today! but at least it didn't hang and it seems to at least run. thanks...I'll check it tomorrow.

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
  •