سلام ، آیا این بازدید اول شماست ؟ یا
logo_forum_header

تبلیغات
×
+
سفارش تبلیغات

نمایش نتایج: از 1 به 1 از 1
Like Tree1Likes
  • 1 Post By Mr_Mohammad

موضوع: اسکریپت buff_master_class

  1. #1

    شماره عضویت
    13
    تاریخ عضویت
    Oct 2014
    نوشته ها
    41
    نسل
    نسل مورد علاقه
    نژاد
    نژاد  مورد علاقه
    کلاس
     کلاس  مورد علاقه
    سورس
     سورس مورد علاقه
    پچ
    پچ مورد علاقه
    پسندیده : 58
    مورد پسند : 72 بار در 27 پست
    سیستم عامل و مرورگر:

    اسکریپت buff_master_class

    دورد

    اسکریپت قابلیت دادن buff مخصوص هر کلاس رو داره...

    و به هر کلاس Buff جداگانه میده...

    کد PHP:
    #include "ScriptPCH.h"
         
    enum spells 
    {
        
    POWER_WORD_FORTITUDE 48162,
        
    PRAYER_OF_SPRITE 48074,
        
    SHADOW_BUFF 48170,
        
    KINGS_BUFF 43223,
        
    ARCANE_BUFF 36880,
        
    MARK_OF_THE_WILD 48469
    };
         
    class 
    buff_npc : public CreatureScript
    {
            public:
                    
    buff_npc() : CreatureScript("buff_npc"){}
         
                    
    bool OnGossipHello(Player playerCreature pCreature)
                    {
                            
    player->ADD_GOSSIP_ITEM(4"Buff me!"GOSSIP_SENDER_MAIN1);
                            
    player->ADD_GOSSIP_ITEM(4"Nevermind"GOSSIP_SENDER_MAIN100);
                            
    player->PlayerTalkClass->SendGossipMenu(9425pCreature->GetGUID());
                                        
                            return 
    true;
                    }
         
                    
    bool OnGossipSelect(Player playerCreature pCreatureuint32 /*uiSender*/uint32 uiAction)
                    {
                        
    player->PlayerTalkClass->ClearMenus();
                    if (
    player->IsInCombat())
                  {
                
    ChatHandler(player->GetSession()).PSendSysMessage("|cffffffff[|r|cFFFF4500Combat Check|r|cffffffff]:|r |cffffffffYou're in combat!|r");
                return 
    false;
                 }
                        
                            switch(
    player->getClass())
                            {
                                    case 
    CLASS_WARRIOR:
                                        {
                                            
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                            
    player->CastSpell(playerKINGS_BUFFtrue);
                                            
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                            
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                            
    player->CastSpell(playerSHADOW_BUFFtrue);
                                            
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_PALADIN:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_HUNTER:
                                            {
                                                 
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                                 
    player->CastSpell(playerKINGS_BUFFtrue);
                                                 
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                                 
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                                 
    player->CastSpell(playerARCANE_BUFFtrue);
                                                 
    player->CastSpell(playerSHADOW_BUFFtrue);
                                                 
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                            }break;

                                    case 
    CLASS_ROGUE:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_PRIEST:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_DEATH_KNIGHT:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_SHAMAN:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_MAGE:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_WARLOCK:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    CLASS_DRUID:
                                        {
                                             
    player->CastSpell(playerPOWER_WORD_FORTITUDEtrue);
                                             
    player->CastSpell(playerKINGS_BUFFtrue);
                                             
    player->CastSpell(playerMARK_OF_THE_WILDtrue);
                                             
    player->CastSpell(playerPRAYER_OF_SPRITEtrue);
                                             
    player->CastSpell(playerARCANE_BUFFtrue);
                                             
    player->CastSpell(playerSHADOW_BUFFtrue);
                                             
    pCreature->MonsterWhisper("You are now buffed!"player->GetGUID(), true);
                                        }break;

                                    case 
    100:
                                    {
                                            
    player->CLOSE_GOSSIP_MENU();
                                    }break;
                                         
                            }
                            return 
    true;
                    }
    };
         
    void AddSC_buff_npc()
    {
            new 
    buff_npc();

    لذت ببرید...

    2 کاربر پست Mr_Mohammad عزیز را پسندیده اند .

    Nightprince (10-29-2014),ubite (02-01-2015)

    ubite likes this.
    مشکل ما اینه که میخوایم تو دنیایی مجازی کاربر برتر بشیم
    که اگه یه روز اینترنت نداشته باشیم فراموزش میشیم
    داداش گلم
    سعی کن تو دنیای واقعی ت برتر باشی
    نه اینجا که یه مشت بچه مچه شدن شاخ

  2. # ADS
    سیستم تبلیغات
    تاریخ عضویت
    01/01/2014
    نوشته ها
    پستی ندارد.
     

کلمات کلیدی این موضوع

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •