Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 7 of 7
  1. #1
    Banned

    Join Date
    Jan 2009
    Posts
    68
    Post Thanks / Like
    Rep Power
    0
    Reputation
    91

    [C++] Anti PVP Script - Kick Players for PVP in Neutral Zones


    Register to remove this ad
    I know some players were looking for something like this, (its actually on our AUDB SVN Project :P )
    This will simply kick players when they kill another player in a non pvp zone. You can actually modify this so that it can kick as soon as a players PVP Flag goes active.
    Code:
    /* Modified Script of AntiPvP script for Banned Zones */
    /* Original Author Unknown */
    /* Modified By WHOS / Tekkeryole */
    /* Coded for Aspire HearthStone */
    /* Compatible with r1080+ */
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define MALL_ZONES 2
    
    static uint32 MallZones[MALL_ZONES] = {394, 0};
    
    void EventKillHandler(PlayerPointer pPlr, PlayerPointer pVictim)
    {
        AreaTable * at = dbcArea.LookupEntry(pPlr->GetMapMgr()->GetAreaID(pPlr->GetPositionX(), pPlr->GetPositionY()));
        for(uint32 i = 0; i < MALL_ZONES; i++)
        {
            if( at && at->ZoneId == MallZones[i] )
            {
                char onkick[1024];
                snprintf((char*)onkick, 1024, "%s was kicked from the server for PvPing in the mall.", pPlr->GetName());
                sWorld.SendWorldText(onkick);
                pPlr->BroadcastMessage("You were kicked for PvPing in the mall.");
                pPlr->Kick(5000);
                return;
            }
        }
    }
    void SetupAntiPvPAtMall(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, &EventKillHandler);
    }
    ##EDIT##

    Arc Emu Users use this script:



    Code:
    /* Modified Script of AntiPvP script for Banned Zones */
    /* Original Author Unknown */
    /* Modified By WHOS / Tekkeryole */
    /* Coded for Arc Emu */
    /* Compatible with latest Revisions */
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define MALL_ZONES 2
    
    static uint32 MallZones[MALL_ZONES] = {394, 0};
    
    void EventKillHandler(Player* pPlr, Player* pVictim)
    {
        AreaTable * at = dbcArea.LookupEntry(pPlr->GetMapMgr()->GetAreaID(pPlr->GetPositionX(), pPlr->GetPositionY()));
        for(uint32 i = 0; i < MALL_ZONES; i++)
        {
            if( at && at->ZoneId == MallZones[i] )
            {
                char onkick[1024];
                snprintf((char*)onkick, 1024, "%s was kicked from the server for PvPing in the mall.", pPlr->GetName());
                sWorld.SendWorldText(onkick);
                pPlr->BroadcastMessage("You were kicked for PvPing in the mall.");
                pPlr->Kick(5000);
                return;
            }
        }
    }
    void SetupAntiPvPAtMall(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, &EventKillHandler);
    }

    credits to tekkeryole



    › See More: [C++] Anti PVP Script - Kick Players for PVP in Neutral Zones



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Scout
    DoPeT's Avatar
    Join Date
    Jan 2010
    Location
    FileTouch.com
    Posts
    27
    Post Thanks / Like
    Rep Power
    15
    Reputation
    15
    Cool script.

  4. #3
    Contributor
    Cocain's Avatar
    Join Date
    Mar 2010
    Posts
    208
    Post Thanks / Like
    Rep Power
    16
    Reputation
    92
    The diffrence between ArcEmu scripts & Trinity scripts are mostly the pointers, which you have editted correctly.

    But when you do not want them to PvP in a certain zone, you better work with defines. Or a restricted area.


    Good job on releasing.

  5. #4
    Grunt

    Join Date
    Feb 2010
    Posts
    42
    Post Thanks / Like
    Rep Power
    16
    Reputation
    98
    very nice

  6. #5
    Beginner

    Join Date
    May 2010
    Posts
    5
    Post Thanks / Like
    Rep Power
    15
    Reputation
    1
    Nice script man
    you seem skilled i wonder if you could make a anti GM Power well PvP flagged Ula/script
    iv ben lookin for one ALL day could ya help me out? Thanks

  7. #6
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Post Thanks / Like
    Rep Power
    21
    Reputation
    319
    Quote Originally Posted by Zylo360 View Post
    Nice script man
    you seem skilled i wonder if you could make a anti GM Power well PvP flagged Ula/script
    iv ben lookin for one ALL day could ya help me out? Thanks
    Look closer nexttime banned..png
    & he didnt make it, it was made by "tekkeryole"
    No touching please.

  8. #7
    Beginner

    Join Date
    May 2010
    Posts
    5
    Post Thanks / Like
    Rep Power
    15
    Reputation
    1

    Register to remove this ad
    ok. my bad thanks

 

 

Visitors found this page by searching for:

anti pvp trinity

how does acemu receives neutral

arcemu how to make neutral zone

dayz script to kick pvpers

how to neutral zone trinitycore

trinitycore make a zone neutral

how to make neutral zone arcemu

ArcEmu PvP script

how to make a pvp area mangos

anti pvp script arcemu

arcemu anti-pvp script

how to make a zone friendly arcemu

arcemu anti pvp script

trinity anti pvp scripts

how make neutral zones mall

How to make neutral zone [Arcemu]

mgaurd.dll#sclient=psy

kick(5000) arcemu

how to make pvp zone trinity

How to make antipvp zones

how to make anti pvp for mangos

SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 09:44 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org