Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptMgr.h"
- #include "ScriptedCreature.h"
- #include "ObjectMgr.h"
- #include "Player.h"
- #include "QuestDef.h"
- #include "ScriptedGossip.h"
- #include "Quest_rettung.h"
- class QuestRettungGrabel : public CreatureScript
- {
- public:
- QuestRettungGrabel() : CreatureScript("QuestRettungGrabel") { }
- bool OnGossipHello(Player* player, Creature* creature) override
- {
- if (player->GetQuestStatus(60001) == QUEST_STATUS_INCOMPLETE)
- {
- player->ADD_GOSSIP_ITEM(4, "Save Grabel.", GOSSIP_SENDER_MAIN, 1);
- }
- player->SEND_GOSSIP_MENU(1, creature->GetGUID());
- return true;
- }
- bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 actions) override
- {
- if (actions == GOSSIP_ACTION_INFO_DEF + 1)
- {
- EventStartetOnPlayer = true;
- player->CLOSE_GOSSIP_MENU();
- }
- return true;
- }
- };
- void AddSC_QuestRettungGrabel()
- {
- new QuestRettungGrabel();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement