What's new

Quest Scratches 10556 Fix 7.02

eyerobot

Gold Supporter
Superior Member
916
2015
24
Location
Barryton Michigan USA
Corrected conditions to target 21511 unit
Corrected spell_script_target to use unit not gameobject
spawned 21511
Created smart scripts for 21469 Daranelle
Removed script npc_daranelle
Created SmartAI for Kiliri Totem 21468 to prevent server crash

Code:
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=4 AND `SourceEntry`=36904 AND `SourceId`=0 AND `ElseGroup`=0 AND `ConditionTypeOrReference`=31 AND `ConditionTarget`=0 AND `ConditionValue1`=3 AND `ConditionValue2`=21511 AND `ConditionValue3`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES (13, 4, 36904, 0, 0, 31, 0, 3, 21511, 0, 0, 0, 0, '', NULL);

DELETE FROM `spell_script_target` WHERE `entry`=36904 AND `type`=1 AND `targetEntry`=21511;
INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES (36904, 1, 21511);

DELETE FROM `creature` WHERE `guid`=723621;
INSERT INTO `creature` (`guid`, `id`, `map`, `zone`, `area`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `walkmode`) VALUES (723621, 21511, 530, 3522, 3782, 1, 65535, 0, 0, 1612.37, 6935.06, 159.084, 5.87662, 300, 0, 0, 1, 0, 0, 0, 0, 0, 0);


DELETE FROM `smart_scripts` WHERE (`entryorguid`=21469 AND `source_type`=0);
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
(21469, 0, 0, 0, 10, 0, 100, 0, 1, 5, 0, 0, 33, 21511, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Los Ooc - Invoker - Summon Killed Monster"),
(21469, 0, 1, 0, 1, 0, 100, 0, 0, 0, 0, 0, 28, 36904, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Update Ooc - Invoker - Remove Auras From Spell"),
(21469, 0, 2, 0, 1, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 19, 21468, 5, 0, 0, 0, 0, 0, "On Update Ooc - Invoker - Force Despawn Kaliri");

DELETE FROM `creature_template` WHERE `entry`=21469;
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `exp_unk`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_fly`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `type_flags2`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `currencyId`, `currencyCount`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Mana_mod_extra`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (21469, 0, 0, 0, 0, 0, 876, 0, 0, 0, 'Daranelle', NULL, NULL, 0, 60, 60, 0, 0, 80, 80, 2, 1, 1.14286, 1, 1.14286, 1, 0, 104, 138, 0, 252, 1, 2000, 2000, 1, 0, 2048, 0, 0, 0, 0, 0, 0, 72, 106, 26, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, 'SmartAI', 1, 3, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, '', 12340);

DELETE FROM `creature_template` WHERE `entry`=21468;
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `exp_unk`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_fly`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `type_flags2`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `currencyId`, `currencyCount`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Mana_mod_extra`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (21468, 0, 0, 0, 0, 0, 16724, 0, 0, 0, 'Kaliri Totem', NULL, NULL, 0, 65, 66, 1, 0, 35, 35, 0, 1.125, 1.14286, 1.125, 1.14286, 1, 0, 210, 295, 0, 282, 1, 1400, 1900, 1, 0, 2048, 8, 26, 0, 0, 0, 0, 175, 260, 37, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10709, 0, 0, 0, 0, 0, 0, 0, 10709, 0, 0, 0, NULL, NULL, 'SmartAI', 1, 3, 0, 0.3, 0.3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 149, 1, 0, 0, 2, '', 12340);

DELETE FROM `smart_scripts` WHERE (`entryorguid`=21468 AND `source_type`=0);
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
(21468, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 29, 3, 0, 21469, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Just Summoned - Invoker - Follow");
 
Top