Anti-PvP Guard script help menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    gimmeurlife's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anti-PvP Guard script help




    Ok well this IS NOT my script originally I'm just trying to modify it so that the npc will say something upon killing the player but I can't seem to get it to work cuz i'm still a Lua nub >.>

    I've tried it two different ways but neither are working and I need some help on it if anyone could give me a hand.

    Here is the script:

    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)
            pUnit:SendChatMessage(12,0,Player:Getname()..", Keep those weapons outta my sight or pay with your life!")
            end
        end
    end
    
    RegisterUnitEvent(82027 , 18, "Battleguard")

    It was a couple days ago that I got this script so I can't remember exactly who it was who posted it from another site, but I will look so I can give them credit.

    But if anyone could tell me how to get the npc's to actually say something when they kill the player it would be a great help cuz I just can't get it to work for me.

    I'll give +Rep for the help
    Last edited by gimmeurlife; 06-16-2009 at 12:35 AM.

    Anti-PvP Guard script help

Similar Threads

  1. [Request] Anti-PvP C++ Script
    By kaato in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 04-08-2009, 06:43 PM
  2. Dalaran guard tele script[HELP!]
    By Flake0207 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 12-20-2008, 04:05 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. [HELP]Anti PvP System
    By Mizuki90 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-09-2008, 12:05 PM
All times are GMT -5. The time now is 10:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search