* Added support for GO 191229 and 191230 (also related to quest 12790) - SD2 964 By nofantasy.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-18 21:34:10 -05:00
parent de43919a65
commit 6e27a4c455
3 changed files with 37 additions and 2 deletions
@@ -233,6 +233,37 @@ bool GOHello_go_sacred_fire_of_life(Player* pPlayer, GameObject* pGO)
return true;
}
/*######
## go_tele_to_dalaran_crystal
######*/
enum
{
QUEST_LEARN_LEAVE_RETURN = 12790,
QUEST_TELE_CRYSTAL_FLAG = 12845
};
bool GOHello_go_tele_to_dalaran_crystal(Player* pPlayer, GameObject* pGo)
{
if (pPlayer->GetQuestRewardStatus(QUEST_TELE_CRYSTAL_FLAG))
return false;
//TODO: must send error message (what kind of message? On-screen?)
return true;
}
/*######
## go_tele_to_violet_stand
######*/
bool GOHello_go_tele_to_violet_stand(Player* pPlayer, GameObject* pGo)
{
if (pPlayer->GetQuestRewardStatus(QUEST_LEARN_LEAVE_RETURN) || pPlayer->GetQuestStatus(QUEST_LEARN_LEAVE_RETURN) == QUEST_STATUS_INCOMPLETE)
return false;
return true;
}
void AddSC_go_scripts()
{
Script *newscript;