Beat the parliament in the blizzard server can directly transfer
So I have a try
But not reasonable because there is no check whether BOSS beat(SD2 No detection)
Please forgive my English I’m Asian
SQL:
INSERT INTO gossip_menu_option
(menu_id
, id
, option_icon
, option_text
, OptionBroadcastTextID
, option_id
, npc_option_npcflag
, action_menu_id
, action_poi_id
, box_coded
, box_money
, box_text
, BoxBroadcastTextID
) VALUES (8749, 1, 0, ‘I’m ready. Take me to the Chamber of Command.’, 21879, 1, 1, 0, 0, 0, 0, NULL, 0);
INSERT INTO gossip_menu_option
(menu_id
, id
, option_icon
, option_text
, OptionBroadcastTextID
, option_id
, npc_option_npcflag
, action_menu_id
, action_poi_id
, box_coded
, box_money
, box_text
, BoxBroadcastTextID
) VALUES (8750, 0, 0, ‘I’m ready. Take me to the Chamber of Command.’, 21879, 1, 1, 0, 0, 0, 0, NULL, 0);
UPDATE creature_template SET gossip_menu_id=8749 WHERE entry=23410;
INSERT INTO spell_target_position
(id
, effIndex
, target_map
, target_position_x
, target_position_y
, target_position_z
, target_orientation
, VerifiedBuild
) VALUES (41570, 0, 564, 603.38, 305.55, 271.9, 0.01, 0);
UPDATE creature_template
SET Scriptname = npc_Spirit_of_Udalo WHERE entry = 23410;
black_temple.h
enum CreatureIds
{
NPC_HIGH_WARLORD_NAJENTUS = 22887,
NPC_SUPREMUS = 22898,
NPC_SHADE_OF_AKAMA = 22841,
NPC_AKAMA_SHADE = 23191, // This is the Akama that starts the Shade of Akama encounter.
NPC_AKAMA = 23089, // This is the Akama that starts the Illidan encounter.
++ NPC_Udalo = 23410, // This is to the Chamber of Command.
NPC_GATHIOS_THE_SHATTERER = 22949,
NPC_HIGH_NETHERMANCER_ZEREVOR = 22950,
NPC_LADY_MALANDE = 22951,
NPC_VERAS_DARKSHADOW = 22952,
NPC_ILLIDARI_COUNCIL = 23426,
NPC_BLOOD_ELF_COUNCIL_VOICE = 23499,
NPC_ILLIDAN_STORMRAGE = 22917,
NPC_SUPREMUS_VOLCANO = 23085
black_temple.cpp
enum Spells
{
// Spirit of Olum
SPELL_TELEPORT = 41566,
// Spirit of Udalo
SPELL_TELEPORT_2 = 41570,
// Wrathbone Flayer
SPELL_CLEAVE = 15496,
SPELL_IGNORED = 39544,
SPELL_SUMMON_CHANNEL = 40094
};
enum Creatures
{
NPC_BLOOD_MAGE = 22945,
NPC_DEATHSHAPER = 22882
};
enum Events
{
// Wrathbone Flayer
EVENT_GET_CHANNELERS = 1,
EVENT_SET_CHANNELERS = 2,
EVENT_CLEAVE = 3,
EVENT_IGNORED = 4,
};
// ########################################################
// Spirit of Olum
// ########################################################
class npc_spirit_of_olum : public CreatureScript
{
public:
npc_spirit_of_olum() : CreatureScript("npc_spirit_of_olum") { }
struct npc_spirit_of_olumAI : public ScriptedAI
{
npc_spirit_of_olumAI(Creature* creature) : ScriptedAI(creature) { }
void sGossipSelect(Player* player, uint32 /*sender*/, uint32 action) override
{
if (action == 1)
{
player->CLOSE_GOSSIP_MENU();
player->InterruptNonMeleeSpells(false);
player->CastSpell(player, SPELL_TELEPORT, false);
}
++ else
++ {
++ player->CLOSE_GOSSIP_MENU();
++ player->InterruptNonMeleeSpells(false);
++ player->CastSpell(player, SPELL_TELEPORT_2, false);
++ }
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_spirit_of_olumAI(creature);
}
};
+ (// ########################################################
// Spirit of Udalo
// ########################################################
class npc_Spirit_of_Udalo : public CreatureScript
{
public:
npc_Spirit_of_Udalo() : CreatureScript("npc_Spirit_of_Udalo") { }
struct npc_Spirit_of_UdaloAI : public ScriptedAI
{
npc_Spirit_of_UdaloAI(Creature* creature) : ScriptedAI(creature) { }
void sGossipSelect(Player* player, uint32 /*sender*/, uint32 action) override
{
if (action == 1)
{
player->CLOSE_GOSSIP_MENU();
player->InterruptNonMeleeSpells(false);
player->CastSpell(player, SPELL_TELEPORT_2, false);
}
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_Spirit_of_UdaloAI(creature);
}
+ ) };