PVP Guard menu

User Tag List

Thread: PVP Guard

Results 1 to 15 of 15
  1. #1
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PVP Guard

    Just wondering If anyone knows a way to use Flexible Database Editor to create a guard that will attack the player who lays the first hit on another player in a pvp zone. Like in gadgetzan or booty bay when u get raped by guards if you start a fight. If so, plz explain... what faction [number] etc... I wanna use AI_agent so the npc lobs frostbolts at the player
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

    PVP Guard
  2. #2
    Warriar's Avatar Active Member
    Reputation
    31
    Join Date
    May 2009
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that requires lua

    or you could change the faction to 935 which is the Sha'tar, maybe thatll work.
    possibly 470 which is ratchet

  3. #3
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Err

    That would require C++

  4. #4
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats what they said about adding spells to npc's but then found out about ai_agent
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

  5. #5
    Kirth's Avatar Active Member
    Reputation
    58
    Join Date
    Nov 2007
    Posts
    274
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jackthripper View Post
    thats what they said about adding spells to npc's but then found out about ai_agent
    "They" are silly. C++ allows you to add more coordinated spell/attacks to an NPC. So does Lua.

    However, Lua will not cut it this time. There are no flags that set a PvP guard. You'd have to write a script that makes the NPC gain agrro when a player enters combat and does damage/attacks.

    Setting the faction will not work, PvP guards have not been implemented.

  6. #6
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you all spend to much time behind ur scripting engines
    Last edited by jackthripper; 07-21-2009 at 09:29 PM.
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

  7. #7
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kirth View Post
    Setting the faction will not work, PvP guards have not been implemented.
    Works on TrinityCore, last time I checked.

  8. #8
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i figured out a way to do this. its so sweet i aint gunna post it here cause i want frikin credit for this for once
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

  9. #9
    SupernovaHH's Avatar Member
    Reputation
    12
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have an exact script to do what your looking for. its LUA and i can give you a NPC with it

    LUA Script
    Code:
    --Scripted by Lorre, Supporter Nightfall-WoW
    --This script is still under development, This means it may not work yet.
    local VERSION = "1.0"
    local SERVER_NAME = "WoW Knights" --Change to your server name
    local GUARD_FEATURE = "Enabled"     --[ Define wether the Guard is Enabled or Disabled. ]]
    local NPC_ENTRYID = 50099
    local type, pairs = type, pairs;
    
    local function Death_Finger(pUnit, Player) 
        pUnit:FullCastSpellOnTarget(31984, Player) -- Change (5) to your spell <ID> 'Death touch may not work on all servers'.
    end
    
    --Do not edit below, Only if you know what your doing.
    function Anti_Pvp_Guard_OnSpawn(pUnit, Event)
    	if (GUARD_FEATURE == "Enabled") then
        pUnit:RegisterEvent("Check_PvP", 1200, 0)
    	end
    end
    
    function Check_PvP(pUnit, Event, Player)
        local Player_W = pUnit:GetInRangePlayers()
        
        if (Player_W ~= nil) and (type(Player_W) == "table") then
    	
    	for index, player in pairs(Player_W) do
    	if (player:IsPlayerAttacking() == true) then
    	player:SendAreaTriggerMessage("PvP is not allowed in this area") --When some PvP in the not allowed area this messager will be send in Screen.
    	pUnit:RegisterEvent("Death_Finger", 1500, 4)
    	Death_Finger(pUnit, player)
    		end
    	end 
    end 
    end
    
    RegisterUnitEvent(NPC_ENTRYID, 18, "Anti_Pvp_Guard_OnSpawn") 
    
    --Never edit Below this
    print (" ====================================================")
    print ("   Loaded: Anti-Pvp-Guard (V"..VERSION..")")
    print ("   Made by Lorre")
    print ("   This script is Original released for Nightfall WoW")
    print ("   This script now works on: ("..SERVER_NAME..")")
    print (" ====================================================")
    PVP Guard (Shadow Guard)
    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) 
    values ('50099', "Shadow Guard", "PVP Control", '', '0', '10', '0', '3', '0', '0', '7616', '26540', '27536', '27897', '1', '1', '1', '0');
    
    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`) 
    values ('50099', '80', '255', '7', '999999', '999999', '99999', '1', '0', '999999', '0', '999999', '999999', '0', '0', '0', '0', '300000', '99999', '999999', '999999', '999999', '999999', '999999', '999999', '0', '0', "0", '0', '99999999', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
    The LUA script IS NOT my work all credit goes to the name in the script

    Also, the NPC has 4 different displays, all displays from creatures by icecrown (the NPC was my doing xD)

    and in the script you can change the spell ID from
    Last edited by SupernovaHH; 07-21-2009 at 11:15 PM.

  10. #10
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jackthripper View Post
    i figured out a way to do this. its so sweet i aint gunna post it here cause i want frikin credit for this for once
    Then don't post. No-one cares.

  11. #11
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Agreeing with eradicator..
    Well.. to Supernovah.. looks pretty.. take some cookies (+Rep x2)
    [/COLOR]

  12. #12
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have an exact script to do what your looking for. its LUA and i can give you a NPC with it
    nope no good. to many syntax errors
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

  13. #13
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll be making a script in C++ soon. Will release it here on MMOwned


  14. #14
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vindicated View Post
    I'll be making a script in C++ soon. Will release it here on MMOwned
    What's your approach? I remember arguments about efficiency over this back on the Ascent forums.

    I don't see why you can't just hook on combat, loop through NPCs in vision range, and engage based on flags.

  15. #15
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm way more preventive. I'm using the hook OnZone and when a player enters the zone, it checks his alliance. If it is alliance coming into Orgrimmar, the script would message the player and give them 5 seconds to leave the zone. If they didn't leave in 5 seconds (The script would loop the message in a countdown from 5), then they would be teleported back to their alliance's main city, and kicked (not banned or anything), from the realm.

    There are numerous ways this could be done (City/Mall Guard), but this is my way
    Last edited by Vindicated; 07-23-2009 at 02:39 AM.


Similar Threads

  1. [Lua Script] PvP Guard
    By choweyiii in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-18-2012, 09:01 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. PVP Guards
    By 1337 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 03-07-2009, 04:21 PM
  4. [Request] Anti pvp Guard C++
    By mjas in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-14-2008, 05:41 AM
  5. How can you make guards that attack people who are PvP-ing ?
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 12-31-2007, 07:24 AM
All times are GMT -5. The time now is 08:25 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