Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Vampiric_Aura( self, event_var, lvl ):
- userid = event_var['attacker']
- damage = int(event_var['dmg_health'])
- chance = lvl
- rand = randint( 1, 20 )
- if ( chance >= rand ):
- leeched = damage / 2.0
- player = playerlib.getPlayer( userid )
- player.health += leeched
- es.tell( userid, '#multi', '#lightgreenVampiric Aura #greenleeches #lightgreen%i #greenhealth.' % int(leeched) )
Add Comment
Please, Sign In to add comment