TrinityCore/TrinityCore — Issue #3720: [Quest/FIX] The Manor, Ravenholdt
Author: Discover-
Created: 2011-10-26 22:21:49+00:00
State: open

Yay for second areatrigger SAI!
https://github.com/TrinityCore/TrinityCore/blob/master/src/server/scripts/World/areatrigger_scripts.cpp#L154

```sql
-- [Q] The Manor, Ravenholdt

-- Areatrigger Ravenholdt SAI
SET @AT_RAVENHOLDT := 3066;
SET @NPC_RAVENHOLDT := 13936;
UPDATE `areatrigger_scripts` SET `ScriptName`='SmartTrigger' WHERE `entry`=@AT_RAVENHOLDT;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@AREATRIGGER AND `source_type`=2;
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
(@AT_RAVENHOLDT,2,0,0,46,0,100,0,@AT_RAVENHOLDT,0,0,0,33,@NPC_RAVENHOLDT,0,0,0,0,0,7,0,0,0,0,0,0,0,"Areatrigger Ravenholdt - On Trigger - Quest Credit");
```