Advertisement
Dasffion

Untitled

Jan 21st, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. action (combo) var combo $1 when ^(?:Balance|A chance|Armor|Increased|You recall|Stronger) .* by landing (?:an?) (.*)\.$
  2. Tactics:
  3. action (combo) on
  4. var LOCATION Tactics
  5. match WAIT You must be closer
  6. matchre MELEE ^You have just recently completed that attack combination, and cannot repeat it so soon.
  7. #matchre gcombo With a keen eye
  8. #matchre combo.attack by landing a (\S+)
  9. matchre gcombo Balance|A chance|Armor|Increased|You recall|Stronger
  10. matchre gcombo small|good|great|large|massive|exceptional|substantial
  11. match Tactics You fail
  12. match Tactics Roundtime
  13. matchre FACE.ANA Analyze what\?
  14. put ana %analyze
  15. matchwait
  16.  
  17. FACE.ANA:
  18. gosub FACE_NEXT
  19. goto melee
  20.  
  21. gcombo:
  22. pause 1
  23. gosub combo
  24. if matchre("$roomobjs", "(that|which) appears dead") then goto dead
  25. goto count
  26.  
  27. combo:
  28. eval combo replacere("%combo", "(?:\s)?(?:,|and)? an?(?:\s)", "|")
  29. eval combo replacere("%combo", "\|+", "|")
  30. #var combo |%combo|
  31. eval total count("%combo", "|")
  32. action (combo) off
  33. counter set 0
  34. pause 0.5
  35.  
  36. Loop:
  37. gosub combo.attack %combo(%c)
  38. if %c > %total then return
  39. goto Loop
  40.  
  41. combo.attack:
  42. var attack $1
  43. counter add 1
  44. if "%attack" = "" then return
  45. ANA.ATTACK:
  46. var LOCATION ANA_ATTACK_1
  47. pause 0.0001
  48. ANA_ATTACK_1:
  49. if $spellweave = 1 && "$preparedspell" = "None" then gosub spellcheck
  50. if $spellweave = 1 then gosub spelltime
  51. if ($stamina < 85) then waiteval ($stamina >= 95)
  52. var LOCATION ANA_ATTACK_1
  53. matchre WAIT ^\.\.\.wait|^Sorry\,
  54. matchre IMMOBILE ^You don't seem to be able to move to do that
  55. matchre WEBBED ^You can't do that while entangled in a web
  56. matchre STUNNED ^You are still stunned
  57. matchre CALM ^Strangely, you don't feel like fighting right now
  58. MATCHRE return ^There is nothing else to face
  59. matchre RETURN ^Wouldn't it be better if you used a melee weapon\?
  60. matchre WAIT ^You aren't close enough to attack
  61. match RETURN hit
  62. match RETURN strike
  63. match ANA_ATTACK_1 Roundtime
  64. send %attack
  65. matchwait 15
  66. put #echo >$Log Crimson $datetime *** MISSING MATCH IN ANA.ATTACK! (utility.inc) Last Command: $lastcommand ***
  67. put #log $datetime MISSING MATCH IN ATTACK (utility.inc)
  68. goto ATTACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement