WA:
UPDATE `smart_scripts` SET `id`=4 WHERE `entryorguid`=31578 AND `source_type`=0 AND `id`=3;
UPDATE `smart_scripts` SET `link`=3 WHERE `entryorguid`=31578 AND `source_type`=0 AND `id`=2;
DELETE FROM `smart_scripts` WHERE `entryorguid`=31578 AND `id`=3 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `id`, `event_type`, `action_type`, `action_param1`, `target_type`, `target_param1`, `comment`) VALUES
(31578,3,61,11,59329,12,1,'Armored Decoy - Linked - Give quest Credit');