Advertisement
Guest User

Imperian Enemy Health Bar for CMud v2.0

a guest
Nov 13th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Regex Pattern:
  2.  
  3. ^Damage dealt: (\d+) Remaining: (\d+)\.(\d+)\%.*$
  4.  
  5. Script Text:
  6.  
  7. #GAG
  8. $l = ((%2 / 10) + 1)
  9. $d = (10 - $l)
  10. #IF (%2 = 0) {
  11. $l = 0
  12. $d = 10
  13. }
  14. #SAY %ansi( 4)Damage dealt~: %ansi( 7)%1 Remaining~: %ansi( 6)~[%ansi( 7)%if($l < 4,%ansi(12),%if($l > 7,%ansi(10),%ansi(14)))%repeat( "|", $l)%if($d = 10,%ansi(12),%ansi( 3))%repeat( "-", $d)%ansi( 6)~] %ansi( 7)%2~.%3~%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement