Core/Quests: Implemented player choices

* Implemented SPELL_EFFECT_LAUNCH_QUEST_CHOICE
* Script hook for player choices
This commit is contained in:
Traesh
2017-12-17 14:40:04 +01:00
committed by Shauren
parent 5dd686c080
commit 89c91c271b
18 changed files with 573 additions and 24 deletions

View File

@@ -755,6 +755,9 @@ class TC_GAME_API PlayerScript : public UnitScript
// Called when a player completes a movie
virtual void OnMovieComplete(Player* /*player*/, uint32 /*movieId*/) { }
// Called when a player choose a response from a PlayerChoice
virtual void OnPlayerChoiceResponse(Player* /*player*/, uint32 /*choiceID*/, uint32 /*responseID*/) { }
};
class TC_GAME_API AccountScript : public ScriptObject
@@ -1143,6 +1146,7 @@ class TC_GAME_API ScriptMgr
void OnPlayerUpdateZone(Player* player, uint32 newZone, uint32 newArea);
void OnQuestStatusChange(Player* player, uint32 questId);
void OnMovieComplete(Player* player, uint32 movieId);
void OnPlayerChoiceResponse(Player* player, uint32 choiceID, uint32 responseID);
public: /* AccountScript */