Advertisement
Guest User

Untitled

a guest
May 30th, 2021
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. -- Restore the original functionality of the dragon familiar as long as
  2. -- he's sitting in the hireling slot.
  3. -- Can be dropped into Scripts/Global
  4.  
  5. local DragonNPCId = 396
  6.  
  7. function events.GetSkill(t)
  8.     if (t.Player.Class == const.Class.Warlock
  9.         and Game.NPC[DragonNPCId].Hired
  10.         and const.Skills.Fire <= t.Skill
  11.         and t.Skill < const.Skills.Light)
  12.     then
  13.         local s, m = SplitSkill(t.Result)
  14.         t.Result = JoinSkill(s + 3, m)
  15.     end
  16. end
  17.  
  18. function events.RegenTick(Player)
  19.     if (Player.Class == const.Class.Warlock
  20.         and Game.NPC[DragonNPCId].Hired)
  21.     then
  22.         Player.SP = math.min(Player:GetFullSP(), Player.SP + 1)
  23.     end
  24. end
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement