mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Gossips for creature 20907
--HG-- branch : trunk
This commit is contained in:
1
sql/updates/667_world_scripts.sql
Normal file
1
sql/updates/667_world_scripts.sql
Normal file
@@ -0,0 +1 @@
|
||||
update creature_template set scriptname='npc_professor_dabiri' where entry=20907;
|
||||
@@ -670,11 +670,13 @@ bool AreaTrigger_at_commander_dawnforge(Player *player, AreaTriggerEntry *at)
|
||||
## npc_protectorate_nether_drake
|
||||
######*/
|
||||
|
||||
#define GOSSIP_ITEM "I'm ready to fly! Take me up, dragon!"
|
||||
|
||||
bool GossipHello_npc_protectorate_nether_drake(Player *player, Creature *_Creature)
|
||||
{
|
||||
//On Nethery Wings
|
||||
if (player->GetQuestStatus(10438) == QUEST_STATUS_INCOMPLETE && player->HasItemCount(29778,1) )
|
||||
player->ADD_GOSSIP_ITEM(0, "Fly me to Ultris", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
player->ADD_GOSSIP_ITEM(0, GOSSIP_ITEM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
player->SEND_GOSSIP_MENU(_Creature->GetNpcTextId(), _Creature->GetGUID());
|
||||
|
||||
@@ -697,6 +699,49 @@ bool GossipSelect_npc_protectorate_nether_drake(Player *player, Creature *_Creat
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_professor_dabiri
|
||||
######*/
|
||||
|
||||
#define SPELL_PHASE_DISTRUPTOR 35780
|
||||
#define GOSSIP_ITEM "I need a new phase distruptor, Professor"
|
||||
#define WHISPER_DABIRI "Saeed is currently engaged or awaiting orders to engage. You may check directly east of me and see if Saeed is ready for you. If he is not present then he is off fighting another battle. I recommend that you wait for him to return before attacking Dimensius."
|
||||
|
||||
#define QUEST_DIMENSIUS 10439
|
||||
#define QUEST_ON_NETHERY_WINGS 10438
|
||||
|
||||
bool GossipHello_npc_professor_dabiri(Player *player, Creature *_Creature)
|
||||
{
|
||||
if (_Creature->isQuestGiver())
|
||||
player->PrepareQuestMenu( _Creature->GetGUID() );
|
||||
|
||||
if(player->GetQuestStatus(QUEST_ON_NETHERY_WINGS) == QUEST_STATUS_INCOMPLETE && !player->HasItemCount(29778, 1))
|
||||
player->ADD_GOSSIP_ITEM(0, GOSSIP_ITEM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
player->SEND_GOSSIP_MENU(_Creature->GetNpcTextId(), _Creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_professor_dabiri(Player *player, Creature *_Creature, uint32 sender, uint32 action )
|
||||
{
|
||||
if (action == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
_Creature->CastSpell(player, SPELL_PHASE_DISTRUPTOR, false);
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QuestAccept_npc_professor_dabiri(Player *player, Creature *creature, Quest const *quest )
|
||||
{
|
||||
if(quest->GetQuestId() == QUEST_DIMENSIUS)
|
||||
creature->Whisper(WHISPER_DABIRI, player->GetGUID(), false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_veronia
|
||||
######*/
|
||||
@@ -870,6 +915,13 @@ void AddSC_netherstorm()
|
||||
newscript->pGossipSelect = &GossipSelect_npc_protectorate_nether_drake;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_professor_dabiri";
|
||||
newscript->pGossipHello = &GossipHello_npc_professor_dabiri;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_professor_dabiri;
|
||||
newscript->pQuestAccept = &QuestAccept_npc_professor_dabiri;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_veronia";
|
||||
newscript->pGossipHello = &GossipHello_npc_veronia;
|
||||
|
||||
Reference in New Issue
Block a user