Results 1 to 9 of 9

Thread: CLI command to acquire turtle totem via chewing gum on a string?

  1. #1
    Senior Member
    Join Date
    Oct 2017
    Posts
    301

    Default CLI command to acquire turtle totem via chewing gum on a string?

    Is there a CLI command to buy and use chewing gum on a string one at a time until you acquire a turtle totem? (for casting TT buffs on yourself in HC)

  2. #2

    Default

    There is not. I use
    Code:
    void main( string thing )
    {
    	item wanted;
    	if ( thing.contains_text( "acc" ) )
    	{
    		#wanted = $item[stolen accordion];
    		print_html( "you want a toy accordion" );
    		return;
    	}
    	else if ( thing.contains_text( "totem" ) )
    	{
    		wanted = $item[turtle totem];
    	}
    	else if ( thing.contains_text( "saucepan" ) )
    	{
    		wanted = $item[saucepan];
    	}
    	else
    	{
    		abort("not a valid item");
    	}
    	
    	while ( item_amount( wanted ) < 1 )
    	{
    		use( 1, $item[chewing gum on a string] );
    	}
    }
    to get buff-casting items.

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,411

    Default

    Doesn't "create turtle totem" work?

    Or perhaps even "acquire turtle totem". The Hermit is a Coinmaster with a worthless item as the currency, I've seen (written) the code to use chewing gum to get worthless items.
    Last edited by Veracity; 09-13-2018 at 08:00 PM.

  4. #4

    Default

    You can acquire hermit items, but turtle totem and saucepan are generally a side effect of getting currency for the hermit rather than being available from any coinmaster.

  5. #5
    Senior Member
    Join Date
    Oct 2017
    Posts
    301

    Default

    Doesn't "create turtle totem" work?

    Or perhaps even "acquire turtle totem". The Hermit is a Coinmaster with a worthless item as the currency, I've seen (written) the code to use chewing gum to get worthless items.
    Originally Posted by Veracity View Post
    unfortunately neither acquire, nor create work for getting a turtle totem.

    There is not. I use
    Code:
    void main( string thing )
    {
        item wanted;
        if ( thing.contains_text( "acc" ) )
        {
            #wanted = $item[stolen accordion];
            print_html( "you want a toy accordion" );
            return;
        }
        else if ( thing.contains_text( "totem" ) )
        {
            wanted = $item[turtle totem];
        }
        else if ( thing.contains_text( "saucepan" ) )
        {
            wanted = $item[saucepan];
        }
        else
        {
            abort("not a valid item");
        }
        
        while ( item_amount( wanted ) < 1 )
        {
            use( 1, $item[chewing gum on a string] );
        }
    }
    to get buff-casting items.
    Originally Posted by lostcalpolydude View Post
    thank you, i will use this.

  6. #6
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,411

    Default

    We could make a creation method - SEWER - which consists of repeatedly using chewing gum on a string until you get the item.

  7. #7
    Senior Member
    Join Date
    Oct 2017
    Posts
    301

    Default

    We could make a creation method - SEWER - which consists of repeatedly using chewing gum on a string until you get the item.
    Originally Posted by Veracity View Post
    That is a good idea.

  8. #8
    Senior Member
    Join Date
    Oct 2017
    Posts
    301

    Default

    There is not. I use
    Originally Posted by lostcalpolydude View Post
    I ended up tweaking the above code a bit.
    Code:
    void main()
    {
    // using chewing gum on a string to fish for a turtle totem
    while ( item_amount( $item[turtle totem] ) < 1 )
        {
            use( 1, $item[chewing gum on a string] );
        }
        
    // using chewing gum on a string to fish for a saucepan
    while ( item_amount( $item[saucepan] ) < 1 )
        {
            use( 1, $item[chewing gum on a string] );
        }
    
    
    // accordion thieves are the only ones who can use stolen accordion, and they start out with one, so fishing for it is pointless.
    // Instead, if any other class, should grab a toy accordion.
    if (my_class() != $class[Accordion Thief])
        {
        if ( item_amount( $item[toy accordion] ) < 1 )
            {
            buy(1, $item[toy accordion]);
            }
        }
    }
    This requires no input, just run it with enough meat and it will get the 3 items needed to allow you to buff from all classes.
    Last edited by taltamir; 09-19-2018 at 08:35 PM.

  9. #9

    Default

    The main issue there is that toy accordion is a waste of meat if you will soon be buying an antique accordion. And with meat being tight early on day 1, and a saucepan not really being needed for a while usually (compared to a turtle totem being useful on turn 0), that code wouldn't be very useful for me. But if it works for you (perhaps due to pulling something to autosell for early meat), then that's great.

Posting Permissions

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