Advertisement
WIXXZI

Untitled

Mar 6th, 2023 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. local zone =
  2. {
  3. 4395
  4. }
  5.  
  6. local function MakePvPArea(event, player, newZone)
  7. for _,v in pairs (zone) do
  8. if newZone == v then
  9. player:SetFFA(true) -- This will set everyone on PVP like Battle Ring in Gurubashi Arena
  10. end
  11. end
  12. end
  13.  
  14. local function AddSoulOnKill(event, killer, killed)
  15. local zoneId = GetZoneId()
  16. if zoneId == 4395 then -- Replace 4395 with the ID of your desired zone
  17. local class = {
  18. [1] = "|cffC79C6E", -- Warrior
  19. [2] = "|cffF58CBA", -- Paladin
  20. [3] = "|cffABD473", -- Hunter
  21. [4] = "|cffFFF569", -- Rogue
  22. [5] = "|cffFFFFFF", -- Priest
  23. [6] = "|cffC41F3B", -- Death Knight
  24. [7] = "|cff0070DE", -- Shaman
  25. [8] = "|cff69CCF0", -- Mage
  26. [9] = "|cff9482C9", -- Warlock
  27. [11] = "|cffFF7C0A" -- Druid
  28. }
  29. local classKiller = class[killer:GetClass()]
  30. local classKilled = class[killed:GetClass()]
  31. local nameKiller = killer:GetName()
  32. local nameKilled = killed:GetName()
  33. killer:SendBroadcastMessage("|cffff0000[PvP Zone]|r You have claimed "..classKilled..""..nameKilled.."s|r soul!")
  34. killer:AddItem(95031, 1)
  35. killed:SendBroadcastMessage("|cffff0000[PvP Zone]|r "..classKiller..""..nameKiller.."|r has claimed your soul!")
  36. killed:RemoveItem(95031, 1)
  37. end
  38. end
  39.  
  40. RegisterPlayerEvent(27, MakePvPArea)
  41. RegisterPlayerEvent(6, AddSoulOnKill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement