-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOnKillMM.lua
More file actions
42 lines (40 loc) · 1.14 KB
/
Copy pathOnKillMM.lua
File metadata and controls
42 lines (40 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
local function OnKillMM(event, killer, killed)
local pGuid = killer:GetGUIDLow();
local cGuid = killed:GetGUID();
local cEntry = GetGUIDEntry(cGuid);
if (cEntry == 34564) then
AddMMKill(pGuid);
local players = killer:GetPlayersInRange(50000, 2);
for k,v in pairs(players) do
local vGuid = v:GetGUIDLow();
AddMMKill(vGuid);
end
elseif (cEntry == 36597) then
killer:AddItem(3000017 ,1)
local players = killer:GetPlayersInRange(50000, 2);
for k,v in pairs(players) do
v:AddItem(3000017 ,1)
end
elseif (cEntry == 28860) then
killer:AddItem(3000018 ,1)
local players = killer:GetPlayersInRange(50000, 2);
for k,v in pairs(players) do
v:AddItem(3000018 ,1)
end
elseif (cEntry == 10184) then
killer:AddItem(3000019 ,1)
local players = killer:GetPlayersInRange(50000, 2);
for k,v in pairs(players) do
v:AddItem(3000019 ,1)
end
elseif (cEntry == 34564) then
killer:AddItem(3000020 ,1)
local players = killer:GetPlayersInRange(50000, 2);
for k,v in pairs(players) do
v:AddItem(3000020 ,1)
end
end
end
RegisterPlayerEvent( 7, OnKillMM )
local console = debug.getinfo (1, "S").short_src;
print("- "..console);