* Rename InstanceData to InstanceScript
* Rename *mgr to their new names in scripts project * Mass convert all the scripts (NEEDS THOROUGH TESTING, because it was done automatically) Please, report bugs on issue tracker. --HG-- branch : trunk rename : src/server/game/Instances/InstanceData.cpp => src/server/game/Instances/InstanceScript.cpp rename : src/server/game/Instances/InstanceData.h => src/server/game/Instances/InstanceScript.h
This commit is contained in:
@@ -45,91 +45,98 @@ EndContentData */
|
||||
|
||||
#define SPELL_AQUA_JET 13586
|
||||
#define SPELL_FROST_SHOCK 15089
|
||||
|
||||
struct mob_aquementasAI : public ScriptedAI
|
||||
␍class mob_aquementas : public CreatureScript
|
||||
{
|
||||
mob_aquementasAI(Creature *c) : ScriptedAI(c) {}
|
||||
public:
|
||||
mob_aquementas() : CreatureScript("mob_aquementas") { }
|
||||
|
||||
uint32 SendItem_Timer;
|
||||
uint32 SwitchFaction_Timer;
|
||||
bool isFriendly;
|
||||
|
||||
uint32 FrostShock_Timer;
|
||||
uint32 AquaJet_Timer;
|
||||
|
||||
void Reset()
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
{
|
||||
SendItem_Timer = 0;
|
||||
SwitchFaction_Timer = 10000;
|
||||
me->setFaction(35);
|
||||
isFriendly = true;
|
||||
|
||||
AquaJet_Timer = 5000;
|
||||
FrostShock_Timer = 1000;
|
||||
return new mob_aquementasAI (pCreature);
|
||||
}
|
||||
|
||||
void SendItem(Unit* receiver)
|
||||
struct mob_aquementasAI : public ScriptedAI
|
||||
{
|
||||
if (CAST_PLR(receiver)->HasItemCount(11169,1,false) &&
|
||||
CAST_PLR(receiver)->HasItemCount(11172,11,false) &&
|
||||
CAST_PLR(receiver)->HasItemCount(11173,1,false) &&
|
||||
!CAST_PLR(receiver)->HasItemCount(11522,1,true))
|
||||
mob_aquementasAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
uint32 SendItem_Timer;
|
||||
uint32 SwitchFaction_Timer;
|
||||
bool isFriendly;
|
||||
|
||||
uint32 FrostShock_Timer;
|
||||
uint32 AquaJet_Timer;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
uint8 msg = CAST_PLR(receiver)->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 11522, 1, false);
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
CAST_PLR(receiver)->StoreNewItem(dest, 11522, 1, true);
|
||||
SendItem_Timer = 0;
|
||||
SwitchFaction_Timer = 10000;
|
||||
me->setFaction(35);
|
||||
isFriendly = true;
|
||||
|
||||
AquaJet_Timer = 5000;
|
||||
FrostShock_Timer = 1000;
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(AGGRO_YELL_AQUE, me, who);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (isFriendly)
|
||||
void SendItem(Unit* receiver)
|
||||
{
|
||||
if (SwitchFaction_Timer <= diff)
|
||||
if (CAST_PLR(receiver)->HasItemCount(11169,1,false) &&
|
||||
CAST_PLR(receiver)->HasItemCount(11172,11,false) &&
|
||||
CAST_PLR(receiver)->HasItemCount(11173,1,false) &&
|
||||
!CAST_PLR(receiver)->HasItemCount(11522,1,true))
|
||||
{
|
||||
me->setFaction(91);
|
||||
isFriendly = false;
|
||||
} else SwitchFaction_Timer -= diff;
|
||||
ItemPosCountVec dest;
|
||||
uint8 msg = CAST_PLR(receiver)->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 11522, 1, false);
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
CAST_PLR(receiver)->StoreNewItem(dest, 11522, 1, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (!isFriendly)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
if (SendItem_Timer <= diff)
|
||||
DoScriptText(AGGRO_YELL_AQUE, me, who);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (isFriendly)
|
||||
{
|
||||
if (me->getVictim()->GetTypeId() == TYPEID_PLAYER)
|
||||
SendItem(me->getVictim());
|
||||
SendItem_Timer = 5000;
|
||||
} else SendItem_Timer -= diff;
|
||||
if (SwitchFaction_Timer <= diff)
|
||||
{
|
||||
me->setFaction(91);
|
||||
isFriendly = false;
|
||||
} else SwitchFaction_Timer -= diff;
|
||||
}
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (!isFriendly)
|
||||
{
|
||||
if (SendItem_Timer <= diff)
|
||||
{
|
||||
if (me->getVictim()->GetTypeId() == TYPEID_PLAYER)
|
||||
SendItem(me->getVictim());
|
||||
SendItem_Timer = 5000;
|
||||
} else SendItem_Timer -= diff;
|
||||
}
|
||||
|
||||
if (FrostShock_Timer <= diff)
|
||||
{
|
||||
DoCast(me->getVictim(), SPELL_FROST_SHOCK);
|
||||
FrostShock_Timer = 15000;
|
||||
} else FrostShock_Timer -= diff;
|
||||
|
||||
if (AquaJet_Timer <= diff)
|
||||
{
|
||||
DoCast(me, SPELL_AQUA_JET);
|
||||
AquaJet_Timer = 15000;
|
||||
} else AquaJet_Timer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
if (FrostShock_Timer <= diff)
|
||||
{
|
||||
DoCast(me->getVictim(), SPELL_FROST_SHOCK);
|
||||
FrostShock_Timer = 15000;
|
||||
} else FrostShock_Timer -= diff;
|
||||
|
||||
if (AquaJet_Timer <= diff)
|
||||
{
|
||||
DoCast(me, SPELL_AQUA_JET);
|
||||
AquaJet_Timer = 15000;
|
||||
} else AquaJet_Timer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
CreatureAI* GetAI_mob_aquementas(Creature* pCreature)
|
||||
{
|
||||
return new mob_aquementasAI (pCreature);
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_custodian_of_time
|
||||
@@ -149,139 +156,161 @@ CreatureAI* GetAI_mob_aquementas(Creature* pCreature)
|
||||
#define WHISPER_CUSTODIAN_12 -1000228
|
||||
#define WHISPER_CUSTODIAN_13 -1000229
|
||||
#define WHISPER_CUSTODIAN_14 -1000230
|
||||
|
||||
struct npc_custodian_of_timeAI : public npc_escortAI
|
||||
␍class npc_custodian_of_time : public CreatureScript
|
||||
{
|
||||
npc_custodian_of_timeAI(Creature *c) : npc_escortAI(c) {}
|
||||
public:
|
||||
npc_custodian_of_time() : CreatureScript("npc_custodian_of_time") { }
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
{
|
||||
Player *pPlayer = GetPlayerForEscort();
|
||||
if (!pPlayer)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
{
|
||||
case 0: DoScriptText(WHISPER_CUSTODIAN_1, me, pPlayer); break;
|
||||
case 1: DoScriptText(WHISPER_CUSTODIAN_2, me, pPlayer); break;
|
||||
case 2: DoScriptText(WHISPER_CUSTODIAN_3, me, pPlayer); break;
|
||||
case 3: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 5: DoScriptText(WHISPER_CUSTODIAN_5, me, pPlayer); break;
|
||||
case 6: DoScriptText(WHISPER_CUSTODIAN_6, me, pPlayer); break;
|
||||
case 7: DoScriptText(WHISPER_CUSTODIAN_7, me, pPlayer); break;
|
||||
case 8: DoScriptText(WHISPER_CUSTODIAN_8, me, pPlayer); break;
|
||||
case 9: DoScriptText(WHISPER_CUSTODIAN_9, me, pPlayer); break;
|
||||
case 10: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 13: DoScriptText(WHISPER_CUSTODIAN_10, me, pPlayer); break;
|
||||
case 14: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 16: DoScriptText(WHISPER_CUSTODIAN_11, me, pPlayer); break;
|
||||
case 17: DoScriptText(WHISPER_CUSTODIAN_12, me, pPlayer); break;
|
||||
case 18: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 22: DoScriptText(WHISPER_CUSTODIAN_13, me, pPlayer); break;
|
||||
case 23: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 24:
|
||||
DoScriptText(WHISPER_CUSTODIAN_14, me, pPlayer);
|
||||
DoCast(pPlayer, 34883);
|
||||
// below here is temporary workaround, to be removed when spell works properly
|
||||
pPlayer->AreaExploredOrEventHappens(10277);
|
||||
break;
|
||||
}
|
||||
return new npc_custodian_of_timeAI(pCreature);
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
struct npc_custodian_of_timeAI : public npc_escortAI
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
return;
|
||||
npc_custodian_of_timeAI(Creature *c) : npc_escortAI(c) {}
|
||||
|
||||
if (who->GetTypeId() == TYPEID_PLAYER)
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
if (who->HasAura(34877) && CAST_PLR(who)->GetQuestStatus(10277) == QUEST_STATUS_INCOMPLETE)
|
||||
Player *pPlayer = GetPlayerForEscort();
|
||||
if (!pPlayer)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
{
|
||||
float Radius = 10.0;
|
||||
if (me->IsWithinDistInMap(who, Radius))
|
||||
case 0: DoScriptText(WHISPER_CUSTODIAN_1, me, pPlayer); break;
|
||||
case 1: DoScriptText(WHISPER_CUSTODIAN_2, me, pPlayer); break;
|
||||
case 2: DoScriptText(WHISPER_CUSTODIAN_3, me, pPlayer); break;
|
||||
case 3: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 5: DoScriptText(WHISPER_CUSTODIAN_5, me, pPlayer); break;
|
||||
case 6: DoScriptText(WHISPER_CUSTODIAN_6, me, pPlayer); break;
|
||||
case 7: DoScriptText(WHISPER_CUSTODIAN_7, me, pPlayer); break;
|
||||
case 8: DoScriptText(WHISPER_CUSTODIAN_8, me, pPlayer); break;
|
||||
case 9: DoScriptText(WHISPER_CUSTODIAN_9, me, pPlayer); break;
|
||||
case 10: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 13: DoScriptText(WHISPER_CUSTODIAN_10, me, pPlayer); break;
|
||||
case 14: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 16: DoScriptText(WHISPER_CUSTODIAN_11, me, pPlayer); break;
|
||||
case 17: DoScriptText(WHISPER_CUSTODIAN_12, me, pPlayer); break;
|
||||
case 18: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 22: DoScriptText(WHISPER_CUSTODIAN_13, me, pPlayer); break;
|
||||
case 23: DoScriptText(WHISPER_CUSTODIAN_4, me, pPlayer); break;
|
||||
case 24:
|
||||
DoScriptText(WHISPER_CUSTODIAN_14, me, pPlayer);
|
||||
DoCast(pPlayer, 34883);
|
||||
// below here is temporary workaround, to be removed when spell works properly
|
||||
pPlayer->AreaExploredOrEventHappens(10277);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
return;
|
||||
|
||||
if (who->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (who->HasAura(34877) && CAST_PLR(who)->GetQuestStatus(10277) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
Start(false, false, who->GetGUID());
|
||||
float Radius = 10.0;
|
||||
if (me->IsWithinDistInMap(who, Radius))
|
||||
{
|
||||
Start(false, false, who->GetGUID());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void Reset() { }
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void Reset() { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
npc_escortAI::UpdateAI(diff);
|
||||
}
|
||||
};
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
npc_escortAI::UpdateAI(diff);
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_custodian_of_time(Creature* pCreature)
|
||||
{
|
||||
return new npc_custodian_of_timeAI(pCreature);
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_marin_noggenfogger
|
||||
######*/
|
||||
|
||||
bool GossipHello_npc_marin_noggenfogger(Player* pPlayer, Creature* pCreature)
|
||||
␍class npc_marin_noggenfogger : public CreatureScript
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
public:
|
||||
npc_marin_noggenfogger() : CreatureScript("npc_marin_noggenfogger") { }
|
||||
|
||||
if (pCreature->isVendor() && pPlayer->GetQuestRewardStatus(2662))
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
|
||||
bool GossipSelect_npc_marin_noggenfogger(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
if (pCreature->isVendor() && pPlayer->GetQuestRewardStatus(2662))
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_steward_of_time
|
||||
######*/
|
||||
|
||||
#define GOSSIP_ITEM_FLIGHT "Please take me to the master's lair."
|
||||
|
||||
bool GossipHello_npc_steward_of_time(Player* pPlayer, Creature* pCreature)
|
||||
␍class npc_steward_of_time : public CreatureScript
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
public:
|
||||
npc_steward_of_time() : CreatureScript("npc_steward_of_time") { }
|
||||
|
||||
if (pPlayer->GetQuestStatus(10279) == QUEST_STATUS_INCOMPLETE || pPlayer->GetQuestRewardStatus(10279))
|
||||
bool OnQuestAccept(Player* pPlayer, Creature* /*pCreature*/, Quest const *quest)
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_FLIGHT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(9978, pCreature->GetGUID());
|
||||
if (quest->GetQuestId() == 10279) //Quest: To The Master's Lair
|
||||
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
pPlayer->SEND_GOSSIP_MENU(9977, pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
|
||||
|
||||
bool QuestAccept_npc_steward_of_time(Player* pPlayer, Creature* /*pCreature*/, Quest const *quest)
|
||||
{
|
||||
if (quest->GetQuestId() == 10279) //Quest: To The Master's Lair
|
||||
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
|
||||
if (pPlayer->GetQuestStatus(10279) == QUEST_STATUS_INCOMPLETE || pPlayer->GetQuestRewardStatus(10279))
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_FLIGHT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(9978, pCreature->GetGUID());
|
||||
}
|
||||
else
|
||||
pPlayer->SEND_GOSSIP_MENU(9977, pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
bool GossipSelect_npc_steward_of_time(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
pPlayer->CastSpell(pPlayer,34891,true); //(Flight through Caverns)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_stone_watcher_of_norgannon
|
||||
@@ -293,51 +322,58 @@ bool GossipSelect_npc_steward_of_time(Player* pPlayer, Creature* /*pCreature*/,
|
||||
#define GOSSIP_ITEM_NORGANNON_4 "Excuse me? We've been \"reschedueled for visitations\"? What does that mean?!"
|
||||
#define GOSSIP_ITEM_NORGANNON_5 "So, what's inside Uldum?"
|
||||
#define GOSSIP_ITEM_NORGANNON_6 "I will return when i have the Plates of Uldum."
|
||||
|
||||
bool GossipHello_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature)
|
||||
␍class npc_stone_watcher_of_norgannon : public CreatureScript
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
public:
|
||||
npc_stone_watcher_of_norgannon() : CreatureScript("npc_stone_watcher_of_norgannon") { }
|
||||
|
||||
if (pPlayer->GetQuestStatus(2954) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(1674, pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
pPlayer->SEND_GOSSIP_MENU(1675, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_3, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
||||
pPlayer->SEND_GOSSIP_MENU(1676, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3);
|
||||
pPlayer->SEND_GOSSIP_MENU(1677, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+3:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_5, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4);
|
||||
pPlayer->SEND_GOSSIP_MENU(1678, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+4:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_6, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+5);
|
||||
pPlayer->SEND_GOSSIP_MENU(1679, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+5:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pPlayer->AreaExploredOrEventHappens(2954);
|
||||
break;
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
pPlayer->SEND_GOSSIP_MENU(1675, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_3, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
||||
pPlayer->SEND_GOSSIP_MENU(1676, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3);
|
||||
pPlayer->SEND_GOSSIP_MENU(1677, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+3:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_5, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4);
|
||||
pPlayer->SEND_GOSSIP_MENU(1678, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+4:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_6, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+5);
|
||||
pPlayer->SEND_GOSSIP_MENU(1679, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+5:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pPlayer->AreaExploredOrEventHappens(2954);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
|
||||
if (pPlayer->GetQuestStatus(2954) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(1674, pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*######
|
||||
## npc_OOX17
|
||||
@@ -358,78 +394,86 @@ enum e00X17
|
||||
SPAWN_SECOND_1 = 5617,
|
||||
SPAWN_SECOND_2 = 7805
|
||||
};
|
||||
|
||||
struct npc_OOX17AI : public npc_escortAI
|
||||
␍class npc_OOX17 : public CreatureScript
|
||||
{
|
||||
npc_OOX17AI(Creature *c) : npc_escortAI(c) {}
|
||||
public:
|
||||
npc_OOX17() : CreatureScript("npc_OOX17") { }
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
bool OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const* quest)
|
||||
{
|
||||
Player* pPlayer = GetPlayerForEscort();
|
||||
if (quest->GetQuestId() == Q_OOX17)
|
||||
{
|
||||
pCreature->setFaction(113);
|
||||
pCreature->SetHealth(pCreature->GetMaxHealth());
|
||||
pCreature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
|
||||
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
DoScriptText(SAY_OOX_START, pCreature);
|
||||
|
||||
if (!pPlayer)
|
||||
return;
|
||||
|
||||
switch(i) {
|
||||
case 23:
|
||||
me->SummonCreature(SPAWN_FIRST, -8350.96, -4445.79, 10.10, 6.20, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_FIRST, -8355.96, -4447.79, 10.10, 6.27, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_FIRST, -8353.96, -4442.79, 10.10, 6.08, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
DoScriptText(SAY_OOX_AMBUSH, me);
|
||||
break;
|
||||
|
||||
case 56:
|
||||
me->SummonCreature(SPAWN_SECOND_1, -7510.07, -4795.50, 9.35, 6.06, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_SECOND_2, -7515.07, -4797.50, 9.35, 6.22, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_SECOND_2, -7518.07, -4792.50, 9.35, 6.22, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
DoScriptText(SAY_OOX_AMBUSH, me);
|
||||
if (Unit* scoff = me->FindNearestCreature(SPAWN_SECOND_2, 30))
|
||||
DoScriptText(SAY_OOX17_AMBUSH_REPLY, scoff);
|
||||
break;
|
||||
|
||||
case 86:
|
||||
if (pPlayer)
|
||||
{
|
||||
DoScriptText(SAY_OOX_END, me);
|
||||
pPlayer->GroupEventHappens(Q_OOX17, me);
|
||||
}
|
||||
break;
|
||||
if (npc_escortAI* pEscortAI = CAST_AI(npc_OOX17::npc_OOX17AI, pCreature->AI()))
|
||||
pEscortAI->Start(true, false, pPlayer->GetGUID());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void Reset(){}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
{
|
||||
DoScriptText(RAND(SAY_OOX_AGGRO1,SAY_OOX_AGGRO2), me);
|
||||
return new npc_OOX17AI(pCreature);
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
struct npc_OOX17AI : public npc_escortAI
|
||||
{
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
npc_OOX17AI(Creature *c) : npc_escortAI(c) {}
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
Player* pPlayer = GetPlayerForEscort();
|
||||
|
||||
if (!pPlayer)
|
||||
return;
|
||||
|
||||
switch(i) {
|
||||
case 23:
|
||||
me->SummonCreature(SPAWN_FIRST, -8350.96, -4445.79, 10.10, 6.20, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_FIRST, -8355.96, -4447.79, 10.10, 6.27, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_FIRST, -8353.96, -4442.79, 10.10, 6.08, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
DoScriptText(SAY_OOX_AMBUSH, me);
|
||||
break;
|
||||
|
||||
case 56:
|
||||
me->SummonCreature(SPAWN_SECOND_1, -7510.07, -4795.50, 9.35, 6.06, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_SECOND_2, -7515.07, -4797.50, 9.35, 6.22, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
me->SummonCreature(SPAWN_SECOND_2, -7518.07, -4792.50, 9.35, 6.22, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
|
||||
DoScriptText(SAY_OOX_AMBUSH, me);
|
||||
if (Unit* scoff = me->FindNearestCreature(SPAWN_SECOND_2, 30))
|
||||
DoScriptText(SAY_OOX17_AMBUSH_REPLY, scoff);
|
||||
break;
|
||||
|
||||
case 86:
|
||||
if (pPlayer)
|
||||
{
|
||||
DoScriptText(SAY_OOX_END, me);
|
||||
pPlayer->GroupEventHappens(Q_OOX17, me);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Reset(){}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_OOX_AGGRO1,SAY_OOX_AGGRO2), me);
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
bool QuestAccept_npc_OOX17(Player* pPlayer, Creature* pCreature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId() == Q_OOX17)
|
||||
{
|
||||
pCreature->setFaction(113);
|
||||
pCreature->SetHealth(pCreature->GetMaxHealth());
|
||||
pCreature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
|
||||
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
DoScriptText(SAY_OOX_START, pCreature);
|
||||
|
||||
if (npc_escortAI* pEscortAI = CAST_AI(npc_OOX17AI, pCreature->AI()))
|
||||
pEscortAI->Start(true, false, pPlayer->GetGUID());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI* GetAI_npc_OOX17(Creature* pCreature)
|
||||
{
|
||||
return new npc_OOX17AI(pCreature);
|
||||
}
|
||||
|
||||
/*####
|
||||
# npc_tooga
|
||||
@@ -454,184 +498,156 @@ enum eTooga
|
||||
};
|
||||
|
||||
const float m_afToWaterLoc[] = {-7032.664551, -4906.199219, -1.606446};
|
||||
|
||||
struct npc_toogaAI : public FollowerAI
|
||||
␍class npc_tooga : public CreatureScript
|
||||
{
|
||||
npc_toogaAI(Creature* pCreature) : FollowerAI(pCreature) { }
|
||||
public:
|
||||
npc_tooga() : CreatureScript("npc_tooga") { }
|
||||
|
||||
uint32 m_uiCheckSpeechTimer;
|
||||
uint32 m_uiPostEventTimer;
|
||||
uint32 m_uiPhasePostEvent;
|
||||
|
||||
uint64 TortaGUID;
|
||||
|
||||
void Reset()
|
||||
bool OnQuestAccept(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
|
||||
{
|
||||
m_uiCheckSpeechTimer = 2500;
|
||||
m_uiPostEventTimer = 1000;
|
||||
m_uiPhasePostEvent = 0;
|
||||
|
||||
TortaGUID = 0;
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *pWho)
|
||||
{
|
||||
FollowerAI::MoveInLineOfSight(pWho);
|
||||
|
||||
if (!me->getVictim() && !HasFollowState(STATE_FOLLOW_COMPLETE | STATE_FOLLOW_POSTEVENT) && pWho->GetEntry() == NPC_TORTA)
|
||||
if (pQuest->GetQuestId() == QUEST_TOOGA)
|
||||
{
|
||||
if (me->IsWithinDistInMap(pWho, INTERACTION_DISTANCE))
|
||||
{
|
||||
if (Player* pPlayer = GetLeaderForFollower())
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(QUEST_TOOGA) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->GroupEventHappens(QUEST_TOOGA, me);
|
||||
}
|
||||
|
||||
TortaGUID = pWho->GetGUID();
|
||||
SetFollowComplete(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MovementInform(uint32 uiMotionType, uint32 uiPointId)
|
||||
{
|
||||
FollowerAI::MovementInform(uiMotionType, uiPointId);
|
||||
|
||||
if (uiMotionType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
if (uiPointId == POINT_ID_TO_WATER)
|
||||
SetFollowComplete();
|
||||
}
|
||||
|
||||
void UpdateFollowerAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
{
|
||||
//we are doing the post-event, or...
|
||||
if (HasFollowState(STATE_FOLLOW_POSTEVENT))
|
||||
{
|
||||
if (m_uiPostEventTimer <= uiDiff)
|
||||
{
|
||||
m_uiPostEventTimer = 5000;
|
||||
|
||||
Unit *pTorta = Unit::GetUnit(*me, TortaGUID);
|
||||
if (!pTorta || !pTorta->isAlive())
|
||||
{
|
||||
//something happened, so just complete
|
||||
SetFollowComplete();
|
||||
return;
|
||||
}
|
||||
|
||||
switch(m_uiPhasePostEvent)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_TOOG_POST_1, me);
|
||||
break;
|
||||
case 2:
|
||||
DoScriptText(SAY_TORT_POST_2, pTorta);
|
||||
break;
|
||||
case 3:
|
||||
DoScriptText(SAY_TOOG_POST_3, me);
|
||||
break;
|
||||
case 4:
|
||||
DoScriptText(SAY_TORT_POST_4, pTorta);
|
||||
break;
|
||||
case 5:
|
||||
DoScriptText(SAY_TOOG_POST_5, me);
|
||||
break;
|
||||
case 6:
|
||||
DoScriptText(SAY_TORT_POST_6, pTorta);
|
||||
me->GetMotionMaster()->MovePoint(POINT_ID_TO_WATER, m_afToWaterLoc[0], m_afToWaterLoc[1], m_afToWaterLoc[2]);
|
||||
break;
|
||||
}
|
||||
|
||||
++m_uiPhasePostEvent;
|
||||
}
|
||||
else
|
||||
m_uiPostEventTimer -= uiDiff;
|
||||
}
|
||||
//...we are doing regular speech check
|
||||
else if (HasFollowState(STATE_FOLLOW_INPROGRESS))
|
||||
{
|
||||
if (m_uiCheckSpeechTimer <= uiDiff)
|
||||
{
|
||||
m_uiCheckSpeechTimer = 5000;
|
||||
|
||||
if (urand(0,9) > 8)
|
||||
DoScriptText(RAND(SAY_TOOG_THIRST,SAY_TOOG_WORRIED), me);
|
||||
}
|
||||
else
|
||||
m_uiCheckSpeechTimer -= uiDiff;
|
||||
}
|
||||
|
||||
return;
|
||||
if (npc_toogaAI* pToogaAI = CAST_AI(npc_tooga::npc_toogaAI, pCreature->AI()))
|
||||
pToogaAI->StartFollow(pPlayer, FACTION_TOOG_ESCORTEE, pQuest);
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
{
|
||||
return new npc_toogaAI(pCreature);
|
||||
}
|
||||
|
||||
struct npc_toogaAI : public FollowerAI
|
||||
{
|
||||
npc_toogaAI(Creature* pCreature) : FollowerAI(pCreature) { }
|
||||
|
||||
uint32 m_uiCheckSpeechTimer;
|
||||
uint32 m_uiPostEventTimer;
|
||||
uint32 m_uiPhasePostEvent;
|
||||
|
||||
uint64 TortaGUID;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
m_uiCheckSpeechTimer = 2500;
|
||||
m_uiPostEventTimer = 1000;
|
||||
m_uiPhasePostEvent = 0;
|
||||
|
||||
TortaGUID = 0;
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit *pWho)
|
||||
{
|
||||
FollowerAI::MoveInLineOfSight(pWho);
|
||||
|
||||
if (!me->getVictim() && !HasFollowState(STATE_FOLLOW_COMPLETE | STATE_FOLLOW_POSTEVENT) && pWho->GetEntry() == NPC_TORTA)
|
||||
{
|
||||
if (me->IsWithinDistInMap(pWho, INTERACTION_DISTANCE))
|
||||
{
|
||||
if (Player* pPlayer = GetLeaderForFollower())
|
||||
{
|
||||
if (pPlayer->GetQuestStatus(QUEST_TOOGA) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->GroupEventHappens(QUEST_TOOGA, me);
|
||||
}
|
||||
|
||||
TortaGUID = pWho->GetGUID();
|
||||
SetFollowComplete(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MovementInform(uint32 uiMotionType, uint32 uiPointId)
|
||||
{
|
||||
FollowerAI::MovementInform(uiMotionType, uiPointId);
|
||||
|
||||
if (uiMotionType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
if (uiPointId == POINT_ID_TO_WATER)
|
||||
SetFollowComplete();
|
||||
}
|
||||
|
||||
void UpdateFollowerAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
{
|
||||
//we are doing the post-event, or...
|
||||
if (HasFollowState(STATE_FOLLOW_POSTEVENT))
|
||||
{
|
||||
if (m_uiPostEventTimer <= uiDiff)
|
||||
{
|
||||
m_uiPostEventTimer = 5000;
|
||||
|
||||
Unit *pTorta = Unit::GetUnit(*me, TortaGUID);
|
||||
if (!pTorta || !pTorta->isAlive())
|
||||
{
|
||||
//something happened, so just complete
|
||||
SetFollowComplete();
|
||||
return;
|
||||
}
|
||||
|
||||
switch(m_uiPhasePostEvent)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_TOOG_POST_1, me);
|
||||
break;
|
||||
case 2:
|
||||
DoScriptText(SAY_TORT_POST_2, pTorta);
|
||||
break;
|
||||
case 3:
|
||||
DoScriptText(SAY_TOOG_POST_3, me);
|
||||
break;
|
||||
case 4:
|
||||
DoScriptText(SAY_TORT_POST_4, pTorta);
|
||||
break;
|
||||
case 5:
|
||||
DoScriptText(SAY_TOOG_POST_5, me);
|
||||
break;
|
||||
case 6:
|
||||
DoScriptText(SAY_TORT_POST_6, pTorta);
|
||||
me->GetMotionMaster()->MovePoint(POINT_ID_TO_WATER, m_afToWaterLoc[0], m_afToWaterLoc[1], m_afToWaterLoc[2]);
|
||||
break;
|
||||
}
|
||||
|
||||
++m_uiPhasePostEvent;
|
||||
}
|
||||
else
|
||||
m_uiPostEventTimer -= uiDiff;
|
||||
}
|
||||
//...we are doing regular speech check
|
||||
else if (HasFollowState(STATE_FOLLOW_INPROGRESS))
|
||||
{
|
||||
if (m_uiCheckSpeechTimer <= uiDiff)
|
||||
{
|
||||
m_uiCheckSpeechTimer = 5000;
|
||||
|
||||
if (urand(0,9) > 8)
|
||||
DoScriptText(RAND(SAY_TOOG_THIRST,SAY_TOOG_WORRIED), me);
|
||||
}
|
||||
else
|
||||
m_uiCheckSpeechTimer -= uiDiff;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_tooga(Creature* pCreature)
|
||||
{
|
||||
return new npc_toogaAI(pCreature);
|
||||
}
|
||||
|
||||
bool QuestAccept_npc_tooga(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
|
||||
{
|
||||
if (pQuest->GetQuestId() == QUEST_TOOGA)
|
||||
{
|
||||
if (npc_toogaAI* pToogaAI = CAST_AI(npc_toogaAI, pCreature->AI()))
|
||||
pToogaAI->StartFollow(pPlayer, FACTION_TOOG_ESCORTEE, pQuest);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void AddSC_tanaris()
|
||||
{
|
||||
Script *newscript;
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_aquementas";
|
||||
newscript->GetAI = &GetAI_mob_aquementas;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_custodian_of_time";
|
||||
newscript->GetAI = &GetAI_npc_custodian_of_time;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_marin_noggenfogger";
|
||||
newscript->pGossipHello = &GossipHello_npc_marin_noggenfogger;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_marin_noggenfogger;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_steward_of_time";
|
||||
newscript->pGossipHello = &GossipHello_npc_steward_of_time;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_steward_of_time;
|
||||
newscript->pQuestAccept = &QuestAccept_npc_steward_of_time;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_stone_watcher_of_norgannon";
|
||||
newscript->pGossipHello = &GossipHello_npc_stone_watcher_of_norgannon;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_stone_watcher_of_norgannon;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_OOX17";
|
||||
newscript->GetAI = &GetAI_npc_OOX17;
|
||||
newscript->pQuestAccept = &QuestAccept_npc_OOX17;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_tooga";
|
||||
newscript->GetAI = &GetAI_npc_tooga;
|
||||
newscript->pQuestAccept = &QuestAccept_npc_tooga;
|
||||
newscript->RegisterSelf();
|
||||
new mob_aquementas();
|
||||
new npc_custodian_of_time();
|
||||
new npc_marin_noggenfogger();
|
||||
new npc_steward_of_time();
|
||||
new npc_stone_watcher_of_norgannon();
|
||||
new npc_OOX17();
|
||||
new npc_tooga();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user