*Fix quest gift of harvester.
*Add missing frostbrood vanquisher vehicle id in previous sql. Thanks to Azrael --HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_dkc1_gothik' WHERE `entry`=28658;
|
||||
|
||||
-- gift of harvester
|
||||
DELETE FROM `spell_script_target` WHERE entry IN
|
||||
(52479);
|
||||
INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES
|
||||
(52479,1,28819),
|
||||
(52479,1,28822);
|
||||
|
||||
update creature_template set maxhealth = 133525, minhealth = 133525, maxmana = 51360, minmana = 51360, spell1 = 53114, spell2 = 53112, spell3=53110, VehicleId = 156 where entry = 28670;
|
||||
@@ -109,6 +109,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_taxi' WHERE `entry` IN (17435,
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_death_knight_initiate' WHERE `entry`=28406;
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_salanar_the_horseman' WHERE `entry`=28653;
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_ros_dark_rider' WHERE `entry`=28768;
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_dkc1_gothik' WHERE `entry`=28658;
|
||||
|
||||
/* */
|
||||
/* ZONE */
|
||||
|
||||
@@ -1579,12 +1579,6 @@ spell4 = VALUES(spell4);
|
||||
-- Three-seat mammoth
|
||||
UPDATE creature_template SET VehicleId = 312 WHERE entry IN (31857,31858,31861,31862,32212,32213,32633,32640);
|
||||
|
||||
-- Horses for quest 12680 / not sure if its offilike
|
||||
UPDATE creature_template SET `VehicleId`=200 WHERE `entry` IN (28605,28606,28607);
|
||||
|
||||
-- Vehicle and summon spell(summon npc 28788) for Acherus Deathcharger
|
||||
UPDATE creature_template SET `spell1`=52362, `VehicleId`=200 WHERE `entry`=28782;
|
||||
|
||||
-- --------
|
||||
-- Death Knight
|
||||
-- --------
|
||||
@@ -1611,8 +1605,26 @@ INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES
|
||||
(52124, 1, 28655);
|
||||
UPDATE `creature_template` SET spell1=52372,spell2=52373,spell3=52374,spell4=52375 WHERE `entry`=28406;
|
||||
|
||||
-- death charger
|
||||
DELETE FROM spell_area WHERE spell = 52693;
|
||||
INSERT INTO spell_area (`spell`, `area`, `quest_start`, `quest_start_active`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`) VALUES
|
||||
(52693, 4298, 12687, 1, 12687, 0, 0, 0, 1);
|
||||
|
||||
-- Horses for quest 12680 / not sure if its offilike
|
||||
UPDATE creature_template SET `VehicleId`=200 WHERE `entry` IN (28605,28606,28607);
|
||||
|
||||
-- Vehicle and summon spell(summon npc 28788) for Acherus Deathcharger
|
||||
UPDATE creature_template SET `spell1`=52362, `VehicleId`=200 WHERE `entry`=28782;
|
||||
|
||||
-- gift of harvester
|
||||
DELETE FROM `spell_script_target` WHERE entry IN
|
||||
(52479);
|
||||
INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES
|
||||
(52479,1,28819),
|
||||
(52479,1,28822);
|
||||
|
||||
-- frostbrood vanquisher
|
||||
update creature_template set maxhealth = 133525, minhealth = 133525, maxmana = 51360, minmana = 51360, spell1 = 53114, spell2 = 53112, spell3=53110 where entry = 28670;
|
||||
update creature_template set maxhealth = 133525, minhealth = 133525, maxmana = 51360, minmana = 51360, spell1 = 53114, spell2 = 53112, spell3=53110, VehicleId = 156 where entry = 28670;
|
||||
|
||||
|
||||
-- --------
|
||||
|
||||
@@ -578,6 +578,36 @@ CreatureAI* GetAI_npc_ros_dark_rider(Creature *_Creature)
|
||||
return new npc_ros_dark_riderAI(_Creature);
|
||||
}
|
||||
|
||||
struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI
|
||||
{
|
||||
npc_dkc1_gothikAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
|
||||
if(who->GetEntry() == 28845 && me->IsWithinDistInMap(who, 10.0f))
|
||||
{
|
||||
if(Unit *owner = who->GetOwner())
|
||||
{
|
||||
if(owner->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if(CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
CAST_PLR(owner)->KilledMonster(28845, me->GetGUID());
|
||||
who->setDeathState(DEAD);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_dkc1_gothik(Creature *_Creature)
|
||||
{
|
||||
return new npc_dkc1_gothikAI(_Creature);
|
||||
}
|
||||
|
||||
void AddSC_the_scarlet_enclave()
|
||||
{
|
||||
Script *newscript;
|
||||
@@ -613,4 +643,9 @@ void AddSC_the_scarlet_enclave()
|
||||
newscript->Name="npc_ros_dark_rider";
|
||||
newscript->GetAI = &GetAI_npc_ros_dark_rider;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_dkc1_gothik";
|
||||
newscript->GetAI = &GetAI_npc_dkc1_gothik;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
Reference in New Issue
Block a user