Search results

  1. tyilo

    put_shop( int price , int limit , item it ) syntax doesn't work

    I tried using the syntax above but kolmafia said that had no matches. So i tried the other syntax for put_shop(): put_shop(100 , 0 , item_amount(something) , something ) and it worked perfect! Can someone fix this? Thanks!
  2. tyilo

    Using plural datatype constants in functions

    This is what i want to do: void myFunction(items stuff) { foreach it in stuff { //do something here... } } myFunction($items[meat stack, turtle totem]);
  3. tyilo

    if maps of monsters contains monster not working

    monster [int] names; names[0] = $monster[monster1]; names[1] = $monster[monster2]; ... if(names contains last_monster()) This doesn't work (ofc replace monster1 and monster2 with real monster names and replace ... with some code adventuring) and i get this error: Cannot apply operator contains...
  4. tyilo

    Discard script

    boolean discard(int number, item stuff) { int amount = item_amount(stuff); for counter from 1 upto number { visit_url("inventory.php?action=discard&pwd=" + my_hash() + "&whichitem=" + to_int(stuff)); } if(amount == 0) { print("You don't have any " + to_plural(stuff) + ".", "red")...
  5. tyilo

    making function hermit() not abort script

    i have this script: item clover = $item[Ten-leaf clover]; hermit(5, clover); use(item_amount($item[Disassembled clover]), $item[Disassembled clover]); put_shop(1, 0, item_amount(clover), clover); When i run it will never execute line number 3 and 4, beacuse when the hermit() function returns...
  6. tyilo

    Bad item value?

    When i try to execute this script, it fails with the error "Bad item value: "stuff": foreach stuff in $items[Wolf mask, Giant needle, Rave whistle] { put_shop(mall_price(stuff) - 1, 0, $item[stuff]); } Why is that?
  7. tyilo

    Auto-download latest SVN version (MAC)

    Auto-download latest build (MAC) First it checks if you have installed the latest version. If you have it does nothing. If you doesn't have the latest version it will replace the java file inside KoLmafia.app in your applications folder. I made this script in applescript and here are the...
  8. tyilo

    Help with statday

    I need to have a script that will say how many days there are to mus/mys/mox statday
  9. tyilo

    Why does this not work?

    when i run the code it will always popup and i have to answer. Why does it ignore the first if? if(my_fullness() == 0 && my_inebriety() == 0) { void main(boolean normal) { if(normal == true) { cli_execute("eat 5 peach pie"); cli_execute("drink 9 shot of peach schnapps")...
  10. tyilo

    Gender function

    void unequip_all(string pet) { item it = equipped_item($slot[acc1]); unequip(it); it = equipped_item($slot[acc2]); unequip(it); it = equipped_item($slot[acc3]); unequip(it); it = equipped_item($slot[hat]); unequip(it); it = equipped_item($slot[off-hand]); unequip(it); it =...
  11. tyilo

    Mood Setup?

    How do you make a script/What do you need to enter in the 2 lowest lines so it will stop when your familiars unbuffed weight = 25?
  12. tyilo

    PvP script

    How do you make a pvp script in ASH and/or CLI? (Please ASH) Just give me an example.
  13. tyilo

    Help!

    I have some questions: 1) Can you make a CLI or ASH that can do pvp? 2) Is there a function that checks the cheapest price in the mall? 3) In breakfast (v. 12.0) it says: "Attempting to win a price (x of 3)." What is this? 4) Is there a command like goto? That was all the questions ;)
  14. tyilo

    Island: Post-War locations

    This would not work: adventure(1, $location[Post-War Hippy Camp]); Is there a location for the Post-War locations?
  15. tyilo

    Help with script!

    Why doesn't this script work? use( item_amount( $item[disassembled clover]), $item[disassembled clover]); adventure( item_amount( $item[Ten-leaf clover]), $location[Lemon Party]); repeat { put_shop( 4000, 0, $item[big rock]); } until ( item_amount( $item[big rock]) = 0);
Top