Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Ingame DJ ;D
- A listához lehet hozzáadni, elvenni, teljesen nyílt azt csinálsz vele amit akarsz :P
- */
- bool GossipHello_npc_dj(Player* pPlayer, Creature* pCreature)
- {
- pPlayer->ADD_GOSSIP_ITEM(0, "Power of the Horde", GOSSIP_SENDER_MAIN, 100);
- pPlayer->ADD_GOSSIP_ITEM(0, "Brewfest 1", GOSSIP_SENDER_MAIN, 200);
- pPlayer->ADD_GOSSIP_ITEM(0, "Brewfest 2", GOSSIP_SENDER_MAIN, 300);
- pPlayer->ADD_GOSSIP_ITEM(0, "Drums", GOSSIP_SENDER_MAIN, 400);
- pPlayer->ADD_GOSSIP_ITEM(0, "Dramatic Music", GOSSIP_SENDER_MAIN, 500);
- pPlayer->SEND_GOSSIP_MENU(1, pCreature->GetGUID());
- return true;
- }
- bool GossipSelect_npc_dj(Player *pPlayer, Creature *pCreature, uint32 sender, uint32 action )
- {
- switch(action)
- {
- case 100:
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->PlayDirectSound(11803, 0);
- break;
- case 200:
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->PlayDirectSound(11810, 0);
- break;
- case 300:
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->PlayDirectSound(11811, 0);
- break;
- case 400:
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->PlayDirectSound(11704, 0);
- break;
- case 500:
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->PlayDirectSound(11650, 0);
- break;
- return true;
- }
- }
- void AddSC_npc_dj()
- {
- Script* newscript;
- newscript = new Script;
- newscript->Name = "npc_dj";
- newscript->pGossipHello = &GossipHello_npc_dj;
- newscript->pGossipSelect = &GossipSelect_npc_dj;
- newscript->RegisterSelf();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement