Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local zone =
- {
- 4395
- }
- local function MakePvPArea(event, player, newZone)
- for _,v in pairs (zone) do
- if newZone == v then
- player:SetFFA(true) -- This will set everyone on PVP like Battle Ring in Gurubashi Arena
- end
- end
- end
- local function AddSoulOnKill(event, killer, killed)
- local zoneId = GetZoneId()
- if zoneId == 4395 then -- Replace 4395 with the ID of your desired zone
- local class = {
- [1] = "|cffC79C6E", -- Warrior
- [2] = "|cffF58CBA", -- Paladin
- [3] = "|cffABD473", -- Hunter
- [4] = "|cffFFF569", -- Rogue
- [5] = "|cffFFFFFF", -- Priest
- [6] = "|cffC41F3B", -- Death Knight
- [7] = "|cff0070DE", -- Shaman
- [8] = "|cff69CCF0", -- Mage
- [9] = "|cff9482C9", -- Warlock
- [11] = "|cffFF7C0A" -- Druid
- }
- local classKiller = class[killer:GetClass()]
- local classKilled = class[killed:GetClass()]
- local nameKiller = killer:GetName()
- local nameKilled = killed:GetName()
- killer:SendBroadcastMessage("|cffff0000[PvP Zone]|r You have claimed "..classKilled..""..nameKilled.."s|r soul!")
- killer:AddItem(95031, 1)
- killed:SendBroadcastMessage("|cffff0000[PvP Zone]|r "..classKiller..""..nameKiller.."|r has claimed your soul!")
- killed:RemoveItem(95031, 1)
- end
- end
- RegisterPlayerEvent(27, MakePvPArea)
- RegisterPlayerEvent(6, AddSoulOnKill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement