How do i make the guards attack pvpers menu

User Tag List

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

    How do i make the guards attack pvpers

    ok im having a major problem i need to make the guards attack the people at the mall if they start to PvP so can anyone help me

    P.S. im using LUA

    How do i make the guards attack pvpers
  2. #2
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea abotu lua, but i know there is a script for c++ if you would like it i can give it to you

    Code:
    //possible credit to zysus?
    //unsure, but codes are VERY VERY similar, so might as well
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define NoPvPZone 493 //Moonglade
    void OnEnterCombat(Player *pPlayer, Unit *pUnit)
    {
       if (pPlayer->GetZoneId() == 493)
    
      pPlayer->BroadcastMessage("Don't Pvp In moonglad");
       }
     }
    void SetupNoPvP(ScriptMgr* mgr){
      mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_COMBAT, &OnEnterCombat);
    }
    This code will kill anyone pvping at the mall, just change the zone id credits to lilnate from ascent forums

  3. #3
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea on ascentemu there is a pvp script, ill post it later if no1 else has
    If you need me you have my skype, if you don't have my skype then you don't need me.

  4. #4
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't do this with LUA, only using C++.
    Edit to make the snippet kick the player, and fixed the DEFINE, and syntax error. Don't define stuff you don't use later :P
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define NOPVPZONE 493 //Moonglade
    void OnEnterCombat(Player *pPlayer, Unit *pUnit)
    {
       if (pPlayer->GetZoneId() == NOPVPZONE)
    {
      pPlayer->BroadcastMessage("Don't Pvp In moonglade");
    pPlayer->Kick();
       }
     }
    void SetupNoPvP(ScriptMgr* mgr){
      mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_COMBAT, &OnEnterCombat);
    }
    Last edited by TheSpidey; 03-22-2008 at 09:04 AM.

  5. #5
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heh ^^ (filler)

  6. #6
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i thought on enter combat didnt work


  7. #7
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the player_kill one then

  8. #8
    tsunade's Avatar Member
    Reputation
    2
    Join Date
    Jan 2008
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok then i have it what do i do with it and what type of file should it be im use to lua

  9. #9
    tsunade's Avatar Member
    Reputation
    2
    Join Date
    Jan 2008
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im not joking idk where what to do with this all that i did was to put it notepad so what do i do next

  10. #10
    tsunade's Avatar Member
    Reputation
    2
    Join Date
    Jan 2008
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok i need to know how to make this work i saved it and i put it in the server but it wont compile will someone help

  11. #11
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  12. #12
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol was about to post that hehe.

Similar Threads

  1. Got 30K gold which I want to invest, how do I make the most gold out of it?
    By imbapojken in forum World of Warcraft General
    Replies: 4
    Last Post: 01-10-2014, 12:46 AM
  2. Lazybot evo - can't make the bot attack mobs?!
    By totalyharry in forum WoW Bot Maps And Profiles
    Replies: 4
    Last Post: 03-27-2012, 08:23 PM
  3. how do you make the action bar small?
    By rocky4541 in forum World of Warcraft General
    Replies: 4
    Last Post: 01-15-2009, 06:36 PM
  4. How do I make the server stats update live
    By project anthrax in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 12-24-2008, 09:03 AM
  5. How do you make the max level 80?
    By karlz in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 08-30-2007, 08:43 AM
All times are GMT -5. The time now is 04:53 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