kolpastebin

cloverAdventure()

Oct 19th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. void cloverAdventure(location l)
  2. {
  3. if ($item[disassembled clover].available_amount() + $item[ten-leaf clover].available_amount() == 0)
  4. {
  5. abort("Unable to acquire clover to adventure in " + l + ".");
  6. return;
  7. }
  8. string clover_protect_previous = get_property("cloverProtectActive");
  9. set_property("cloverProtectActive", "false");
  10. if ($item[ten-leaf clover].item_amount() == 0)
  11. cli_execute("acquire ten-leaf clover");
  12. adv1(l, 0, "");
  13. set_property("cloverProtectActive", clover_protect_previous);
  14. }
  15.  
  16.  
  17.  
  18. void main()
  19. {
  20. cloverAdventure($location[the smut orc logging camp]);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment