Search results

  1. That FN Ninja

    Birdform Question

    In a manner of speaking, yes.
  2. That FN Ninja

    Stinky Cheese IOTM Handling

    Mafia has a fold command: cli_execute("fold stinky cheese eye"); That will fold your stinky cheese until you have the cheese eye. This doesn't work on the stinky cheese ball, but once you've used the ball you're set.
  3. That FN Ninja

    Birdform Question

    Also from within mafia, jasonharper's prefref alias comes in very handy for things like this: > prefref bird birdformCold (user, now '0', default 0) birdformHot (user, now '0', default 0) birdformRoc (user, now '0', default 0) birdformSleaze (user, now '0', default 0) birdformSpooky (user, now...
  4. That FN Ninja

    Display case manager script help

    At first glance it looks good. I did notice that your main is missing its closing curly brace, but I assume it just didn't get copied over. It has come a long ways. Cheers.
  5. That FN Ninja

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    The "buy fail loop" is a reoccurring bug in Eatdrink that dj_d has been working on fixing. It has come a long ways from where it was. I only notice it now when I don't have mall access.
  6. That FN Ninja

    Abort: perhaps not the end of the world?

    Return ends the current function & exit ends the entire script. In the following example "Goodbye" will never be printed, but "The end!" will. void do_something(){ print("Hello"); return; print("Goodbye"); } void main(){ do_something(); print("The end!"); }As opposed to...
  7. That FN Ninja

    Display case manager script help

    int [item] DC; file_to_map("DC Data.txt", DC); foreach key, num in DC save [key] = num;That code instructs OCD to save whatever the second column in the DC Data.txt tells it to. If the number is a negative number ALL of that item will be saved, if the number is 5 then 5 will be saved, if...
  8. That FN Ninja

    Abort: perhaps not the end of the world?

    If you call a script from within another script and use exit instead of abort() it should exit the called script and continue executing the original script. So, instead of abort() try this: ---die.ash--- void die() { exit;} void main() {die();} This will stop the script and nothing prints...
  9. That FN Ninja

    Inventory Script Request

    Yeah. Here is the file I sent to johngnash a couple of days a go when I got back. I wanted him to see if it's what he wanted. in_control.ash v1 requires r7944 or later. Just extract the contents of the zip to your scripts folder and run the in_control.ash file. Because of the nature of the...
  10. That FN Ninja

    Display case manager script help

    As far as I understand it void main() and void setup_display() are functions. When you run a script anything not in a function will be executed, then anything in main will be executed. For a function like void setup_display() to be executed it must be invoked: void setup_display(){ //code }...
  11. That FN Ninja

    Display case manager script help

    You are right. Sorry. :o foreach key in get_inventory() if(item_amount(key) > 0)should be: foreach key in get_inventory() if(item_amount(key) > 0 && dc contains key) Edit: My code like Bale mentioned does not take into account the int.
  12. That FN Ninja

    Display case manager script help

    Yes: if(my_adventures() < 201 && have_effect($effect[Carlweather's Cantata of Confrontation]) > 0 && user_confirm("Have you finished farming for today?") == true) cli_execute("shrug Carlweather's Cantata of Confrontation");
  13. That FN Ninja

    Display case manager script help

    As far as I've read so far the sole purpose of the DC data.txt is to track whether an item should be displayed or not rendering the resulting int value in the map functionally useless. That is why I scripted it the way I did. I guess I should have changed it to boolean [item] dc to make that...
  14. That FN Ninja

    Display case manager script help

    You could try something like this: void main(){ int [item] dc; file_to_map("DC Data.txt", dc); foreach key in $items[] if(display_amount(key) > 0) dc [key] = -1; foreach key in get_inventory() if(item_amount(key) > 0){...
  15. That FN Ninja

    PriceAdvisor: Maximize your profits

    Of course you can. Glad you like it.
  16. That FN Ninja

    PriceAdvisor: Maximize your profits

    I would try setting an alias like this: alias pam => ash import <PriceAdvisor.ash> foreach itm in $items[] if(contains_text(to_string(itm),"%%")) print(price_advisor(itm, true)) then type the following into the cli: "pam tiny plastic"
  17. That FN Ninja

    What are you worth? networth.ash will tell you.

    Thank you Veracity. This is very helpful.
  18. That FN Ninja

    Inventory Script Request

    No dibs. Bale, go right ahead. I've started scripting a work around for the integer input because I was interested, but I'm out of town for Christmas and can't do anything right now.
  19. That FN Ninja

    Inventory Script Request

    I've started scripting a workaround for this. I will not however be able to continue working on it until I get back from Christmas vacation. It does prompt for an integer for every item as you have requested.
  20. That FN Ninja

    Responding to Clan Chat

    If you search the forums for "chatbot" a lot of the results have helpful information. Also, I would look into Alhifar's Cagebot.ash for some scripting examples.
Back
Top