UPDATE `creature_template` SET `ainame`='SmartAI' WHERE `entry`=21506;
UPDATE `quest_template` SET `requiredspellcast1`=0 WHERE `id`=10688;
DELETE FROM `smart_scripts` WHERE `entryorguid`=21506;
INSERT INTO `smart_scripts` VALUES
('21506','0','0','0','8','0','100','0','37834','0','0','0','33','21892','0','0','0','0','0','7','0','0','0','0','0','0','0','On spell hit - give quest credit');
DELETE FROM `conditions` WHERE `sourceentry`=37834;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
('17','0','37834','0','0','31','1','3','21506','0','0','0','0','',NULL);