Advertisement
Guest User

dadd

a guest
Jul 27th, 2010
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.46 KB | None | 0 0
  1. /*Ingame DJ ;D
  2. A listához lehet hozzáadni, elvenni, teljesen nyílt azt csinálsz vele amit akarsz :P
  3. */
  4.  
  5. bool GossipHello_npc_dj(Player* pPlayer, Creature* pCreature)
  6. {
  7.     pPlayer->ADD_GOSSIP_ITEM(0, "Power of the Horde", GOSSIP_SENDER_MAIN, 100);
  8.     pPlayer->ADD_GOSSIP_ITEM(0, "Brewfest 1", GOSSIP_SENDER_MAIN, 200);
  9.     pPlayer->ADD_GOSSIP_ITEM(0, "Brewfest 2", GOSSIP_SENDER_MAIN, 300);
  10.     pPlayer->ADD_GOSSIP_ITEM(0, "Drums", GOSSIP_SENDER_MAIN, 400);
  11.     pPlayer->ADD_GOSSIP_ITEM(0, "Dramatic Music", GOSSIP_SENDER_MAIN, 500);
  12.     pPlayer->SEND_GOSSIP_MENU(1, pCreature->GetGUID());
  13.     return true;
  14. }
  15.  
  16. bool GossipSelect_npc_dj(Player *pPlayer, Creature *pCreature, uint32 sender, uint32 action )
  17.  
  18. {
  19.  
  20.     switch(action)
  21.  
  22.     {
  23.     case 100:
  24.         pPlayer->CLOSE_GOSSIP_MENU();
  25.         pPlayer->PlayDirectSound(11803, 0);
  26.         break;
  27.  
  28.     case 200:
  29.         pPlayer->CLOSE_GOSSIP_MENU();
  30.         pPlayer->PlayDirectSound(11810, 0);
  31.         break;
  32.  
  33.     case 300:
  34.         pPlayer->CLOSE_GOSSIP_MENU();
  35.         pPlayer->PlayDirectSound(11811, 0);
  36.         break;
  37.  
  38.     case 400:
  39.         pPlayer->CLOSE_GOSSIP_MENU();
  40.         pPlayer->PlayDirectSound(11704, 0);
  41.         break;
  42.  
  43.     case 500:
  44.         pPlayer->CLOSE_GOSSIP_MENU();
  45.         pPlayer->PlayDirectSound(11650, 0);
  46.         break;
  47.  
  48.         return true;
  49.     }
  50. }
  51.  
  52. void AddSC_npc_dj()
  53. {
  54.     Script* newscript;
  55.  
  56.     newscript = new Script;
  57.     newscript->Name = "npc_dj";
  58.     newscript->pGossipHello = &GossipHello_npc_dj;
  59.     newscript->pGossipSelect = &GossipSelect_npc_dj;
  60.     newscript->RegisterSelf();
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement