Advertisement
fuzzything44

Consult Script

Jan 20th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. string generic_stasis() {
  2. return "while monsterhpabove 350 && !pastround 10 \n" +
  3. " use seal tooth \n" +
  4. "endwhile \n";
  5. }
  6.  
  7. string free_fight() {
  8. return "while !pastround 10 \n" +
  9. " use seal tooth \n" +
  10. "endwhile \n" +
  11. "attack with weapon \n" +
  12. "repeat";
  13. }
  14.  
  15. string sandworm_kill() {
  16. if (my_lightning() >= 20) {
  17. return "skill lightning strike";
  18. }
  19. if (to_int(get_property("_shatteringPunchUsed")) < 3) {
  20. return "skill shattering punch";
  21. }
  22. if (have_skill($skill[Fire the Jokester's Gun]) && !to_boolean(get_property("_firedJokestersGun"))) {
  23. return "skill fire the jokester's gun";
  24. }
  25. if (to_int(get_property("_powerPillUses")) < 20) {
  26. return "use power pill";
  27. }
  28. if (to_int(get_property("_usedReplicaBatoomerang")) < 3) {
  29. return "use replica bat-oomerang";
  30. }
  31. /* TODO: Add gingerbread mob hit. */
  32. return "";
  33. }
  34.  
  35. string sandworm() {
  36. return generic_stasis() + sandworm_kill();
  37. }
  38.  
  39. string gingerbread() {
  40. return generic_stasis() + "use gingerbread cigarette";
  41. }
  42.  
  43. string red_zeppelin() {
  44. return generic_stasis() + "use glark cable";
  45. }
  46.  
  47. string crayon_copier() {
  48. if (to_int(get_property("_raindohCopiesMade")) < 5) {
  49. return "use rain-doh black box\n";
  50. }
  51. return "use spooky putty sheet\n";
  52. }
  53.  
  54. string crayon() {
  55. return crayon_copier() + free_fight();
  56. }
  57.  
  58. void runmacro(string macro) {
  59. visit_url("fight.php?action=macro&macrotext=" + url_encode(macro) ,true,true);
  60. }
  61. void main(int initround, monster foe, string page_text) {
  62. switch (foe) {
  63. case $monster[Giant Sandworm]:
  64. runmacro(sandworm());
  65. break;
  66. case $monster[Gingerbread Finance Bro]: /* I think this is the entire list of cigarettable monsters, and no extras... */
  67. case $monster[Gingerbread Gentrifier]:
  68. case $monster[Gingerbread Tech Bro]:
  69. case $monster[Gingerbread Vagrant]:
  70. case $monster[Gingerbread Wino]:
  71. case $monster[Gingerbread Convict]:
  72. case $monster[Gingerbread Lawyer]:
  73. case $monster[Gingerbread Mugger]:
  74. case $monster[Gingerbread Mutant]:
  75. runmacro(gingerbread());
  76. break;
  77. case $monster[Red Herring]:
  78. case $monster[Red Snapper]:
  79. case $monster[Red Butler]:
  80. case $monster[Man with the red buttons]:
  81. case $monster[Red Skeleton]:
  82. case $monster[Red Fox]:
  83. runmacro(red_zeppelin());
  84. break;
  85. case $monster[Black Crayon Beast]:
  86. runmacro(crayon());
  87. break;
  88. case $monster[Eldritch Tentacle]:
  89. case $monster[X-32-F Combat Training Snowman]:
  90. case $monster[BRICKO Ooze]:
  91. case $monster[Witchess Knight]:
  92. case $monster[biker]:
  93. case $monster[burnout]:
  94. case $monster[jock]:
  95. case $monster[party girl]:
  96. case $monster["plain" girl]:
  97. case $monster[lynyrd]:
  98. case $monster[sausage goblin]:
  99. case $monster[LOV Enforcer]:
  100. case $monster[LOV Engineer]:
  101. case $monster[LOV Equivocator]:
  102. runmacro(free_fight());
  103. break;
  104. default:
  105. return;
  106.  
  107. }
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement