Advertisement
kolpastebin

OpenATSongSlot.ash

Oct 12th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. //Will not uneffect the ode to booze.
  2. void main()
  3. {
  4. effect [int] songs;
  5. songs[count(songs)] = $effect[The Moxious Madrigal];
  6. songs[count(songs)] = $effect[The Magical Mojomuscular Melody];
  7. songs[count(songs)] = $effect[Cletus's Canticle of Celerity];
  8. songs[count(songs)] = $effect[Power Ballad of the Arrowsmith];
  9. songs[count(songs)] = $effect[Polka of Plenty];
  10. songs[count(songs)] = $effect[Jackasses' Symphony of Destruction];
  11. songs[count(songs)] = $effect[Fat Leon's Phat Loot Lyric];
  12. songs[count(songs)] = $effect[Brawnee's Anthem of Absorption];
  13. songs[count(songs)] = $effect[Psalm of Pointiness];
  14. songs[count(songs)] = $effect[Stevedave's Shanty of Superiority];
  15. songs[count(songs)] = $effect[Aloysius' Antiphon of Aptitude];
  16. songs[count(songs)] = $effect[The Sonata of Sneakiness];
  17. songs[count(songs)] = $effect[Carlweather's Cantata of Confrontation];
  18. songs[count(songs)] = $effect[Ur-Kel's Aria of Annoyance];
  19. songs[count(songs)] = $effect[Dirge of Dreadfulness];
  20. songs[count(songs)] = $effect[The Ballad of Richie Thingfinder];
  21. songs[count(songs)] = $effect[Benetton's Medley of Diversity];
  22. songs[count(songs)] = $effect[Elron's Explosive Etude];
  23. songs[count(songs)] = $effect[Chorale of Companionship];
  24. songs[count(songs)] = $effect[Prelude of Precision];
  25. songs[count(songs)] = $effect[Donho's Bubbly Ballad];
  26. songs[count(songs)] = $effect[Cringle's Curative Carol];
  27. songs[count(songs)] = $effect[Inigo's Incantation of Inspiration]; //'
  28. songs[count(songs)] = $effect[Paul's Passionate Pop Song]; //'
  29.  
  30.  
  31. int songs_active = 0;
  32. effect min_song;
  33. int min_song_amount = 0;
  34.  
  35. foreach i in songs
  36. {
  37. effect e = songs[i];
  38. if (have_effect(e) > 0)
  39. {
  40. songs_active = songs_active + 1;
  41. if (have_effect(e) < min_song_amount || min_song_amount == 0)
  42. {
  43. min_song = e;
  44. min_song_amount = have_effect(e);
  45. }
  46. }
  47. }
  48. int song_limit = 3;
  49. if (have_skill($skill[Mariachi Memory]))
  50. song_limit = 4;
  51. if (songs_active >= song_limit)
  52. {
  53. cli_execute("uneffect " + min_song);
  54. }
  55. //print("You have " + songs_active + " songs active. Lowest is " + min_song + " with " + min_song_amount + " turns.");
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement