Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. local Skill = {}
  2. Skill.Name = "skill_p_m_leech"
  3. Skill.PrintName = "Leech"
  4. Skill.Icon = "icons/bt/skill_inner"
  5. Skill.Desc = {}
  6. Skill.Desc["story"] = "Steals life from your enemies"
  7. Skill.Desc[1] = "You steal 1 health"
  8. Skill.Desc[2] = "You steal 2 health"
  9. Skill.Desc[3] = "You steal 3 health"
  10. Skill.Desc[4] = "You steal 4 health"
  11. Skill.Desc[5] = "You steal 5 health"
  12. Skill.Desc[6] = "You steal 6 health"
  13. Skill.Desc[7] = "You steal 7 health"
  14. Skill.Desc[8] = "You steal 8 health"
  15. Skill.Desc[9] = "You steal 9 health"
  16. Skill.Desc[10] = "You steal 10 health"
  17. Skill.Active = false
  18. Skill.Category = CATEGORY_COMMON_PASSIVE
  19. Skill.Levels = 10
  20. Skill.Requirements = {}
  21. for i = 0, 10 do
  22. Skill.Requirements[i] = {}
  23. Skill.Requirements[i].Skills = {}
  24. Skill.Requirements[i].Level = 3 + i*3
  25. end
  26. function Skill:BulletCallBack(plyPlayer, intSkill, trcTrace, tblDamageInfo)
  27. if !SERVER then return end
  28. local entEntity = trcTrace.Entity
  29. if intSkill > 0 && entEntity:IsNPC() && entEntity.Race != "human" then // && entEntity.Race != "antlion"
  30. plyPlayer:SetHealth(math.Clamp(plyPlayer:Health() + intSkill, 0, plyPlayer:GetMaxHealth()))
  31. end
  32. end
  33. function Skill:OnSet(plyPlayer, intSkillLevel, intOldSkillLevel, load)
  34. lvl_effect( plyPlayer, intSkillLevel, intOldSkillLevel, load )
  35. end
  36. Register.Skill(Skill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement