mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 23:38:54 -04:00
Implemented error message for go_tele_to_dalaran_crystal. By Malcrom.
--HG-- branch : trunk
This commit is contained in:
@@ -385,12 +385,17 @@ enum eDalaranCrystal
|
||||
QUEST_TELE_CRYSTAL_FLAG = 12845
|
||||
};
|
||||
|
||||
#define GO_TELE_TO_DALARAN_CRYSTAL_FAILED "This teleport crystal cannot be used until the teleport crystal in Dalaran has been used at least once."
|
||||
|
||||
bool GOHello_go_tele_to_dalaran_crystal(Player *pPlayer, GameObject *pGO)
|
||||
{
|
||||
if (pPlayer->GetQuestRewardStatus(QUEST_TELE_CRYSTAL_FLAG))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
pPlayer->GetSession()->SendNotification(GO_TELE_TO_DALARAN_CRYSTAL_FAILED);
|
||||
|
||||
//TODO: must send error message (what kind of message? On-screen?)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user