Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. /*#####
  2. #The Fel and The Furious
  3. #####*/
  4. enum furiousdata
  5. {
  6. NPC_FEAL_REAVER = 21949,
  7. QUEST_FURIOUS = 10612,
  8. };
  9.  
  10. enum GossipData
  11. {
  12. GOSSIP_MENU_ID = 60002,
  13. GOSSIP_ITEM_ID = 0,
  14. GOSSIP_ACTION_ID = 1,
  15. GOSSIP_TEXT_ID = 68,
  16. };
  17.  
  18. Position const FealreaverPos = { -2743.846924f, 1979.125366f, 154.134048f, 3.223627f };
  19.  
  20. class go_fel_reaver_control_console : public GameObjectScript
  21. {
  22. public:
  23. go_fel_reaver_control_console() : GameObjectScript("go_fel_reaver_control_console") { }
  24.  
  25. bool OnGossipHello(Player* player, GameObject* go)
  26. {
  27. player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, player->GetOptionTextWithEntry(GOSSIP_MENU_ID, GOSSIP_ITEM_ID), GOSSIP_SENDER_MAIN, GOSSIP_ACTION_ID);
  28. player->SEND_GOSSIP_MENU(GOSSIP_TEXT_ID, go->GetGUID());
  29. return true;
  30. }
  31. bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action)
  32. {
  33. if (action != GOSSIP_ACTION_ID)
  34. return false;
  35.  
  36. uint32 constructEntry = 0;
  37.  
  38. if (player->GetQuestStatus(QUEST_FURIOUS) == QUEST_STATUS_INCOMPLETE)
  39. constructEntry = NPC_FEAL_REAVER;
  40.  
  41. if (constructEntry)
  42. {
  43. if (Creature* construct = player->SummonCreature(constructEntry, FealreaverPos))
  44. {
  45. construct->SetLevel(player->getLevel());
  46. player->EnterVehicle(construct);
  47. }
  48. return true;
  49. }
  50.  
  51. return true;
  52. }
  53. };
  54.  
  55. UPDATE `creature_template` SET `VehicleId`=257, `AIName`='SmartAI' WHERE `entry`=24806;
  56. DELETE FROM `gossip_menu_option` WHERe `menu_id`=60002;
  57. INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`) VALUES
  58. (60002, 0, 0, 'blablub', 1, 1, 0, 0, 0, 0, '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement