Results 1 to 8 of 8

Thread: First try at a farming script

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default First try at a farming script

    Hello all,

    I have been using Kolmafia for quite a while now but have never tried to write a script. Today I looked over the documentation and attempted to write my first script for basic meat farming. I was hoping all you helpful people out there could provide me with some tips and criticism. (please be gentle) Thanks for all your help!

    Code:
    outfit farm
    acquire 15 twinkly wad
    use 15 twinkly wad
    acquire 1 milk of magnesium 
    use 1 milk of magnesium 
    acquire 3 bat wing chow mein 
    eat 3 bat wing chow mein 
    acquire 4 roll in the hay 
    drink 4 roll in the hay 
    acquire 1 whiskey and cola 
    drink 1 whiskey and cola 
    set battleAction = custom 
    cast 10 leash of linguini
    adventure 20 Giant's Castle
    cast 10 leash of linguini
    adventure 20 Giant's Castle 
    cast 10 leash of linguini
    adventure * Giant's Castle
    acquire 1 roll in the hay 
    drink 1 roll in the hay 
    autosell * Angry Farmer Candy
    autosell * awful poetry journal 
    autosell * chaos butterfly 
    autosell * disturbing fanfic 
    autosell * furry fur 
    autosell * giant needle
    autosell * heavy d
    autosell * original g 
    autosell * plot hole 
    autosell * probability potion
    autosell * procrastination potion 
    autosell * thin black candle 
    autosell * wolf mask 
    autosell * Mick's IcyVapohotness Rub
    use * Warm Subject gift certificate 
    stash put * coconut shell 
    stash put * little paper umbrella 
    stash put * magical ice cubes 
    stash put * scrumptious reagent
    stash put * dry noodles
    outfit sleep

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

    Default Re: First try at a farming script

    Curious why do you cast 10 leash and then only adventure for 20 turns in the castle? Why not just cast leash a whole bunch of times and then adventure? Alternatively, a better solution would be to just put leash as a mood.

    Also, you should totally send me (as a donation of course) your letters and thin black candles instead of selling them (I collect them).

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: First try at a farming script

    my character does not have enough mp to cast leash 30 times without regaining mana points, I have a pith so the 20 turns recharge a good deal of mana. Couple things I was curious about:

    Is there a simple way to check the BH for pacifiers and grab the quest if he does?

    Also how do you shrug off a song?

    Thanks for the advice I will look into sending you some candles.

  4. #4
    Senior Member
    Join Date
    Mar 2006
    Posts
    488

    Default Re: First try at a farming script

    [quote author=AgnesM link=topic=1474.msg6855#msg6855 date=1201385672]
    my character does not have enough mp to cast leash 30 times without regaining mana points, I have a pith so the 20 turns recharge a good deal of mana. Couple things I was curious about:

    Is there a simple way to check the BH for pacifiers and grab the quest if he does?[/quote]There are some BH scripts out there. You could look for one of those. But there is no simple way using the CLI (which is what you are using) to do that.
    Also how do you shrug off a song
    the CLI command is "uneffect effect_name". Do note though, if you cannot shrug the effect mafia will purchase soft green echo eyedrops to remove the effect.
    Thanks for the advice I will look into sending you some candles.
    I was more joking, but I'm always happy to take donations .

    Just a point of clarification in case you aren't aware. There are two types of scripting available in mafia. There is "CLI" scripting which is using commands that are valid in for use in the CLI. These commands can be used in a script as well, which is what you are doing. There is also ASH which is powerful tool created by Veracity. It's grown into quite an impressive language, but is much more advanced that your basic CLI scripting.

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Posts
    132

    Default Re: First try at a farming script

    i would definately add leash to your moods
    that way when you lose the effect mafia will recast it.
    then you could just delete the lines
    Code:
    cast 10 leash of linguini
    adventure 20 Giant's Castle
    cast 10 leash of linguini
    adventure 20 Giant's Castle 
    cast 10 leash of linguini

  6. #6
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: First try at a farming script

    Problem is I have had the moods go all wonky on me before and not work, so I decided this way would be more of a "sure thing".

    I did however modify the script to add in a few more things.

    Code:
    csend 50 meat to 1061817
    outfit gnob goblin elite
    acquire 25 knob goblin nasal 
    acquire 25 knob goblin pet 
    use 25 gnob goblin nasal 
    use 25 knob goblin pet 
    outfit farm
    acquire 15 twinkly wad
    use 15 twinkly wad
    acquire 1 milk of magnesium 
    use 1 milk of magnesium 
    acquire 3 bat wing chow mein 
    eat 3 bat wing chow mein 
    acquire 4 roll in the hay 
    drink 4 roll in the hay 
    acquire 1 whiskey and cola 
    drink 1 whiskey and cola 
    shrug ode 
    csend 431 meat to 1061817
    wait 200
    set battleAction = custom 
    cast 10 leash of linguini
    adventure 20 Giant's Castle
    cast 10 leash of linguini
    adventure 20 Giant's Castle 
    cast 10 leash of linguini
    adventure * Giant's Castle
    acquire 1 roll in the hay 
    drink 1 roll in the hay 
    autosell * Angry Farmer Candy
    autosell * awful poetry journal 
    autosell * chaos butterfly 
    autosell * disturbing fanfic 
    autosell * furry fur 
    autosell * giant needle
    autosell * heavy d
    autosell * original g 
    autosell * plot hole 
    autosell * probability potion
    autosell * procrastination potion 
    autosell * thin black candle 
    autosell * wolf mask 
    autosell * Mick's IcyVapohotness Rub
    use * Warm Subject gift certificate 
    stash put * coconut shell 
    stash put * little paper umbrella 
    stash put * magical ice cubes 
    stash put * scrumptious reagent
    stash put * dry noodles
    shrug carlw
    outfit sleep 
    exit
    What else do you guys think I can do to improve it? (besides the leash issue)



  7. #7
    Junior Member
    Join Date
    Oct 2006
    Location
    Leeds, UK
    Posts
    13

    Default Re: First try at a farming script

    Its been a while but iirc then KolMafia changes your outfit to buy from the knob goblin store anyway.

  8. #8
    Senior Member
    Join Date
    Jul 2008
    Posts
    526

    Default Re: First try at a farming script

    As well, use, drink, and eat all should automatically acquire your item before using it.

Similar Threads

  1. JTN's All-In-One Farming Script
    By jtn2002 in forum Scripting Discussion
    Replies: 16
    Last Post: 05-09-2012, 07:00 PM
  2. The Neo-Cow Farming Script
    By Banana Lord in forum Turn-Burning Scripts
    Replies: 191
    Last Post: 07-07-2011, 11:08 AM
  3. Daily Farming Script (Formerly Known As "Script Noob")
    By T-Unit in forum Turn-Burning Scripts
    Replies: 14
    Last Post: 07-27-2007, 12:50 AM
  4. Daily farming script
    By BigH in forum Turn-Burning Scripts
    Replies: 22
    Last Post: 01-12-2007, 08:39 PM
  5. Farming Script
    By mmo.stuff in forum Scripting Discussion
    Replies: 1
    Last Post: 11-29-2006, 09:09 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
  •