PDA

View Full Version : [ArcEmu]: PvP Title System (Lua)



Wise
22-04-12, 02:51 AM
So, saw QQRofl's script, and I found an old one I had laying around for Arc as well. Updated it to make it hella lot more efficient than before, so here you go:

credits to foereaper

local T = {
{1, 15, 100},
{2, 16, 500},
{3, 17, 1000},
{4, 18, 2000},
{5, 19, 4000},
{6, 20, 5000},
{7, 21, 6000},
{8, 22, 8000},
{9, 23, 1000},
{10, 24, 15000},
{11, 25, 25000},
{12, 26, 40000},
{13, 27, 45000},
{14, 28, 50000},
{126, 127, 75000};
};

function OnKilledTarget(event, plr, victim)
for i = 1, #T do
if (plr:LifeTimeKills(0, nil) == T[i][3]) then
plr:SetKnownTitle(T[i][plr:GetTeam()+1])
end
end
end

RegisterServerHook(2, OnKilledTarget)