What's new

12673 It Rolls Downhill

eyerobot

Gold Supporter
Superior Member
916
2015
24
Location
Barryton Michigan USA
This is still a little buggy, When a Geist harvests a blight crystal and runs through his waypoints, It seems to cause all of the Geists to despawn or die. It may be caused by the control spell hitting all of the Geists instead of just one. I set their respawn timer to 30 seconds to make up for them vanishing so often.

Code:
-- 12673 It Rolls Downhill

DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=52245;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17, 0, 52245, 0, 0, 29, 0, 28751, 40, 0, 0, 0, 0, "", "Spell 'Harvest Blight Crystal' requires NPC 'Geist WP Bunny' within 10 yards");

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (28750, 2875000, 2875001);
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
(28750, 0, 0, 0, 8, 0, 100, 512, 52245, 0, 0, 0, 69, 1, 0, 1, 0, 0, 0, 11, 28751, 10, 0, 0, 0, 0, 0, "Blight Geist - On Spellhit 'Harvest Blight Crystal' - Move To Closest Gameobject 'Crystallized Blight'"),
(28750, 0, 1, 2, 8, 0, 100, 512, 52244, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Spellhit 'Charm Geist' - Say Line 0"),
(28750, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Spellhit 'Charm Geist' - Follow Invoker"),
(28750, 0, 3, 0, 8, 0, 100, 512, 52252, 0, 0, 0, 11, 52243, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Spellhit 'Charm Channel' - Cast 'Orange Radiation, Small'"),
(28750, 0, 4, 0, 34, 0, 100, 512, 0, 1, 0, 0, 80, 2875000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On MovePoint 1 Reached - Run Script"),
(28750, 0, 5, 0, 34, 0, 100, 512, 0, 2, 0, 0, 80, 2875001, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On MovePoint 2 Reached - Run Script"),
(28750, 0, 6, 7, 29, 0, 100, 512, 1, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Charm Removed - Stop Follow"),
(28750, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Charm Removed - Evade"),

(2875000, 9, 0, 0, 0, 0, 100, 512, 4000, 4000, 4000, 4000, 11, 52247, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Script - Cast 'Target Crystal'"),
(2875000, 9, 1, 0, 0, 0, 100, 512, 1000, 1000, 1000, 1000, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 6174.28, -2017.25, 245.116, 0, "Blight Geist - On Script - Move to Target Position"),

(2875001, 9, 0, 0, 0, 0, 100, 512, 4000, 4000, 4000, 4000, 11, 61456, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Script - Cast 'Evil Teleport Visual Only'"),
(2875001, 9, 1, 0, 0, 0, 100, 513, 2000, 2000, 2000, 2000, 11, 52248, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Script - Cast 'Kill Credit - Blighted Geist'"),
(2875001, 9, 2, 0, 0, 0, 100, 512, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Script - Evade"),
(2875001, 9, 3, 0, 0, 0, 100, 512, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Blight Geist - On Script - Despawn in 5 seconds");

UPDATE `creature` SET `modelid`='25664', `spawntimesecs`='30', `spawndist`='5', `curhealth`='10282', `MovementType`='1' WHERE  `id`=28750;
UPDATE `creature` SET `spawndist`='0', `MovementType`='0' WHERE  `id`=28751;
 
Last edited:
Top