Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. This is the trigger part
  2. You glance over (begin of line)
  3. ^You glance over \w+ and see that (?:his|her) health is at \d+/(\d+)\.$ (perl)
  4.  
  5. this is output
  6.  
  7. local maxhp = tonumber(multimatches[2][2])
  8.  
  9. if maxhp > 3686 and maxhp < 4053 then points = 14
  10. elseif maxhp > 4203 and maxhp < 4701 then points = 15
  11. elseif maxhp > 5293 and maxhp < 5447 then points = 16
  12. elseif maxhp > 6321 and maxhp < 7270 then points = 17
  13. elseif maxhp > 8655 and maxhp < 8657 then points = 18
  14. end
  15.  
  16. expandAlias("shn "..target.." "..points)
  17. points = unknown
  18.  
  19. these above ranges are correct for dragon stance and knuckles, some I have in my head but didn't put in yet. Like I said, I get the points from testing. So for 14 points for instance we'll use 4029 health. That takes 0 kicks 5 punches (15 points) 1 kick 4 punches (16) 2 2 (14 3 1 (15) 4 0 (16), so no matter what scenario you do, if you reach 14 points you'll break because you have to do that exact 14 point scenario to break at 14, and if you do ANYTHING else you'll go over 14. Cool huh! Anyway here ya go. Don't give this out, because the more people that have this, the more good monks we'll have to face. Let's keep monks doing only axe punch/punch ;)
Add Comment
Please, Sign In to add comment