Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- #define QuestID_Ally 24556
- #define QuestID_Horde 20438
- #define QuestItem 49648
- class gossip_shandy_glossgleam : public CreatureScript
- {
- public: gossip_shandy_glossgleam() : CreatureScript("gossip_shandy_glossgleam") { }
- bool OnGossipHello( Player* Plr, Creature* pCreature )
- {
- Plr->ADD_GOSSIP_ITEM( 0, "Ich brauche den Geliehenen Wappenrock!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF +1 );
- Plr->SEND_GOSSIP_MENU( DEFAULT_GOSSIP_MESSAGE, pCreature->GetGUID() );
- return true;
- }
- void SendDefaultMenu_ACTION( Player* Plr, Creature* pCreature, uint32 uiAction )
- {
- switch( uiAction )
- {
- // Hauptmenü
- case GOSSIP_ACTION_INFO_DEF +1:
- if (Plr->hasQuest(QuestID_Ally) || Plr->hasQuest(QuestID_Horde))
- {
- Plr->AddItem(QuestItem, 1);
- }
- else
- {
- NACHRICHT
- }
- Plr->SEND_GOSSIP_MENU( DEFAULT_GOSSIP_MESSAGE, pCreature->GetGUID() );
- break;
- }
- }
- bool OnGossipSelect( Player* Plr, Creature* pCreature, uint32 uiSender, uint32 uiAction )
- {
- Plr->PlayerTalkClass->ClearMenus();
- if( uiSender == GOSSIP_SENDER_MAIN )
- {
- SendDefaultMenu_ACTION( Plr, pCreature, uiAction );
- }
- return true;
- }
- };
- void AddSC_gossip_shandy_glossgleam()
- {
- new gossip_shandy_glossgleam();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement