Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*#####
- #The Fel and The Furious
- #####*/
- enum furiousdata
- {
- NPC_FEAL_REAVER = 21949,
- QUEST_FURIOUS = 10612,
- };
- enum GossipData
- {
- GOSSIP_MENU_ID = 60002,
- GOSSIP_ITEM_ID = 0,
- GOSSIP_ACTION_ID = 1,
- GOSSIP_TEXT_ID = 68,
- };
- Position const FealreaverPos = { -2743.846924f, 1979.125366f, 154.134048f, 3.223627f };
- class go_fel_reaver_control_console : public GameObjectScript
- {
- public:
- go_fel_reaver_control_console() : GameObjectScript("go_fel_reaver_control_console") { }
- bool OnGossipHello(Player* player, GameObject* go)
- {
- player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, player->GetOptionTextWithEntry(GOSSIP_MENU_ID, GOSSIP_ITEM_ID), GOSSIP_SENDER_MAIN, GOSSIP_ACTION_ID);
- player->SEND_GOSSIP_MENU(GOSSIP_TEXT_ID, go->GetGUID());
- return true;
- }
- bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action)
- {
- if (action != GOSSIP_ACTION_ID)
- return false;
- uint32 constructEntry = 0;
- if (player->GetQuestStatus(QUEST_FURIOUS) == QUEST_STATUS_INCOMPLETE)
- constructEntry = NPC_FEAL_REAVER;
- if (constructEntry)
- {
- if (Creature* construct = player->SummonCreature(constructEntry, FealreaverPos))
- {
- construct->SetLevel(player->getLevel());
- player->EnterVehicle(construct);
- }
- return true;
- }
- return true;
- }
- };
- UPDATE `creature_template` SET `VehicleId`=257, `AIName`='SmartAI' WHERE `entry`=24806;
- DELETE FROM `gossip_menu_option` WHERe `menu_id`=60002;
- 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
- (60002, 0, 0, 'blablub', 1, 1, 0, 0, 0, 0, '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement