Guest User

Untitled

a guest
Jun 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1.     def Vampiric_Aura( self, event_var, lvl ):
  2.         userid = event_var['attacker']
  3.         damage = int(event_var['dmg_health'])
  4.         chance = lvl
  5.         rand = randint( 1, 20 )
  6.         if ( chance >= rand ):
  7.             leeched = damage / 2.0
  8.             player = playerlib.getPlayer( userid )
  9.             player.health += leeched
  10.             es.tell( userid, '#multi', '#lightgreenVampiric Aura #greenleeches #lightgreen%i #greenhealth.' % int(leeched) )
Add Comment
Please, Sign In to add comment