Will work for rep! (lol, just a joke mods, chill) menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 40 of 40
  1. #31
    bestplaya090's Avatar Member
    Reputation
    3
    Join Date
    Jul 2007
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey i need hlp i like wat u have but not foloing on how to exicute the codes can u hllp walk me through

    Will work for rep! (lol, just a joke mods, chill)
  2. #32
    Shao111's Avatar Active Member
    Reputation
    33
    Join Date
    Jul 2007
    Posts
    281
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Soo... Any luck with the warper?

  3. #33
    Maine's Avatar Member
    Reputation
    24
    Join Date
    Dec 2007
    Posts
    524
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Berry did you finish? the Welcome NPC

  4. #34
    Noobcraft's Avatar Member
    Reputation
    141
    Join Date
    Aug 2007
    Posts
    598
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya need a welcome guy that says welcome to noobcraft have a great time thats all he needs to say lolz will +Rep



  5. #35
    chaoticd35's Avatar Site Donator
    Reputation
    44
    Join Date
    Jun 2007
    Posts
    337
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to make a guard for a mall that regardless of Horde or Alliance, will attack those doing pvp action that is forbidden in the mall area ? rep if you can..
    Last edited by chaoticd35; 01-10-2008 at 06:32 PM.

  6. #36
    berryman13's Avatar Contributor
    Reputation
    251
    Join Date
    Dec 2006
    Posts
    856
    Thanks G/R
    0/2
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    chaoticd35,
    Don't think it is possible, sorry.
    I can try to see if there is a way.
    PLEASE REMEMBER! A simple thanks can mean so much
    CHEAP GOLD ON [US] [ALLIANCE] STORMRAGE & KEL'THUZAD! -https://bit.ly/1nf04nF

    - BERRYMAN13

  7. #37
    Shao111's Avatar Active Member
    Reputation
    33
    Join Date
    Jul 2007
    Posts
    281
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by berryman13 View Post
    chaoticd35,
    Don't think it is possible, sorry.
    I can try to see if there is a way.
    Any progress on the customized warper?

  8. #38
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by chaoticd35 View Post
    Is it possible to make a guard for a mall that regardless of Horde or Alliance, will attack those doing pvp action that is forbidden in the mall area ? rep if you can..
    That isn't possible (sry for going into thread ).
    Burlex is adding that soon. Just wait

  9. #39
    berryman13's Avatar Contributor
    Reputation
    251
    Join Date
    Dec 2006
    Posts
    856
    Thanks G/R
    0/2
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    chaoticd35, looks like i found something:

    Code:
    /******************************************************/
    /*                    Anti PVP guard                      */
    /*                    By optical                         */
    /*                    Redistribution prohibited           */
    /******************************************************/
    #include "StdAfx.h"
    void OnEnterCombat(Player *pPlayer, Unit *pTarget); //Function Header
    extern "C" SCRIPT_DECL uint32 _exp_get_version()
    {
        return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
         ::sScriptMgr.register_hook(SERVER_HOOK_EVENT_ON_ENTER_COMBAT, OnEnterCombat);
    }
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    
    #define NOPVPGUARD 1 //ID for the anti PVP creature
    #define MAX_DISTANCE 70.0 //Distance they must be within for the guard to agro
    #define KILL_SPELL 5 //The spell used when they get agro - death touch
    #define UNIT_INSTANT true //Instant cast spell? true or false
    unsigned Zones[4] = { 33,440,618,3523, }; //STV,Tanaris,winterspring,netherstorm
    void OnEnterCombat(Player *pPlayer, Unit *pTarget)
    {
        bool InZone = false;
        for (int C = 0; C < 4; C++) 
            {
            if (pPlayer->GetZoneId() == Zones[C]) {InZone = true;}
            }
        if (InZone == false) {return;}
        Creature *pCreature = pPlayer->GetMapMgr()->GetSqlIdCreature(NOPVPGUARD);
        if (!pCreature) {return;} //No creature found, handle gracefully and return
        float dist = pCreature->CalcDistance(pPlayer->GetPositionX(),pPlayer->GetPositionY(),pPlayer->GetPositionZ());
        if (dist <= MAX_DISTANCE)
            {
            Unit *pUnit = (Unit *)pPlayer; //Cast the pointer to a Unit object
            pCreature->GetAIInterface()->AttackReaction(pUnit,0,0); //Attack! (not sure about the second and third params here, set to 0 to be safe
            if (KILL_SPELL != NULL)
                pCreature->CastSpell(pUnit,KILL_SPELL,UNIT_INSTANT);
            }
    }
    Shao111:
    And no, haven't finished it yet, am working though, had a minor setback.
    PLEASE REMEMBER! A simple thanks can mean so much
    CHEAP GOLD ON [US] [ALLIANCE] STORMRAGE & KEL'THUZAD! -https://bit.ly/1nf04nF

    - BERRYMAN13

  10. #40
    Maine's Avatar Member
    Reputation
    24
    Join Date
    Dec 2007
    Posts
    524
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Berryman what about my npc

Page 3 of 3 FirstFirst 123

Similar Threads

  1. [Selling] Will work for a cata key
    By mtl123 in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 08-12-2011, 03:08 PM
  2. Will Work For US Gamecard.
    By Crazy-Chik in forum World of Warcraft General
    Replies: 10
    Last Post: 04-19-2009, 02:18 PM
All times are GMT -5. The time now is 11:05 PM. 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