-- [Q]The purification of the Quel'delar(H)
UPDATE `creature_template` SET `minlevel`=80,`maxlevel`=80,`Health_mod`=2.9480580,`Mana_mod`=1,`IconName`='Speak', `npcflag`=4483,`gossip_menu_id`=50000,`AIname`='SmartAI' WHERE `entry`=37523;
-- spawn Warden of sunwell
DELETE FROM `creature` WHERE `id`=37523;
INSERT INTO `creature` VALUES ('1002398', '37523', '530', '1', '1', '0', '0', '12556.6', '-6779.59', '15.039', '0.223384', '300', '0', '0', '41', '60', '0', '0', '0', '0');
INSERT INTO `creature` VALUES ('1002399', '37523', '530', '1', '1', '0', '0', '12556.7', '-6769.64', '15.1005', '0.283409', '300', '0', '0', '41', '60', '0', '0', '0', '0');
DELETE FROM `gossip_menu` WHERE `entry`=50000;
INSERT INTO `gossip_menu` VALUES (50000,300000);
-- Texts from Warden of Sunwell
DELETE FROM `npc_text` WHERE `id`=300000;
INSERT INTO `npc_text` VALUES (300000, 'I will escort you into the Sunwell when you´re ready.', 'I will escort you into the Sunwell when you''re ready.', '0','1', '0', '1', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0','0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '12340');
DELETE FROM `gossip_menu_option` WHERE `menu_id`=50000;
INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`) VALUES
(50000,0,0,'I''m ready to enter the Sunwell.',1,1);
-- Warden of Sunwell script SAI
DELETE FROM `smart_scripts` WHERE `entryorguid`=37523 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
('37523', '0', '0', '1', '61', '0', '100', '0', '0', '0', '0', '0', '85', '70746', '0', '0', '0', '0', '0', '7', '0', '0', '0', '0', '0', '0', '0', 'Warden of the Sunwell - On Gossip Select - Cast spell on self'),
('37523', '0', '1', '0', '62', '0', '100', '0', '50000', '0', '0', '0', '72', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Warden of the Sunwell - On Gossip Select - Close Gossip');
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15,50000,0,0,9,24596,0,0,0,'',"Only show first gossip if player is on quest The purification of the Quel'delar(H)");
--Fix spell target
DELETE FROM `spell_target_position` WHERE `id`='70746';
INSERT INTO `spell_target_position`(`id`,`target_map`,`target_position_x` ,`target_position_y`,`target_position_z`,`target_orientation`) VALUES
(70746,580,1790.650024,925.669983,15.150000,3.100000);
I’ve tried to fix the quest. But the wardens doenst casts the spell.
http://www.wowhead.com/spell=70746
http://www.wowhead.com/npc=37523
What ist the problem? /emoticons/default_biggrin.png
Fixed sql a bit but still needs more work, Malcrom.