DB/GameObject: Sacred Fire of Life

This commit is contained in:
Killyana
2018-10-18 18:44:15 +02:00
parent c8836b6eb4
commit 2dc28bc3a7
2 changed files with 10 additions and 35 deletions

View File

@@ -0,0 +1,10 @@
--
UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI", ScriptName="" WHERE `entry` IN (175944);
DELETE FROM `smart_scripts` WHERE `entryorguid`=175944 AND `source_type`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(175944,1,0,1,8,0,100,0,16996,0,0,0,12,10882,4,30000,0,0,0,8,0,0,0,-5008.338, -2118.894, 83.657, 0.874,"Sacred Fire of Life - On spell Hit - Summon Arikara"),
(175944,1,1,0,61,0,100,0,0,0,0,0,99,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Sacred Fire of Life - On spell Hit - activate object");
DELETE FROM `conditions` WHERE `SourceEntry`= 16996 AND `SourceTypeOrReferenceId`=17;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17, 0, 16996, 0, 0, 29, 0, 10882, 100, 0, 1, 0, 0, '', '');

View File

@@ -21,7 +21,6 @@ go_cat_figurine (the "trap" version of GO, two different exist)
go_barov_journal
go_ethereum_prison
go_ethereum_stasis
go_sacred_fire_of_life
go_shrine_of_the_birds
go_southfury_moonstone
go_orb_of_command
@@ -416,39 +415,6 @@ public:
}
};
/*######
## go_sacred_fire_of_life
######*/
enum SacredFireOfLife
{
NPC_ARIKARA = 10882
};
class go_sacred_fire_of_life : public GameObjectScript
{
public:
go_sacred_fire_of_life() : GameObjectScript("go_sacred_fire_of_life") { }
struct go_sacred_fire_of_lifeAI : public GameObjectAI
{
go_sacred_fire_of_lifeAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player) override
{
if (me->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
player->SummonCreature(NPC_ARIKARA, -5008.338f, -2118.894f, 83.657f, 0.874f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
return true;
}
};
GameObjectAI* GetAI(GameObject* go) const override
{
return new go_sacred_fire_of_lifeAI(go);
}
};
/*######
## go_shrine_of_the_birds
######*/
@@ -2052,7 +2018,6 @@ void AddSC_go_scripts()
new go_ethereum_prison();
new go_ethereum_stasis();
new go_resonite_cask();
new go_sacred_fire_of_life();
new go_tele_to_dalaran_crystal();
new go_tele_to_violet_stand();
new go_fel_crystalforge();