Advertisement
MariusA

Dolphin Repo-manager

Mar 30th, 2025 (edited)
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************************************************
  2. add Dolphin Repoman to your current mood by typing this line in the CLI:
  3.  
  4. trigger unconditional, , dolphinRepoMan.ash
  5.  
  6. or by adding it with an unconditional trigger on KoLmafia's Mood Setup tab.
  7.  
  8. */
  9. item stolenItem;
  10.  
  11. string stolenItemName = get_property("dolphinItem");
  12. if (stolenItemName !="") {
  13.     int minValue = mall_price($item[dolphin whistle]) + get_property("valueOfAdventure").to_int();
  14.     stolenItem = stolenItemName.to_item();
  15.     int itemValue = mall_price(stolenItem);
  16.  
  17.     if (itemValue > minValue) {
  18.         use($item[dolphin whistle]);
  19.         print(stolenItemName + " was stolen, and it's worth to spend " +  minValue + " to recoup it, since it sells for " + itemValue, "green");
  20.         }
  21.         else
  22.             print(stolenItemName + " was stolen, and it's NOT worth to spend " +  minValue + " to recoup it, since it sells for " + itemValue, "red");
  23. }
  24.  
  25.  
Tags: Kol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement