Advertisement
Foereaper

Eluna PvP Title system

Mar 7th, 2013
1,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. local T = {
  2. {1, 15, 15}, -- Private/Scout
  3. {2, 16, 2000}, -- Corporal/Grunt
  4. {3, 17, 5000}, -- Sergeant
  5. {4, 18, 10000}, -- Master/Senior Sergeant
  6. {5, 19, 15000}, -- Sergeant Major/First Sergeant
  7. {6, 20, 20000}, -- Knight/Stone Guard
  8. {7, 21, 25000}, -- Knight-Lieutenant/Blood Guard
  9. {8, 22, 30000}, -- Knight-Captain/Legionnaire
  10. {9, 23, 35000}, -- Knight-Champion/Centurion
  11. {10, 24, 40000}, -- Lieutenant Commander/Champion
  12. {11, 25, 45000}, -- Commander/Lieutenant General
  13. {12, 26, 50000}, -- Marshal/General
  14. {13, 27, 55000}, -- Field Marshal/Warlord
  15. {14, 28, 60000}, -- Grand Marshal/High Warlord
  16. {62, 62, 75000}; -- Warbringer
  17. };
  18.  
  19. function OnKilledTarget(event, plr, victim)
  20.     for i = #T, 1, -1 do
  21.         if (plr:GetLifetimeKills() >= T[i][3]) then
  22.             if not plr:HasTitle(T[i][plr:GetTeam()+1]) then
  23.                 plr:SetKnownTitle(T[i][plr:GetTeam()+1])
  24.             end
  25.             break;
  26.         end
  27.     end
  28. end
  29.  
  30. RegisterPlayerEvent(6, OnKilledTarget)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement