mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Core/Quests: Implemented player choice rewards
This commit is contained in:
@@ -2297,9 +2297,9 @@ void ScriptMgr::OnMovieComplete(Player* player, uint32 movieId)
|
||||
FOREACH_SCRIPT(PlayerScript)->OnMovieComplete(player, movieId);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerChoiceResponse(Player* player, uint32 choiceID, uint32 responseID)
|
||||
void ScriptMgr::OnPlayerChoiceResponse(Player* player, uint32 choiceId, uint32 responseId)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnPlayerChoiceResponse(player, choiceID, responseID);
|
||||
FOREACH_SCRIPT(PlayerScript)->OnPlayerChoiceResponse(player, choiceId, responseId);
|
||||
}
|
||||
|
||||
// Account
|
||||
|
||||
@@ -757,7 +757,7 @@ class TC_GAME_API PlayerScript : public UnitScript
|
||||
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*/) { }
|
||||
virtual void OnPlayerChoiceResponse(Player* /*player*/, uint32 /*choiceId*/, uint32 /*responseId*/) { }
|
||||
};
|
||||
|
||||
class TC_GAME_API AccountScript : public ScriptObject
|
||||
@@ -1146,7 +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);
|
||||
void OnPlayerChoiceResponse(Player* player, uint32 choiceId, uint32 responseId);
|
||||
|
||||
public: /* AccountScript */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user