First of all these scripts aren't mine! So i'm not gonna yell for reps

Yes, they are coded in HypArcLUA and yes all of them usable in ArcEmu

Anti-Pvp;

if someone attacks to another player its getting killed by npc

PHP Code:
function Battleguard(pUnitEvent)
pUnit:RegisterEvent("Lookingforpvpers"10000)
end
function Lookingforpvpers(pUnitEvent)
local tbl pUnit:GetInRangeFriends()
for 
k,v in pairs(tbl) do
   if 
v:IsInCombat() == true and v:IsPlayerAttacking() == true and  v:GetDistance(pUnit) <= 1800 then 
        pUnit
:Kill(v)
        
end
    end
end
RegisterUnitEvent
(Npc id 18"Battleguard"
Anti-Duel;

if someone makes a duel; attacker will be killed by npc

PHP Code:
local ADG_ID 13371337
local duelrecord 
= {}

function 
ADG_Spawn(ADGEvent)
    
ADG:RegisterEvent("InRangePlayerCheckForDuels"20000)
    
ADG:RegisterEvent("PeriodicPrint"6000000) -- One hour
        logcol
(13)
        print(
"[Anti-Duel Guard] Loaded Successfully!")
        
logcol(7)
end

function InRangePlayerCheckForDuels(ADGEvent)
    
local plrs ADG:GetInRangePlayers()
    for 
kv in pairs(plrs) do
        if (
v:GetDuelState() == 1then -- duel state started
            table
.insert(duelrecordv:GetName())
            
ADG:Kill(v)
            
v:BroadcastAreaTriggerMessage("Do not duel in the mall! Your  name has been logged!")
        
end
    end
end

local PeriodicPrint 
= function(ADGEvent)
    
logcol(13) -- some beautiful magenta
    
print("[Anti-Duel Guard] These people have dueled within the last  server restart:\n"..duelrecord)
    
logcol(7) -- return to its original grey
end

RegisterUnitEvent
(ADG_ID18"ADG_Spawn"
Credits;

THX for Anti-Duel to

Alvanaar
Neglected
Hypersniper


THX for Anti-PVP to

Nezth



Don't forget to change npc idS with ur own npc

Ish-nu Alah...



› See More: [Lua]Anti-PVP + Anti-Duel Guards