[Lua]Anti-PVP + Anti-Duel Guards menu

User Tag List

Results 1 to 3 of 3
  1. #1
    shellx's Avatar Member
    Reputation
    12
    Join Date
    Oct 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua]Anti-PVP + Anti-Duel Guards

    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

    Code:
    function Battleguard(pUnit, Event)
    pUnit:RegisterEvent("Lookingforpvpers", 1000, 0)
    end
    function Lookingforpvpers(pUnit, Event)
    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

    Code:
    local ADG_ID = 13371337
    local duelrecord = {}
    
    function ADG_Spawn(ADG, Event)
        ADG:RegisterEvent("InRangePlayerCheckForDuels", 2000, 0)
        ADG:RegisterEvent("PeriodicPrint", 600000, 0) -- One hour
            logcol(13)
            print("[Anti-Duel Guard] Loaded Successfully!")
            logcol(7)
    end
    
    function InRangePlayerCheckForDuels(ADG, Event)
        local plrs = ADG:GetInRangePlayers()
        for k, v in pairs(plrs) do
            if (v:GetDuelState() == 1) then -- duel state started
                table.insert(duelrecord, v:GetName())
                ADG:Kill(v)
                v:BroadcastAreaTriggerMessage("Do not duel in the mall! Your name has been logged!")
            end
        end
    end
    
    local PeriodicPrint = function(ADG, Event)
        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_ID, 18, "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... :wave:

    [Lua]Anti-PVP + Anti-Duel Guards
  2. #2
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn it's Cool ! what is it for ? 3.3.2 ? Well +rep anyways for Showing !
    Shit's Gone Real

  3. #3
    shellx's Avatar Member
    Reputation
    12
    Join Date
    Oct 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    usable in every ArcEmu core which provides HyperArcLua and thx for comment

Similar Threads

  1. [Release] Lua Craze PvP System
    By Trle94 in forum WoW EMU General Releases
    Replies: 26
    Last Post: 11-12-2009, 07:26 PM
  2. Anti-PvP Guard script help
    By gimmeurlife in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 06-16-2009, 12:32 AM
  3. [Request] Anti pvp Guard C++
    By mjas in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-14-2008, 05:41 AM
  4. auto it anti-afk pvp bot
    By Beastslayer in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 05-04-2007, 02:19 PM
All times are GMT -5. The time now is 01:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search