refactor(Scripts/Events): convert childrens_week to new system (#9611)
This commit is contained in:
@@ -143,14 +143,9 @@ ObjectGuid getOrphanGUID(Player* player, uint32 orphan)
|
||||
/*######
|
||||
## npc_winterfin_playmate
|
||||
######*/
|
||||
class npc_winterfin_playmate : public CreatureScript
|
||||
struct npc_winterfin_playmate : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_winterfin_playmate() : CreatureScript("npc_winterfin_playmate") {}
|
||||
|
||||
struct npc_winterfin_playmateAI : public ScriptedAI
|
||||
{
|
||||
npc_winterfin_playmateAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_winterfin_playmate(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -231,23 +226,12 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_winterfin_playmateAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_snowfall_glade_playmate
|
||||
######*/
|
||||
class npc_snowfall_glade_playmate : public CreatureScript
|
||||
struct npc_snowfall_glade_playmate : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_snowfall_glade_playmate() : CreatureScript("npc_snowfall_glade_playmate") {}
|
||||
|
||||
struct npc_snowfall_glade_playmateAI : public ScriptedAI
|
||||
{
|
||||
npc_snowfall_glade_playmateAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_snowfall_glade_playmate(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -328,23 +312,12 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const override
|
||||
{
|
||||
return new npc_snowfall_glade_playmateAI(pCreature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_the_biggest_tree
|
||||
######*/
|
||||
class npc_the_biggest_tree : public CreatureScript
|
||||
struct npc_the_biggest_tree : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_the_biggest_tree() : CreatureScript("npc_the_biggest_tree") {}
|
||||
|
||||
struct npc_the_biggest_treeAI : public ScriptedAI
|
||||
{
|
||||
npc_the_biggest_treeAI(Creature* creature) : ScriptedAI(creature)
|
||||
npc_the_biggest_tree(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
me->SetDisplayId(DISPLAY_INVISIBLE);
|
||||
}
|
||||
@@ -416,23 +389,12 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_the_biggest_treeAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_high_oracle_soo_roo
|
||||
######*/
|
||||
class npc_high_oracle_soo_roo : public CreatureScript
|
||||
struct npc_high_oracle_soo_roo : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_high_oracle_soo_roo() : CreatureScript("npc_high_oracle_soo_roo") {}
|
||||
|
||||
struct npc_high_oracle_soo_rooAI : public ScriptedAI
|
||||
{
|
||||
npc_high_oracle_soo_rooAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_high_oracle_soo_roo(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -503,23 +465,12 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_high_oracle_soo_rooAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_elder_kekek
|
||||
######*/
|
||||
class npc_elder_kekek : public CreatureScript
|
||||
struct npc_elder_kekek : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_elder_kekek() : CreatureScript("npc_elder_kekek") {}
|
||||
|
||||
struct npc_elder_kekekAI : public ScriptedAI
|
||||
{
|
||||
npc_elder_kekekAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_elder_kekek(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -589,24 +540,13 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_elder_kekekAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_the_etymidian
|
||||
## TODO: A red crystal as a gift for the great one should be spawned during the event.
|
||||
######*/
|
||||
class npc_the_etymidian : public CreatureScript
|
||||
struct npc_the_etymidian : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_the_etymidian() : CreatureScript("npc_the_etymidian") {}
|
||||
|
||||
struct npc_the_etymidianAI : public ScriptedAI
|
||||
{
|
||||
npc_the_etymidianAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_the_etymidian(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -684,23 +624,12 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_the_etymidianAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_cw_alexstrasza_trigger
|
||||
######*/
|
||||
class npc_alexstraza_the_lifebinder : public CreatureScript
|
||||
struct npc_alexstraza_the_lifebinder : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_alexstraza_the_lifebinder() : CreatureScript("npc_alexstraza_the_lifebinder") {}
|
||||
|
||||
struct npc_alexstraza_the_lifebinderAI : public ScriptedAI
|
||||
{
|
||||
npc_alexstraza_the_lifebinderAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
npc_alexstraza_the_lifebinder(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -843,12 +772,6 @@ public:
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_alexstraza_the_lifebinderAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## at_bring_your_orphan_to
|
||||
######*/
|
||||
@@ -1037,14 +960,14 @@ public:
|
||||
|
||||
void AddSC_event_childrens_week()
|
||||
{
|
||||
new npc_elder_kekek();
|
||||
new npc_high_oracle_soo_roo();
|
||||
new npc_winterfin_playmate();
|
||||
new npc_snowfall_glade_playmate();
|
||||
new npc_the_etymidian();
|
||||
new npc_the_biggest_tree();
|
||||
RegisterCreatureAI(npc_elder_kekek);
|
||||
RegisterCreatureAI(npc_high_oracle_soo_roo);
|
||||
RegisterCreatureAI(npc_winterfin_playmate);
|
||||
RegisterCreatureAI(npc_snowfall_glade_playmate);
|
||||
RegisterCreatureAI(npc_the_etymidian);
|
||||
RegisterCreatureAI(npc_the_biggest_tree);
|
||||
new at_bring_your_orphan_to();
|
||||
new npc_grizzlemaw_cw_trigger();
|
||||
new npc_cw_area_trigger();
|
||||
new npc_alexstraza_the_lifebinder();
|
||||
RegisterCreatureAI(npc_alexstraza_the_lifebinder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user