// Level Giving Item
bool ItemUse_custom_item_levelplayer(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
{
    Config DARKICEConfig;
	if(!DARKICEConfig.SetSource(_DARKICE_CONFIG))
		error_log("DARKICE: Unable to open configuration file");

    if ((pPlayer->isInCombat()) || (pPlayer->isInFlight()) || (pPlayer->isDead()))
    {
        pPlayer->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, pItem, NULL);
        return false;
    }
	else
	{
		if((pPlayer->getLevel()) <= (DARKICEConfig.GetFloatDefault("LevelUpItemSafeLevel",0)))
		{
			pPlayer->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
			pPlayer->GiveLevel((pPlayer->getLevel())+(DARKICEConfig.GetFloatDefault("LevelUpItemAddLevel",0)));
			return true;
		}
		else
		{
			pPlayer->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, pItem, NULL);
			return false;
		}
	}
}
Пример #2
0
PlayerbotMgr::PlayerbotMgr(Player* const master) : m_master(master)
{
    // load config variables
    m_confMaxNumBots = botConfig.GetIntDefault("PlayerbotAI.MaxNumBots", 9);
    m_confDebugWhisper = botConfig.GetBoolDefault("PlayerbotAI.DebugWhisper", false);
    m_confFollowDistance[0] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMin", 0.5f);
    m_confFollowDistance[1] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMax", 1.0f);
    m_confCollectCombat = botConfig.GetBoolDefault("PlayerbotAI.Collect.Combat", true);
    m_confCollectQuest = botConfig.GetBoolDefault("PlayerbotAI.Collect.Quest", true);
    m_confCollectProfession = botConfig.GetBoolDefault("PlayerbotAI.Collect.Profession", true);
    m_confCollectLoot = botConfig.GetBoolDefault("PlayerbotAI.Collect.Loot", true);
    m_confCollectSkin = botConfig.GetBoolDefault("PlayerbotAI.Collect.Skin", true);
    m_confCollectObjects = botConfig.GetBoolDefault("PlayerbotAI.Collect.Objects", true);
    m_confCollectDistanceMax = botConfig.GetIntDefault("PlayerbotAI.Collect.DistanceMax", 50);
    gConfigSellLevelDiff = botConfig.GetIntDefault("PlayerbotAI.SellAll.LevelDiff", 10);
    if (m_confCollectDistanceMax > 100)
    {
        sLog.outError("Playerbot: PlayerbotAI.Collect.DistanceMax higher than allowed. Using 100");
        m_confCollectDistanceMax = 100;
    }
    m_confCollectDistance = botConfig.GetIntDefault("PlayerbotAI.Collect.Distance", 25);
    if (m_confCollectDistance > m_confCollectDistanceMax)
    {
        sLog.outError("Playerbot: PlayerbotAI.Collect.Distance higher than PlayerbotAI.Collect.DistanceMax. Using DistanceMax value");
        m_confCollectDistance = m_confCollectDistanceMax;
    }
}
Пример #3
0
float GetConfigValueFloat(char const* option)
{
    //Get db int from file
    float dbfloat = TScriptConfig.GetFloatDefault(option, 0);

    return dbfloat;
}
PlayerbotMgr::PlayerbotMgr(Player* const master) : m_master(master)
{
    // load config variables
    m_confMaxNumBots = botConfig.GetIntDefault("PlayerbotAI.MaxNumBots", 9);
    m_confDebugWhisper = botConfig.GetBoolDefault("PlayerbotAI.DebugWhisper", false);
    m_confFollowDistance[0] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMin", 0.5f);
    m_confFollowDistance[1] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMin", 1.0f);
}
Пример #5
0
PlayerbotMgr::PlayerbotMgr(Player* const master) : m_master(master)
{
    // load config variables
    m_confMaxNumBots = botConfig.GetIntDefault("PlayerbotAI.MaxNumBots", 9);
    m_confDebugWhisper = botConfig.GetBoolDefault("PlayerbotAI.DebugWhisper", false);
    m_confFollowDistance[0] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMin", 0.5f);
    m_confFollowDistance[1] = botConfig.GetFloatDefault("PlayerbotAI.FollowDistanceMax", 1.0f);
    m_confCollectCombat = botConfig.GetBoolDefault("PlayerbotAI.Collect.Combat", true);
    m_confCollectQuest = botConfig.GetBoolDefault("PlayerbotAI.Collect.Quest", true);
    m_confCollectProfession = botConfig.GetBoolDefault("PlayerbotAI.Collect.Profession", true);
    m_confCollectLoot = botConfig.GetBoolDefault("PlayerbotAI.Collect.Loot", true);
    m_confCollectSkin = botConfig.GetBoolDefault("PlayerbotAI.Collect.Skin", true);
    m_confCollectObjects = botConfig.GetBoolDefault("PlayerbotAI.Collect.Objects", true);
}
bool GossipHello_custom_npc_tokenvendor(Player* pPlayer, Creature* pCreature)
{
    Config HNConfig;
	if(!HNConfig.SetSource(_HELLSCREAM_CONFIG,true))
		error_log("HN: Unable to open configuration file");

    pPlayer->ADD_GOSSIP_ITEM( 5, "Exchange 25 BOJ to 10 Gold" , GOSSIP_SENDER_MAIN, 2000);
    if(pPlayer->getLevel() < (HNConfig.GetFloatDefault("TokenVendor.MaxLevel",0)))
    pPlayer->ADD_GOSSIP_ITEM( 5, "40 BOJ Exchange 1 Level" , GOSSIP_SENDER_MAIN, 3000);
    pPlayer->ADD_GOSSIP_ITEM( 5, "20 BOJ Exchange 36 Slot Bag" , GOSSIP_SENDER_MAIN, 4000);
	pPlayer->ADD_GOSSIP_ITEM(5,"5 BOJ Exchange 1 Buff Spell" ,GOSSIP_SENDER_MAIN,5000);
	pPlayer->ADD_GOSSIP_ITEM(5,"10 BOJ Exchange 1 Item Summon Trainer" ,GOSSIP_SENDER_MAIN,6000);
	pPlayer->ADD_GOSSIP_ITEM(5,"10 BOJ Exchange 1 Item Summon Professional" ,GOSSIP_SENDER_MAIN,7000);
	pPlayer->ADD_GOSSIP_ITEM(5,"10 BOJ Exchange 1 Item Summon Tele NPC" ,GOSSIP_SENDER_MAIN,8000);
 
    pPlayer->SEND_GOSSIP_MENU(3961,pCreature->GetGUID());
    return true;
}
// Tele NPC Summoning Item
bool ItemUse_custom_item_summontelenpc(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
{
    Config DARKICEConfig;
	if(!DARKICEConfig.SetSource(_DARKICE_CONFIG))
		error_log("DARKICE: Unable to open configuration file");

    if ((pPlayer->isInCombat()) || (pPlayer->isInFlight()) || (pPlayer->isDead()))
    {
        pPlayer->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, pItem, NULL);
        return false;
    }
	else
    {
		pPlayer->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
        pPlayer->SummonCreature((DARKICEConfig.GetFloatDefault("Item_SummonTeleportMasterEntryID",0)), pPlayer->GetPositionX() ,pPlayer->GetPositionY()+5, pPlayer->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,60000);
        return true;
    }
}
// Talent Points Giving Item
bool ItemUse_custom_item_talentstone(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
{
    Config DARKICEConfig;
	if(!DARKICEConfig.SetSource(_DARKICE_CONFIG))
		error_log("DARKICE: Unable to open configuration file");

    if ((pPlayer->isInCombat()) || (pPlayer->isInFlight()) || (pPlayer->isDead()))
    {
        pPlayer->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, pItem, NULL);
        return false;
    }
	else
    {
	pPlayer->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
    pPlayer->SetFreeTalentPoints(pPlayer->GetFreeTalentPoints()+(DARKICEConfig.GetFloatDefault("Item_TalentPointStoneAddTalents",0)));
    pPlayer->SendTalentsInfoData(false);
    return true;
    }
}
Пример #9
0
void SendDefaultMenu_custom_npc_buffmaster(Player* pPlayer, Creature* pCreature, uint32 uiAction)
{

    //Combat Check
    if (pPlayer->isInCombat())
    {
        pPlayer->CLOSE_GOSSIP_MENU();
        pCreature->MonsterWhisper("You are in combat!", pPlayer, false);
        return;
    }

    Config CUSTOMConfig;
	if(!CUSTOMConfig.SetSource(_CUSTOM_CONFIG))
		error_log("CUSTOM: Unable to open configuration file");
        
    //Money Check
    if (pPlayer->GetMoney() < (CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)))
    {
        pPlayer->CLOSE_GOSSIP_MENU();
        pCreature->MonsterWhisper("You don't have enough money.", pPlayer, false);
        return;
    }

	bool SmallBuffsEnabled = CUSTOMConfig.GetBoolDefault("BuffsMaster.SmallBuffsEnabled", true);
	bool GreatBuffsEnabled = CUSTOMConfig.GetBoolDefault("BuffsMaster.GreatBuffsEnabled", true);
	bool GameMasterBuffsEnabled = CUSTOMConfig.GetBoolDefault("BuffsMaster.GameMasterBuffsEnabled", true);
	bool PlayerToolsEnabled = CUSTOMConfig.GetBoolDefault("BuffsMaster.PlayerToolsEnabled", true);
	bool GoldSpellEnabled = CUSTOMConfig.GetBoolDefault("BuffsMaster.GoldSpellEnabled", false);

    switch(uiAction)
    {
        case 1000:
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Mark of the Wild"                , GOSSIP_SENDER_MAIN, 1001);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Amplify Magic"                   , GOSSIP_SENDER_MAIN, 1010);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Arcane Intellect"                , GOSSIP_SENDER_MAIN, 1015);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Dalaran Intellect"               , GOSSIP_SENDER_MAIN, 1020);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Dampen Magic"                    , GOSSIP_SENDER_MAIN, 1025);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Blessing of Kings"               , GOSSIP_SENDER_MAIN, 1030);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Blessing of Might"               , GOSSIP_SENDER_MAIN, 1035);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Blessing of Wisdom"              , GOSSIP_SENDER_MAIN, 1040);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Divine Spirit"                   , GOSSIP_SENDER_MAIN, 1045);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Power Word: Fortitude"           , GOSSIP_SENDER_MAIN, 1050);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Shadow Protection"               , GOSSIP_SENDER_MAIN, 1055);
                pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                            , GOSSIP_SENDER_MAIN, 5005);

                pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetObjectGuid());
                break;

        case 2000:
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Gift of the Wild"                , GOSSIP_SENDER_MAIN, 2001);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Arcane Brilliance"               , GOSSIP_SENDER_MAIN, 2005);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Dalaran Brilliance"              , GOSSIP_SENDER_MAIN, 2010);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Greater Blessing of Kings"       , GOSSIP_SENDER_MAIN, 2015);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Greater Blessing of Might"       , GOSSIP_SENDER_MAIN, 2020);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Greater Blessing of Sanctuary"   , GOSSIP_SENDER_MAIN, 2025);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Greater Blessing of Wisdom"      , GOSSIP_SENDER_MAIN, 2030);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Prayer of Fortitude"             , GOSSIP_SENDER_MAIN, 2035);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Prayer of Shadow Protection"     , GOSSIP_SENDER_MAIN, 2040);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Prayer of Spirit"                , GOSSIP_SENDER_MAIN, 2045);
                pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                            , GOSSIP_SENDER_MAIN, 5005);

                pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetObjectGuid());
                break;

        case 3000:
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Agamaggan's Agility"             , GOSSIP_SENDER_MAIN, 3001);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Agamaggan's Strength"            , GOSSIP_SENDER_MAIN, 3005);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Armor Magic"                     , GOSSIP_SENDER_MAIN, 3010);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Armor Penetration"               , GOSSIP_SENDER_MAIN, 3015);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Increased Stamina"               , GOSSIP_SENDER_MAIN, 3020);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Razorhide"                       , GOSSIP_SENDER_MAIN, 3025);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Rising Spirit"                   , GOSSIP_SENDER_MAIN, 3030);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Spirit of the Wind"              , GOSSIP_SENDER_MAIN, 3035);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Buff me Wisdom of Agamaggan"             , GOSSIP_SENDER_MAIN, 3040);
                pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                            , GOSSIP_SENDER_MAIN, 5005);

                pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetObjectGuid());
                break;

        case 4000:
                if(GoldSpellEnabled)
                pPlayer->ADD_GOSSIP_ITEM( 5, "Give me Gold"                            , GOSSIP_SENDER_MAIN, 4001);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Give me Soul Shards"                     , GOSSIP_SENDER_MAIN, 4005);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Heal me Please"                          , GOSSIP_SENDER_MAIN, 4010);
                pPlayer->ADD_GOSSIP_ITEM( 5, "Heal me and party members Please"        , GOSSIP_SENDER_MAIN, 4015);
                pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                            , GOSSIP_SENDER_MAIN, 5005);

                pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetObjectGuid());
                break;

        case 5005:
            if (pPlayer->GetTeam() == ALLIANCE)
            {
                if(SmallBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Small Buffs ->"              , GOSSIP_SENDER_MAIN, 1000);
                if(GreatBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Great Buffs ->"              , GOSSIP_SENDER_MAIN, 2000);
                if(GameMasterBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "GM Buffs ->"                 , GOSSIP_SENDER_MAIN, 3000);
                if(PlayerToolsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Player Tools ->"            , GOSSIP_SENDER_MAIN, 4000);

				pPlayer->ADD_GOSSIP_ITEM( 10, "Remove Resurrect Sickness" , GOSSIP_SENDER_MAIN, 5000);
            }
            else
            {
                if(SmallBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Small Buffs ->"              , GOSSIP_SENDER_MAIN, 1000);
                if(GreatBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Great Buffs ->"              , GOSSIP_SENDER_MAIN, 2000);
                if(GameMasterBuffsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "GM Buffs ->"                 , GOSSIP_SENDER_MAIN, 3000);
                if(PlayerToolsEnabled)
                    pPlayer->ADD_GOSSIP_ITEM( 7, "Player Tools ->"            , GOSSIP_SENDER_MAIN, 4000);

				pPlayer->ADD_GOSSIP_ITEM( 10, "Remove Resurrect Sickness" , GOSSIP_SENDER_MAIN, 5000);
            }

                pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetObjectGuid());
                break;

        case 1001: // Buff me Mark of the Wild
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48469,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1010: // Buff me Amplify Magic
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,43017,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1015: // Buff me Arcane Intellect
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,42995,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1020: // Buff me Dalaran Intellect
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,61024,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1025: // Buff me Dampen Magic
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,43015,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1030: // Buff me Blessing of Kings
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,20217,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1035: // Buff me Blessing of Might
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48932,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1040: // Buff me Blessing of Wisdom
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48936,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1045: // Buff me Divine Spirit
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48073,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1050: // Buff me Power Word: Fortitude
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48161,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 1055: // Buff me Shadow Protection
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48169,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        //////////////////////////////////////////////////Great Buff///////////////////////////////////////////////////////////////

        case 2001: // Buff me Gift of the Wild
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,48470,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2005: // Buff me Arcane Brilliance
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,43002,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2010: // Buff me Dalaran Brilliance
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,61316,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2015: // Buff me Greater Blessing of Kings
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,25898,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2020: // Buff me Greater Blessing of Might
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48934,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2025: // Buff me Greater Blessing of Sanctuary
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,25899,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2030: // Buff me Greater Blessing of Wisdom
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,48938,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2035: // Buff me Prayer of Fortitude
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,48162,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2040: // Buff me Prayer of Shadow Protection
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,48170,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 2045: // Buff me Prayer of Spirit
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,48074,true);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        //////////////////////////////////////////////////GM Buff///////////////////////////////////////////////////////////////

        case 3001: // Buff me Agamaggan's Agility
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,17013,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3005: // Buff me Agamaggan's Strength
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,16612,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3010: // Buff me Armor Magic
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,58453,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3015: // Buff me Armor Penetration
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,34106,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3020: // Buff me Increased Stamina
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,25661,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3025: // Buff me Razorhide
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,16610,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3030: // Buff me Rising Spirit
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,10767,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3035: // Buff me Spirit of the Wind
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,16618,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 3040: // Buff me Wisdom of Agamaggan
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,7764,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        //////////////////////////////////////////////////Player Tools///////////////////////////////////////////////////////////////

        case 4001://Give me Gold
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,46642,false); // 5000 gold
            break;

        case 4005://Give me Soul Shards
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,24827,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 4010: // Heal me please
            pPlayer->CLOSE_GOSSIP_MENU();
            pCreature->CastSpell(pPlayer,38588,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 4015: // Heal me and party members Please
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,53251,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 4020: // Conjure Refreshment
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,42956,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

        case 4025: // Conjure Mana Gem
            pPlayer->CLOSE_GOSSIP_MENU();
            pPlayer->CastSpell(pPlayer,42985,false);
            pPlayer->ModifyMoney(-(CUSTOMConfig.GetFloatDefault("BuffsMaster.BuffCost",0)));
            break;

		case 5000://Remove Res Sickness

			if(!pPlayer->HasAura(15007))
			{
				pCreature->MonsterWhisper("You don't have resurrection sickness.", pPlayer, false);
				pPlayer->CLOSE_GOSSIP_MENU();
				return;
			}

			pCreature->CastSpell(pPlayer,38588,false); // Healing effect
			pPlayer->RemoveAurasDueToSpell(15007);
			pPlayer->CLOSE_GOSSIP_MENU();
			break;

        pPlayer->CLOSE_GOSSIP_MENU();
    }
}