[Question] Local Defence Channel menu

User Tag List

Results 1 to 3 of 3
  1. #1
    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)

    [Question] Local Defence Channel

    Well, For example, You have your horde mall with guards patrolling. Is it possible for when Alliance raid that mall and attack a guard, in local defence it says The Horde Mall is under attack!

    Jw If it's possible

    -- Thanks.

    - Warriar

    [Question] Local Defence Channel
  2. #2
    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)
    mmm not possible yet. It's a nice function though, and could definitely be added to Arc, I'd look into it if I weren't on a mac :S

  3. #3
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that actually probably possible through creature Ai and not challenging either......

    if its possible i would think this is how you do it

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    class GuardAI : public CreatureAIScript
    {
    public:
        GuardAI(Creature* pCreature) : CreatureAIScript(pCreature) {}
    
        void OnDied(Unit * mKiller)
        {
        }
    
        void OnCombatStart(Unit* mTarget)
        {
            if(mTarget->IsPlayer() && mTarget->GetTeam() != _unit->GetTeam())
            {
                Player * plr = objmgr.GetPlayer(mTarget->GetGUID());
                plr->BroadcastMessage("Area Under attack");
                Channel * chan = channelmgr.GetChannel("World Defence", plr);
                chan->Say(plr, "Your area is under attack", plr, true);
            }
        }
    
        void Destroy()
        {
            delete (GuardAI*)this;
        }
    
        static CreatureAIScript *Create(Creature * c) { return new GuardAI(c); }
    };
    
    CreatureAIScript * create_guard(Creature * c) { return new GuardAI(c); }
    
     void SetupMafiaInstance(ScriptMgr * mgr)
    {
        mgr->register_creature_script(100001, &GuardAI::Create);
    }
    Last edited by mager1794; 06-26-2009 at 02:21 AM.
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. [question] performance: static dim vs. local var
    By abuckau907 in forum Programming
    Replies: 0
    Last Post: 03-11-2010, 03:03 PM
  2. Question about addon chat channel
    By kargho in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 12-07-2009, 08:39 AM
  3. [Question] Youtube Channel
    By JuniorTechnician in forum Community Chat
    Replies: 0
    Last Post: 02-16-2009, 05:12 PM
  4. [Question] local-enus.mpq
    By L'Lawliet in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 10-09-2007, 05:24 PM
All times are GMT -5. The time now is 03:03 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