Welcome to AC Web.
Page 4 of 4 FirstFirst ... 234
Results 46 to 51 of 51
  1. #46

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by RagnarVK View Post
    sObjectMgr has no funticon GetNpcTrainerSpells.....
    any idea?
    Use "GetTrainer" instead of the old function "GetNPCTrainerSpells"

    https://github.com/TrinityCore/Trini...ectMgr.h#L1456
    Last edited by mindsear; 03-23-2019 at 03:05 PM.

  2. #47
    Quote Originally Posted by mindsear View Post
    Use "GetTrainer" instead of the old function "GetNPCTrainerSpells"

    https://github.com/TrinityCore/Trini...ectMgr.h#L1456
    thank u sir,u r my lucky star.
    GetTrainer seems return a trainer,not spells
    Last edited by RagnarVK; 03-24-2019 at 11:48 AM.

  3. #48
    Banned

    Join Date
    Apr 2019
    Location
    Haiti
    Posts
    20
    With Idol Lips Plumper, you can have sexier fuller lips which can offer more confidence and also power. After using this item, your lips will plump quickly in just a matter of seconds. You can delight in having well moisturized and also well-moisturized lips. This is an exceptional item to buy given that it makes use of the latest technology and very budget friendly without any painful side effects.

    idol lips ingredients

  4. #49
    can someone update this to last rev please

  5. #50
    Light of the Crusade

    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    1,215
    TC changed drastically, this doesnt work any longer. My own on_level scripts have been deprecated because of this

  6. #51


    Join Date
    Aug 2011
    Location
    Madison, IN
    Posts
    180
    Quote Originally Posted by Thiagoch View Post
    can someone update this to last rev please
    I use this on my family server.
    Code:
    #include "AccountMgr.h"
    #include "time.h"
    #include <stdio.h>
    #include "Bag.h"
    #include "Common.h"
    #include "Config.h"
    #include "DatabaseEnv.h"
    #include "Define.h"
    #include "Field.h"
    #include "GameEventMgr.h"
    #include "Item.h"
    #include "Language.h"
    #include "Log.h"
    #include "ObjectGuid.h"
    #include "ObjectMgr.h"
    #include "Player.h"
    #include "QueryResult.h"
    #include "ScriptMgr.h"
    #include "SharedDefines.h"
    #include "Transaction.h"
    #include "WorldSession.h"
    #include <sstream>
    #include <string>
    #include <stdlib.h>
    #include "ObjectGuid.h"
    #include "ObjectMgr.h"
    #include "SpellInfo.h"
    #include "SpellMgr.h"
    #include "Player.h"
    #include "World.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,
        AEGIS_OF_NELTHARION = 51512,
        ELUNES_BLESSING = 26393,
        DALARAN_INTELECT = 61024
    };
    
    
    class custom_CongratsOnLevel : public PlayerScript
    {
    public:
        custom_CongratsOnLevel() : PlayerScript("custom_CongratsOnLevel") { }
    
        void OnLevelChanged(Player* player, uint8 newLevel)
        {
            uint32 money /*item, item2, item3, item4, item5, spell, spell2, spell3*/;
            uint32 item = 0, item2 = 0, item3 = 0, item4 = 0, item5 = 0, spell = 0, spell2 = 0,
                spell3 = 0;
    
    
            if (sConfigMgr->GetBoolDefault("Congrats.Level", true)) {
                switch (++newLevel)
                {
                case 10:
                    //100G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 100;
                    item = 54811;
                    spell = 33389;
                    break;
                case 20:
                    //200G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 200;
                    item = 41508;
                    item2 = 44413;
                    spell = 33392;
                    break;
                case 30:
                    //300G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 300;
                    spell = 34092;
                    break;
                case 40:
                    //500G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 500;
                    break;
                case 50:
                    //1000G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 1000;
                    item3 = 32458;
                    spell = 34093;
                    break;
                case 60:
                    //2000G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 2000;
                    item = 44178;
                    item2 = 45706;
                    spell = 54198;
                    break;
                case 70:
                    //5000G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 5000;
                    item = 45706;
                    spell = 42459;
                    spell2 = 46917;
                    break;
                case 80:
                    //10000G
                    player->CastSpell(player, POWER_WORD_FORTITUDE, true);
                    player->CastSpell(player, KINGS_BUFF, true);
                    player->CastSpell(player, MARK_OF_THE_WILD, true);
                    player->CastSpell(player, PRAYER_OF_SPRITE, true);
                    player->CastSpell(player, ARCANE_BUFF, true);
                    player->CastSpell(player, SHADOW_BUFF, true);
                    player->CastSpell(player, AEGIS_OF_NELTHARION, true);
                    player->CastSpell(player, DALARAN_INTELECT, true);
                    player->CastSpell(player, ELUNES_BLESSING, true);
                    money = 10000;
                    item = 45706;
                    spell = 50483;
                    break;
                default:
                    return;
                }
    
                std::ostringstream ss;
                ss << "|cffFF0000[The Server]|r  congratulates" << player->GetName() << " for reaching Level " << (uint32)newLevel;
                sWorld->SendServerMessage(SERVER_MSG_STRING, ss.str().c_str());
    
                std::ostringstream ss2;
                //ss2 << "Du wurdest mit " << money << " gold und Items belohnt!";
                //ss2 << "Du wurdest mit " << money << " Gold belohnt!";
                //player->GetSession()->SendNotification(ss2.str().c_str());
                player->ModifyMoney(money*GOLD);
                player->AddItem(item, 1);
                player->AddItem(item2, 1);
                player->AddItem(item3, 1);
                player->AddItem(item4, 1);
                player->AddItem(item5, 1);
                player->LearnSpell(spell, true);
                player->LearnSpell(spell2, true);
                player->LearnSpell(spell3, true);
            }
        }
    
    
    };
    
    void AddSC_custom_CongratsOnLevel()
    {
        new custom_CongratsOnLevel();
    }
    Last edited by Bigfoot; 03-08-2020 at 04:43 PM. Reason: Sliped

  7. #52
    Light of the Crusade

    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    1,215

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Ive been trying to fix my learn spells on level for the past 4 days.

    Some help would be appreciated, or at least updating this one onto the latest TC, that way I could update mine by inferring the changes that have to be done.
    Last edited by Nerc; 03-16-2020 at 01:50 PM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •