Results 1 to 6 of 6
http://idgs.in/764327
  1. #1

    Join Date
    Oct 2010
    Posts
    56
    Points
    35.51
    Thanks: 2 / 2 / 2

    Default achievment error dan gm pun tidak ada yang mau nengok ):

    Spoiler untuk ini SS nya kk progress nya ga nambah , karna kalo ga beres achivment ini bakalan ngaruh ke achivment yang requires harus beresin achivment yang ini}
    [URL=http://www.imagebam.com/image/16baf2511413885 :
    [/URL]



    tengok kk GM , minta jalan keluarnya .. di thread saya sebelumnya juga ga ditengok2 .. ya bagi kalian ini memang tidak penting achivment ini .. tapi bagi sebagian orang ini sangat penting !! tolong sekali lagi minta jalan keluarnya .. karna maen World of Warcraft tidak melulu tentang RAID , BG dan ARENA !!

    TERIMA KASIH


    "sedih maen di alliance mah"

  2. Hot Ad
  3. #2

    Join Date
    Sep 2008
    Posts
    503
    Points
    22.24
    Thanks: 0 / 24 / 22

    Default

    bantu tongolin http://www.imagebam.com/image/16baf2511413885

    saran aja dari saya, jgn terlalu berharap sama achievement

  4. #3
    Tabris's Avatar
    Join Date
    Sep 2015
    Location
    Kamar
    Posts
    184
    Points
    36,137.50
    Thanks: 3 / 39 / 33

    Default

    banyak PR yang musti dikerjain, dan itu dipilah-pilah mana yang di prioritas mana yang di tunda dulu, dr pada anda maksa2, coba bantu biar fix nya itu harus diapain.

    Jadi kalo ga bisa kasih masukan untuk fix, mendingan coba kerjain achievement lain yang bisa dikerjakan.

    Jangan sedih lah maen dialliance seru gitu BG menang terus.

  5. #4

    Join Date
    Oct 2010
    Posts
    56
    Points
    35.51
    Thanks: 2 / 2 / 2

    Default

    Quote Originally Posted by Tabris View Post
    banyak PR yang musti dikerjain, dan itu dipilah-pilah mana yang di prioritas mana yang di tunda dulu, dr pada anda maksa2, coba bantu biar fix nya itu harus diapain.

    Jadi kalo ga bisa kasih masukan untuk fix, mendingan coba kerjain achievement lain yang bisa dikerjakan.

    Jangan sedih lah maen dialliance seru gitu BG menang terus.
    kalo dikasih masukan gmana buat nge fix nya bakalan yakin di fix ? udah pernah ngasih masukan ke GM apa ya lupa nick nya suruh bikin log fixing ama log error di forum kok ga nongol2 ya thread nya ??? BTW INI GM PR nya kemana ga pernah liat nongol .. sibuk kerja atau sibuk disebelah?? *ehh .
    lalu si EX berkata "enak zamanku toh?" wekwekwekw ..

  6. #5
    benukitayaku's Avatar
    Join Date
    Sep 2016
    Location
    Malang
    Posts
    140
    Points
    14.50
    Thanks: 12 / 1 / 1

    Default

    Quote Originally Posted by Tabris View Post
    banyak PR yang musti dikerjain, dan itu dipilah-pilah mana yang di prioritas mana yang di tunda dulu, dr pada anda maksa2, coba bantu biar fix nya itu harus diapain.

    Jadi kalo ga bisa kasih masukan untuk fix, mendingan coba kerjain achievement lain yang bisa dikerjakan.

    Jangan sedih lah maen dialliance seru gitu BG menang terus.
    jangan kerja sendiri kk di delegasikan ke yg lain klo kurang org tinggal di rekrut

  7. #6
    wandahamidah's Avatar
    Join Date
    Mar 2013
    Posts
    109
    Points
    -13.37
    Thanks: 4 / 3 / 3

    Default

    Quote Originally Posted by syalalavietha View Post
    kalo dikasih masukan gmana buat nge fix nya bakalan yakin di fix ? udah pernah ngasih masukan ke GM apa ya lupa nick nya suruh bikin log fixing ama log error di forum kok ga nongol2 ya thread nya ??? BTW INI GM PR nya kemana ga pernah liat nongol .. sibuk kerja atau sibuk disebelah?? *ehh .
    lalu si EX berkata "enak zamanku toh?" wekwekwekw ..

    Lol.
    Minta ini itu tapi berburuk sangka. Lol.


    Thread log fixing udah ada dari oktober 2012 kali ah, vvakvvavv. Di sticky pula threadnya jadi ga mungkin tenggelem. Lol.
    Situ nyari kesalahan ? Lol.
    Apa sampean nyari pembenaran? vvakvvavv..


    nih threadnya, -Bugs-Fixing situ ndak bener-bener nyari kan?
    Sok post di sana cara fix nya di tunggu. Jangan bikin thread mulu ae ah. Lol. vvakvvavv kak vvakvvavv.


    nih dibawah tak seret kesini, contoh dari cara orang lain yg minta fix dengan ngasih solusinya.

    Quote Originally Posted by Anz69 View Post
    Ulduar Achievements
    Boss yang berfungsi dengan baik dengan achievement penuh yaitu Boss Razorscale & Auriaya
    Berikut beberapa hasil survey dan searching buat script Ulduar
    Referensi :Here
    General Script before Boss Script:

    Ulduar.sql
    Spoiler untuk Ulduar.sql :

    Code:
    -- Ignis
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 9, `vehicleId` = 342 WHERE `entry` = 33118;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 9 WHERE `entry` = 33190;
    DELETE FROM creature WHERE id = 33121;
    DELETE FROM conditions WHERE SourceEntry = 62343;
    INSERT INTO `conditions` VALUES
    ('13','0','62343','0','18','1','33121','0','0','',NULL);
    
    -- Razorscale
    UPDATE `creature_template` SET `speed_run` = 0.00001 WHERE `entry` IN (34188, 34189);
    
    -- XT-002
    UPDATE `creature_template` SET `VehicleId` = 335 WHERE `entry` = 33293;
    
    -- Assembly of Iron
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235 WHERE `entry` IN (32867, 32927, 33693, 33692);
    UPDATE `creature_template` SET `mechanic_immune_mask` = 617299803 WHERE `entry` IN (32857, 33694);
    UPDATE `creature_template` SET `ScriptName` = 'npc_rune_of_power' WHERE `entry` = 33705;
    UPDATE `creature_template` SET `difficulty_entry_1` = 33691, `ScriptName` = 'npc_rune_of_summoning' WHERE `entry` = 33051;
    UPDATE `creature_template` SET `ScriptName` = 'npc_lightning_elemental' WHERE `entry` = 32958;
    -- Runemaster Molgeim
    UPDATE `creature_model_info` SET `bounding_radius` = 0.45, `combat_reach` = 4 WHERE `modelid` = 28381;
    -- Steelbreaker
    UPDATE `creature_model_info` SET `bounding_radius` = 0.45, `combat_reach` = 8 WHERE `modelid` = 28344;
    
    -- Kologarn
    UPDATE `creature_template` SET `baseattacktime` = 1800, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` IN (32930, 33909);
    UPDATE `creature_model_info` SET `bounding_radius` = 1, `combat_reach` = 15 WHERE `modelid` = 28638;
    UPDATE `creature_model_info` SET `bounding_radius` = 0.465, `combat_reach` = 15 WHERE `modelid` = 28821;
    -- Left Arm
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `ScriptName` = 'npc_left_arm' WHERE `entry` = 32933;
    UPDATE `creature_model_info` SET `bounding_radius` = 0.465, `combat_reach` = 15 WHERE `modelid` = 28821;
    -- Right Arm
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `ScriptName` = 'npc_right_arm' WHERE `entry` = 32934;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235 WHERE `entry` IN (33910, 33911);
    UPDATE `creature_model_info` SET `bounding_radius` = 0.465, `combat_reach` = 15 WHERE `modelid` = 28822;
    -- Focused Eyebeam
    UPDATE `creature_template` SET `ScriptName` = 'npc_focused_eyebeam' WHERE `entry` IN (33632, 33802);
    DELETE FROM conditions WHERE SourceEntry IN (63676, 63702);
    INSERT INTO `conditions` VALUES
    ('13','0','63676','0','18','1','32930','0','0','',"Focused Eyebeam (Kologarn)"),
    ('13','0','63702','0','18','1','32930','0','0','',"Focused Eyebeam (Kologarn)");
    -- Cleanup
    DELETE FROM `creature` WHERE `id` IN (33632, 33802, 34297, 32933, 32934, 33809, 33661, 33742);
    DELETE FROM vehicle_accessory WHERE entry = 32930;
    
    
    -- Auriaya
    UPDATE `creature_template` SET `baseattacktime` = 1500, `equipment_id` = 2422, `mechanic_immune_mask` = 617299807, `flags_extra` = 1 WHERE `entry` = 33515;
    UPDATE `creature_template` SET `baseattacktime` = 1500, `equipment_id` = 2422, `mechanic_immune_mask` = 617299807, `flags_extra` = 1 WHERE `entry` = 34175;
    UPDATE `creature_model_info` SET `bounding_radius` = 0.775, `combat_reach` = 5 WHERE `modelid` = 28651;
    -- Sanctum Sentry
    UPDATE `creature_template` SET `speed_walk` = 1.66667, `mechanic_immune_mask` = 536870912, `flags_extra` = 1, `ScriptName` = 'npc_sanctum_sentry' WHERE `entry` = 34014;
    UPDATE `creature_template` SET `baseattacktime` = 1500, `speed_walk` = 1.66667, `mechanic_immune_mask` = 536870912, `flags_extra` = 1 WHERE `entry` = 34166;
    -- Feral Defender
    UPDATE `creature_template` SET `speed_walk` = 2, `dmg_multiplier` = 3.5, `flags_extra` = 1, `ScriptName` = 'npc_feral_defender' WHERE `entry` = 34035;
    UPDATE `creature_template` SET `speed_walk` = 2, `dmg_multiplier` = 5, `flags_extra` = 1, `baseattacktime` = 1500 WHERE `entry` = 34171;
    UPDATE `creature_template` SET `unit_flags` = 33554432, `ScriptName` = 'npc_seeping_trigger' WHERE `entry` = 34098;
    UPDATE `creature_template` SET `unit_flags` = 33554432 WHERE `entry` = 34174;
    UPDATE `creature_template` SET `dmg_multiplier` = 1.5, `baseattacktime` = 1500 WHERE `entry` = 34169;
    UPDATE `creature_template` SET `ScriptName` = 'npc_feral_defender_trigger' WHERE `entry` = 34096;
    -- Mace equip
    DELETE FROM `creature_equip_template` WHERE entry = 2422;
    INSERT INTO `creature_equip_template` VALUES ('2422','45315','0','0');
    -- Cleanup
    DELETE FROM `creature` WHERE `id` = 34014;
    -- Auriaya movement path
    DELETE FROM `creature_addon` WHERE guid = 137496;
    INSERT INTO `creature_addon` VALUES ('137496','1033515','0','0','0','0','0');
    UPDATE `creature` SET `MovementType` = 2 WHERE `guid` = 137496;
    DELETE FROM `waypoint_data` WHERE id = 1033515;
    INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `delay`, `move_flag`, `action`, `action_chance`, `wpguid`) VALUES
    ('1033515','1','1968.46','51.75','417.72','0','0','0','100','0'),
    ('1033515','2','1956.75','49.22','411.35','0','0','0','100','0'),
    ('1033515','3','1938.90','42.09','411.35','3000','0','0','100','0'),
    ('1033515','4','1956.75','49.22','411.35','0','0','0','100','0'),
    ('1033515','5','1968.46','51.75','417.72','0','0','0','100','0'),
    ('1033515','6','2011.43','44.91','417.72','0','0','0','100','0'),
    ('1033515','7','2022.65','37.74','411.36','0','0','0','100','0'),
    ('1033515','8','2046.65','9.61','411.36','0','0','0','100','0'),
    ('1033515','9','2053.4','-8.65','421.68','0','0','0','100','0'),
    ('1033515','10','2053.14','-39.8','421.66','0','0','0','100','0'),
    ('1033515','11','2046.26','-57.96','411.35','0','0','0','100','0'),
    ('1033515','12','2022.42','-86.39','411.35','0','0','0','100','0'),
    ('1033515','13','2011.26','-92.95','417.71','0','0','0','100','0'),
    ('1033515','14','1969.43','-100.02','417.72','0','0','0','100','0'),
    ('1033515','15','1956.66','-97.4','411.35','0','0','0','100','0'),
    ('1033515','16','1939.18','-90.90','411.35','3000','0','0','100','0'),
    ('1033515','17','1956.66','-97.4','411.35','0','0','0','100','0'),
    ('1033515','18','1969.43','-100.02','417.72','0','0','0','100','0'),
    ('1033515','19','2011.26','-92.95','417.71','0','0','0','100','0'),
    ('1033515','20','2022.42','-86.39','411.35','0','0','0','100','0'),
    ('1033515','21','2046.26','-57.96','411.35','0','0','0','100','0'),
    ('1033515','22','2053.14','-39.8','421.66','0','0','0','100','0'),
    ('1033515','23','2053.4','-8.65','421.68','0','0','0','100','0'),
    ('1033515','24','2046.65','9.61','411.36','0','0','0','100','0'),
    ('1033515','25','2022.65','37.74','411.36','0','0','0','100','0'),
    ('1033515','26','2011.43','44.91','417.72','0','0','0','100','0');
    
    
    
    -- Hodir
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854239, `flags_extra` = 1, `ScriptName` = 'boss_hodir' WHERE `entry` = 32845;
    UPDATE `creature_template` SET `equipment_id` = 1843, `mechanic_immune_mask` = 650854239, `flags_extra` = 1 WHERE `entry` = 32846;
    -- Hodir npcs
    UPDATE `creature_template` SET `ScriptName` = 'npc_hodir_priest' WHERE `entry` IN (32897, 33326, 32948, 33330);
    UPDATE `creature_template` SET `ScriptName` = 'npc_hodir_shaman' WHERE `entry` IN (33328, 32901, 33332, 32950);
    UPDATE `creature_template` SET `ScriptName` = 'npc_hodir_druid' WHERE `entry` IN (33325, 32900, 32941, 33333);
    UPDATE `creature_template` SET `ScriptName` = 'npc_hodir_mage' WHERE `entry` IN (32893, 33327, 33331, 32946);
    UPDATE `creature_template` SET `ScriptName` = 'npc_toasty_fire' WHERE `entry` = 33342;
    UPDATE `creature_template` SET `ScriptName` = 'npc_icicle' WHERE `entry` = 33169;
    UPDATE `creature_template` SET `ScriptName` = 'npc_icicle_snowdrift' WHERE `entry` = 33173;
    UPDATE `creature_template` SET `ScriptName` = 'npc_snowpacked_icicle' WHERE `entry` = 33174;
    UPDATE `creature_template` SET `difficulty_entry_1` = 33352, `mechanic_immune_mask` = 612597599, `ScriptName` = 'npc_flash_freeze' WHERE `entry` = 32926;
    UPDATE `creature_template` SET `difficulty_entry_1` = 33353, `mechanic_immune_mask` = 612597599, `ScriptName` = 'npc_flash_freeze' WHERE `entry` = 32938;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 612597599 WHERE `entry` IN (33352, 33353);
    UPDATE `gameobject_template` SET `flags` = 4 WHERE `entry` = 194173;
    -- Cleanup
    DELETE FROM `creature` WHERE `id` IN (32950, 32941, 32948, 32946, 32938);
    
    -- Mimiron Tram
    UPDATE `gameobject_template` SET `flags` = 32, `data2` = 3000, `ScriptName` = 'go_call_tram' WHERE `entry` IN (194914, 194912, 194437);
    DELETE FROM gameobject WHERE id = '194437';
    INSERT INTO `gameobject` (`id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
    ('194437','603','1','1','2306.87','274.237','424.288','1.52255','0','0','0.689847','0.723956','300','0','1');
    DELETE FROM gameobject_template WHERE entry = '194438';
    INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `faction`, `flags`, `size`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `ScriptName`, `WDBVerified`) VALUES
    ('194438','1','8504','Activate Tram','','','','0','32','1','0','0','0','0','0','0','0','0','3000','0','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','go_call_tram','11159');
    DELETE FROM gameobject WHERE id = '194438';
    INSERT INTO `gameobject` (`id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
    (194438, 603, 1,1,2306.99, 2589.35, 424.382, 4.71676, 0, 0, 0.705559, -0.708651, 300, 0, 1);
    
    -- Mimiron
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `ScriptName` = 'boss_mimiron' WHERE `entry` = 33350;
    -- Leviathan MKII
    UPDATE `creature_template` SET `vehicleid` = 370, `mechanic_immune_mask` = 650854235, `ScriptName` = 'boss_leviathan_mk' WHERE `entry` = 33432;
    UPDATE `creature_template` SET `minlevel` = 83, `maxlevel` = 83, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` = 34106;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `ScriptName` = 'boss_leviathan_mk_turret' WHERE `entry` = 34071;
    DELETE FROM vehicle_accessory WHERE entry = 33432;
    INSERT INTO vehicle_accessory VALUE (33432, 34071, 3, 1, 'Leviathan Mk II turret');
    UPDATE creature_template SET ScriptName = 'npc_proximity_mine' WHERE entry = 34362;
    DELETE FROM `creature_model_info` WHERE `modelid`=28831;
    INSERT INTO `creature_model_info` (`modelid`, `bounding_radius`, `combat_reach`, `gender`, `modelid_other_gender`) VALUES
    (28831, 0.5, 7, 2, 0);
    -- VX-001
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `vehicleid` = 371, `ScriptName` = 'boss_vx_001' WHERE `entry` = 33651;
    UPDATE `creature_template` SET `minlevel` = 83, `maxlevel` = 83, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` = 34108;
    UPDATE `creature_template` SET `faction_A` = 35, `faction_H` = 35 WHERE `entry` = 34050;
    UPDATE `creature_template` SET `unit_flags` = 33686020, `flags_extra` = 2 WHERE `entry` = 34211;
    UPDATE `creature_template` SET `ScriptName` = 'npc_rocket_strike' WHERE `entry` = 34047;
    -- Aerial Command Unit
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `ScriptName` = 'boss_aerial_unit' WHERE `entry` = 33670;
    UPDATE `creature_template` SET `minlevel` = 83, `maxlevel` = 83, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` = 34109;
    UPDATE `creature_template` SET `ScriptName` = 'npc_magnetic_core' WHERE `entry` = 34068;
    UPDATE `creature_template` SET `ScriptName` = 'npc_assault_bot' WHERE `entry` = 34057;
    UPDATE `creature_template` SET `difficulty_entry_1` = 34148, `ScriptName` = 'npc_emergency_bot' WHERE `entry` = 34147;
    -- HardMode
    UPDATE `gameobject_template` SET `flags` = 32, `ScriptName` = 'go_not_push_button' WHERE `entry` = 194739;
    UPDATE `creature_template` SET `difficulty_entry_1` = 34361, `ScriptName` = 'npc_frost_bomb' WHERE `entry` = 34149;
    UPDATE `creature_template` SET `speed_walk` = 0.15, `speed_run` = 0.15, `ScriptName` = 'npc_mimiron_flame_trigger' WHERE `entry` = 34363;
    UPDATE `creature_template` SET `ScriptName` = 'npc_mimiron_flame_spread' WHERE `entry` = 34121;
    -- CleanUp
    DELETE FROM creature WHERE id IN (34071, 33856);
    UPDATE `creature_template` SET `flags_extra` = 2 WHERE `entry` = 34143;
    
    
    
    
    -- Freya
    UPDATE `creature_template` SET `baseattacktime` = 1500, `mechanic_immune_mask` = 650854235, `ScriptName` = 'boss_freya' WHERE `entry` = 32906;
    UPDATE `creature_template` SET `speed_walk` = 1.6, `baseattacktime` = 1500, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` = 33360;
    -- Elders
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `ScriptName` = 'npc_elder_brightleaf' WHERE `entry` = 32915;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `ScriptName` = 'npc_elder_ironbranch' WHERE `entry` = 32913;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `ScriptName` = 'npc_elder_stonebark' WHERE `entry` = 32914;
    UPDATE `creature_template` SET `speed_walk` = 1.66666, `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` IN (33393, 33392, 33391);
    -- Iron roots
    UPDATE `creature_template` SET `difficulty_entry_1` = 33397, `mechanic_immune_mask` = 650854239, `ScriptName` = 'npc_iron_roots' WHERE `entry` = 33168;
    UPDATE `creature_template` SET `difficulty_entry_1` = 33396, `mechanic_immune_mask` = 650854239, `ScriptName` = 'npc_iron_roots' WHERE `entry` = 33088;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854239 WHERE `entry` IN (33396, 33397);
    -- Eonar Gift
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1, `ScriptName` = 'npc_eonars_gift' WHERE `entry` = 33228;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `flags_extra` = 1 WHERE `entry` = 33385;
    -- Unstable Sun Beam
    UPDATE `creature_template` SET `ScriptName` = 'npc_unstable_sun_beam' WHERE `entry` = 33050;
    -- Sun Beam
    UPDATE `creature_template` SET `ScriptName` = 'npc_sun_beam' WHERE `entry` = 33170;
    -- Nature Bomb
    UPDATE `creature_template` SET `ScriptName` = 'npc_nature_bomb' WHERE `entry` = 34129;
    UPDATE `gameobject_template` SET `flags` = 4 WHERE `entry` = 194902;
    -- Detonating Lasher
    UPDATE `creature_template` SET `flags_extra` = 256, `ScriptName` = 'npc_detonating_lasher' WHERE `entry` = 32918;
    UPDATE `creature_template` SET `flags_extra` = 256 WHERE `entry` = 33399;
    -- Ancient Conservator
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650853979, `ScriptName` = 'npc_ancient_conservator' WHERE `entry` = 33203;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650853979 WHERE `entry` = 33376;
    -- Healthy Spore
    UPDATE `creature_template` SET `ScriptName` = 'npc_healthy_spore' WHERE `entry` = 33215;
    -- Storm Lasher
    UPDATE `creature_template` SET `ScriptName` = 'npc_storm_lasher' WHERE `entry` = 32919;
    -- Snaplasher
    UPDATE `creature_template` SET `ScriptName` = 'npc_snaplasher' WHERE `entry` = 32916;
    -- Ancient Water Spirit
    UPDATE `creature_template` SET `ScriptName` = 'npc_ancient_water_spirit' WHERE `entry` = 33202;
    -- Cleanup
    DELETE FROM `creature` WHERE `guid` = 136607 OR id = 33575;
    
    
    
    -- Thorim
    UPDATE `creature_template` SET `speed_walk` = 1.66667, `mechanic_immune_mask` = 650854239, `flags_extra` = 1, `ScriptName` = 'boss_thorim' WHERE `entry` = 32865;
    UPDATE `creature_template` SET `speed_walk` = 1.66667, `baseattacktime` = 1500, `equipment_id` = 1844, `mechanic_immune_mask` = 650854239 WHERE `entry` = 33147;
    DELETE FROM `creature` WHERE `id`=32865;
    INSERT INTO `creature` (`id`,`map`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`curmana`,`DeathState`,`MovementType`) VALUES
    (32865, 603, 3, 1, 28977, 0, 2134.967, -298.962, 438.331, 1.57, 604800, 0, 0, 4183500, 425800, 0, 1);
    DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=62042;
    INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
    ('62042','62470','1','Thorim: Deafening Thunder');
    -- Charge Orb
    DELETE FROM conditions WHERE SourceEntry = 62016;
    INSERT INTO `conditions` VALUES
    ('13','0','62016','0','18','1','33378','0','0','',NULL);
    UPDATE `creature_template` SET `unit_flags` = 33685508 WHERE `entry` = 33378;
    -- Gate
    DELETE FROM `gameobject_scripts` WHERE `id`=55194;
    INSERT INTO `gameobject_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES 
    (55194, 0, 11, 34155, 15, '0', 0, 0, 0, 0);
    DELETE FROM `gameobject_template` WHERE `entry`=194265;
    INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `faction`, `flags`, `size`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `ScriptName`, `WDBVerified`) VALUES
    ('194265','1','295','Lever','','','','0','16','3','0','0','0','0','0','0','0','0','6000','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','0');
    UPDATE `gameobject` SET `id` = 194265, `rotation2` = 1, `rotation3` = 0, `spawntimesecs` = 7200, `animprogress` = 100 WHERE `guid` = 55194;
    -- Cleanup
    DELETE FROM `creature` WHERE `id` IN (32885, 32883, 32908, 32907, 32882, 33110, 32886, 32879, 32892, 33140, 33141, 33378, 32874, 32875)
    OR guid IN (136694, 136695, 136666, 136706, 136754, 136653, 136756, 136757, 136725, 136718);
    -- Pre adds
    UPDATE `creature_template` SET `equipment_id` = 1849, `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32885;
    UPDATE `creature_template` SET `equipment_id` = 1849 WHERE `entry` = 33153;
    UPDATE `creature_template` SET `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32883;
    UPDATE `creature_template` SET `equipment_id` = 1847 WHERE `entry` = 33152;
    UPDATE `creature_template` SET `equipment_id` = 1850, `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32908;
    UPDATE `creature_template` SET `equipment_id` = 1850 WHERE `entry` = 33151;
    UPDATE `creature_template` SET `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32907;
    UPDATE `creature_template` SET `equipment_id` = 1852 WHERE `entry` = 33150;
    UPDATE `creature_template` SET `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32882;
    UPDATE `creature_template` SET `ScriptName` = 'npc_thorim_pre_phase' WHERE `entry` = 32886;
    UPDATE `creature_template` SET `modelid1` = 16925, `modelid2` = 0 WHERE `entry`IN (33378, 32892);
    -- Thorim Mini bosses
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854239, `flags_extra` = 1, `ScriptName` = 'npc_runic_colossus' WHERE `entry` = 32872;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854239, `flags_extra` = 1, `ScriptName` = 'npc_ancient_rune_giant' WHERE `entry` = 32873;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854239, `flags_extra` = 1, `ScriptName` = 'npc_sif' WHERE `entry` = 33196;
    UPDATE `creature_template` SET `ScriptName` = 'npc_thorim_arena_phase' WHERE `entry` IN (32876, 32904, 32878, 32877, 32874, 32875, 33110);
    DELETE FROM `creature_addon` WHERE `guid`IN (136059, 136816);
    INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
    ('136059','0','0','0','1','0','40775 0'),
    ('136816','0','0','0','1','0','40775 0');
    
    
    -- General Vezax
    UPDATE `creature_template` SET `mechanic_immune_mask` = 617299803, `flags_extra` = 257, `ScriptName` = 'boss_general_vezax' WHERE `entry` = 33271;
    UPDATE `creature_template` SET `baseattacktime` = 1500, `mechanic_immune_mask` = 617299803, `flags_extra` = 257 WHERE `entry` = 33449;
    UPDATE `creature_model_info` SET `bounding_radius` = 0.62, `combat_reach` = 12 WHERE `modelid` = 28548;
    UPDATE `creature_template` SET `mechanic_immune_mask` = 650854235, `ScriptName` = 'npc_saronite_vapors' WHERE `entry` = 33488;
    UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80, `mechanic_immune_mask` = 650854235, `ScriptName` = 'npc_saronite_animus' WHERE `entry` = 33524;
    UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80, `mechanic_immune_mask` = 650854235 WHERE `entry` IN (33789, 34152);
    UPDATE `creature_model_info` SET `bounding_radius` = 0.62, `combat_reach` = 10 WHERE `modelid` = 28992;
    -- CleanUp
    DELETE FROM creature WHERE id = 33500;



    ulduar_spelldifficulty_dbc.sql
    Spoiler untuk ulduar_spelldifficulty_dbc.sql :

    Code:
    -- Cleanup
    DELETE FROM `spelldifficulty_dbc` WHERE `id` > 3194;
    
    -- Razorscale
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3195','64758','64759','0','0'),
    ('3196','63809','64696','0','0'),
    ('3197','46763','64062','0','0'),
    ('3198','63807','63808','0','0');
    
    -- XT-002
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3199','63018','65121','0','0'),
    ('3200','63024','64234','0','0'),
    ('3201','65737','64193','0','0'),
    ('3202','64203','64235','0','0'),
    ('3203','64227','64236','0','0');
    
    -- Assembly of Iron
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3204','61890','63498','0','0'),
    ('3205','61903','63493','0','0'),
    ('3206','44008','63494','0','0'),
    ('3207','64637','61888','0','0'),
    ('3208','62274','63489','0','0'),
    ('3209','62269','63490','0','0'),
    ('3210','62054','63491','0','0'),
    ('3211','61879','63479','0','0'),
    ('3212','61869','63481','0','0'),
    ('3213','61915','63483','0','0'),
    ('3214','61887','63486','0','0');
    
    -- Kologarn
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3215','63629','63979','0','0'),
    ('3216','63356','64003','0','0'),
    ('3217','63573','64006','0','0'),
    ('3218','63716','64005','0','0'),
    ('3219','62030','63980','0','0'),
    ('3220','63783','63982','0','0'),
    ('3221','64290','64292','0','0'),
    ('3222','62056','63985','0','0'),
    ('3223','63766','63983','0','0'),
    ('3224','63347','63977','0','0');
    
    -- Auriaya
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3225','64389','64678','0','0'),
    ('3226','64422','64688','0','0'),
    ('3227','64496','64674','0','0'),
    ('3228','64478','64669','0','0'),
    ('3229','64458','64676','0','0'),
    ('3230','64666','64374','0','0'),
    ('3231','64375','64667','0','0');
    
    -- Hodir
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3232','62478','63512','0','0'),
    ('3233','65123','65133','0','0');
    
    -- Thorim
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3234','62131','64390','0','0');
    
    -- Freya
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3235','62528','62892','0','0'),
    ('3236','62623','62872','0','0'),
    ('3237','62437','62859','0','0'),
    ('3238','62283','62930','0','0'),
    ('3239','62451','62865','0','0'),
    ('3240','62950','62955','0','0'),
    ('3241','62952','62956','0','0'),
    ('3242','62953','62957','0','0'),
    ('3243','62954','62958','0','0'),
    ('3244','62598','62937','0','0'),
    ('3245','62589','63571','0','0'),
    ('3246','62648','62939','0','0'),
    ('3247','62649','62938','0','0'),
    ('3248','62664','64191','0','0'),
    ('3249','64587','64650','0','0'),
    ('3250','62584','64185','0','0'),
    ('3251','62337','62933','0','0'),
    ('3252','62325','62932','0','0'),
    ('3253','62310','62928','0','0'),
    ('3254','64060','64071','0','0'),
    ('3255','62438','62861','0','0'),
    ('3256','62217','62922','0','0'),
    ('3257','62240','62920','0','0');
    
    -- Mimiron
    INSERT INTO `spelldifficulty_dbc` (`id`, `spellid0`, `spellid1`, `spellid2`, `spellid3`) VALUES 
    ('3258','63666','65026','0','0'),
    ('3259','62997','64529','0','0'),
    ('3260','66351','63009','0','0'),
    ('3261','63677','64533','0','0'),
    ('3262','64348','64536','0','0'),
    ('3263','63689','64535','0','0');

    ulduar_eventai.sql
    Spoiler untuk ulduar_eventai.sql :

    Code:
    -- Runeforged Sentry
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `AIName` = 'EventAI' WHERE `entry` = 34234;
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847 WHERE `entry` = 34235;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34234);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3423401, 34234, 0, 0, 100, 1, 2000, 2000, 10000, 10000, 11, 64852, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Runeforged Sentry - Cast Flaming Rune'),
    (3423402, 34234, 0, 0, 100, 1, 3000, 5000, 5000, 7000, 11, 64870, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Runeforged Sentry - Cast Lava Burst'),
    (3423403, 34234, 0, 0, 100, 1, 2500, 3000, 12000, 15000, 11, 64847, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Runeforged Sentry - Cast Runed Flame Jets');
    
    -- Steelforged Defender
    UPDATE `creature_template` SET `spell1` = 62845, `spell2` = 57780, `spell3` = 50370, `AIName` = 'EventAI' WHERE `entry` = 33236;
    UPDATE `creature_template` SET `spell1` = 62845, `spell2` = 57780, `spell3` = 50370 WHERE `entry` = 34113;
    UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id` IN (33236, 33838);
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33236);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3323601, 33236, 0, 0, 100, 1, 4000, 6000, 15000, 20000, 11, 62845, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Steelforged Defender - Cast Hamstring'),
    (3323602, 33236, 0, 0, 100, 1, 0, 4000, 6000, 8000, 11, 57780, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Steelforged Defender - Cast Lightning Bolt'),
    (3323603, 33236, 0, 0, 100, 1, 5000, 6000, 4000, 6000, 11, 50370, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Steelforged Defender - Cast Sunder Armor');
    
    -- Mechagnome Battletank
    UPDATE `creature_template` SET `spell1` = 64693, `spell2` = 64953, `AIName` = 'EventAI' WHERE `entry` = 34164;
    UPDATE `creature_template` SET `spell1` = 64693, `spell2` = 64953 WHERE `entry` = 34165;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34164);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3416401, 34164, 0, 0, 100, 1, 3000, 4000, 6000, 8000, 11, 64693, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mechagnome Battletank - Cast Flame Cannon'),
    (3416402, 34164, 0, 0, 100, 1, 10000, 10000, 15000, 20000, 11, 64953, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mechagnome Battletank - Cast Jump Attack');
    
    -- Ulduar Colossus
    UPDATE `creature_template` SET `spell1` = 62625, `AIName` = 'EventAI' WHERE `entry` = 33237;
    UPDATE `creature_template` SET `spell1` = 62625 WHERE `entry` = 34105;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33237);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3323701, 33237, 0, 0, 100, 1, 8000, 10000, 20000, 25000, 11, 62625, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Ulduar Colossus - Cast Ground Slam');
    
    -- invisible triggers
    UPDATE `creature_template` SET `flags_extra` = 2 WHERE `entry` IN (33377, 33742, 34286, 33500, 33406, 33575);
    
    -- Molten Colossus
    UPDATE `creature_template` SET `spell1` = 64697, `spell2` = 64698, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34069;
    UPDATE `creature_template` SET `spell1` = 64697, `spell2` = 64698, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34185;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34069);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3406901, 34069, 0, 0, 100, 1, 6000, 10000, 10000, 12000, 11, 64697, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Molten Colossus - Cast Earthquake'),
    (3406902, 34069, 0, 0, 100, 1, 2000, 4000, 6000, 9000, 11, 64698, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Molten Colossus - Cast Pyroblast');
    
    -- Magma Rager
    UPDATE `creature_template` SET `spell1` = 64773, `spell2` = 64746, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34086;
    UPDATE `creature_template` SET `spell1` = 64773, `spell2` = 64746, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34201;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34086);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3408601, 34086, 0, 0, 100, 1, 2000, 40000, 6000, 8000, 11, 64773, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Magma Rager - Cast Fire Blast'),
    (3408602, 34086, 0, 0, 100, 1, 8000, 16000, 15000, 25000, 11, 64746, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Magma Rager - Cast Superheated winds');
    UPDATE `creature_template` SET `unit_flags` = 33718790, modelid1 = 11686, modelid2 = 0, `spell1` = 64724, `AIName` = 'EventAI' WHERE `entry` = 34194;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34194);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419401, 34194, 0, 0, 100, 1, 0, 0, 10000, 10000, 11, 64724, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Superheated Winds');
    
    -- Forge Construct
    UPDATE `creature_template` SET `spell1` = 64719, `spell2` = 64720, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34085;
    UPDATE `creature_template` SET `spell1` = 64719, `spell2` = 64721, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34186;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34085);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3408501, 34085, 0, 0, 100, 1, 8000, 12000, 10000, 15000, 11, 64719, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Forge Construct - Cast Charge'),
    (3408502, 34085, 0, 0, 100, 3, 2000, 6000, 6000, 9000, 11, 64720, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Forge Construct - Cast Flame Emission 10'),
    (3408503, 34085, 0, 0, 100, 5, 2000, 6000, 6000, 9000, 11, 64721, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Forge Construct - Cast Flame Emission 25');
    
    -- XB-488 Disposalbot
    UPDATE `creature_template` SET `spell1` = 65080, `spell2` = 65084, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34273;
    UPDATE `creature_template` SET `spell1` = 65104, `spell2` = 65084, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34274;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34273);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3427301, 34273, 2, 0, 100, 1, 30, 20, 0, 0, 11, 65084, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'XB-488 Disposalbot - Cast Self Destruct'),
    (3427302, 34273, 0, 0, 100, 3, 2000, 6000, 10000, 15000, 11, 65080, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'XB-488 Disposalbot - Cast Cut Scrap Metal 10'),
    (3427303, 34273, 0, 0, 100, 5, 2000, 6000, 10000, 15000, 11, 65104, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'XB-488 Disposalbot - Cast Cut Scrap Metal 25');
    
    -- Parts Recovery Technician
    UPDATE `creature_template` SET `spell1` = 65071, `spell2` = 65070, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554432, `AIName` = 'EventAI' WHERE `entry` = 34267;
    UPDATE `creature_template` SET `spell1` = 65071, `spell2` = 65070, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554432 WHERE `entry` = 34268;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34267);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3426701, 34267, 0, 0, 100, 1, 8000, 12000, 10000, 15000, 11, 65071, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Parts Recovery Technician - Cast Mechano Kick'),
    (3426702, 34267, 0, 0, 100, 1, 6000, 8000, 25000, 30000, 11, 65070, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Parts Recovery Technician - Cast Defense Matrix');
    
    -- XD-175 Compactobot
    UPDATE `creature_template` SET `spell1` = 65073, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34271;
    UPDATE `creature_template` SET `spell1` = 65106, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34272;
    UPDATE `creature_template` SET `mingold` = 7100, `maxgold` = 7600 WHERE `entry` = 34269;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34271);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3427101, 34271, 0, 0, 100, 3, 8000, 12000, 15000, 20000, 11, 65073, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'XD-175 Compactobot - Cast Trash Compactor 10'),
    (3427102, 34271, 0, 0, 100, 5, 8000, 12000, 15000, 20000, 11, 65106, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'XD-175 Compactobot - Cast Trash Compactor 25');
    
    -- Lightning Charged Iron Dwarf
    UPDATE `creature_template` SET `spell1` = 64889, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34199;
    UPDATE `creature_template` SET `spell1` = 64975, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34237;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34199);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419901, 34199, 0, 0, 100, 3, 0, 0, 10000, 15000, 11, 64889, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Lightning Charged Iron Dwarf - Cast Lightning Charged 10'),
    (3419902, 34199, 0, 0, 100, 5, 0, 0, 10000, 15000, 11, 64975, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Lightning Charged Iron Dwarf - Cast Lightning Charged 25');
    
    -- Hardened Iron Golem
    UPDATE `creature_template` SET `spell1` = 64877, `spell2` = 64874, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 34190;
    UPDATE `creature_template` SET `spell1` = 64877, `spell2` = 64967, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34229;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34190);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419001, 34190, 0, 0, 100, 1, 4000, 8000, 25000, 30000, 11, 64877, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hardened Iron Golem - Cast Harden Fists'),
    (3419002, 34190, 0, 0, 100, 3, 5000, 7000, 20000, 30000, 11, 64874, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hardened Iron Golem - Cast Rune Punch 10'),
    (3419003, 34190, 0, 0, 100, 5, 5000, 7000, 20000, 30000, 11, 64967, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hardened Iron Golem - Cast Rune Punch 25');
    
    -- Iron Mender
    UPDATE `creature_template` SET `spell1` = 64918, `spell2` = 64903, `spell3` = 64897, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34198;
    UPDATE `creature_template` SET `spell1` = 64971, `spell2` = 64970, `spell3` = 64968, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34236;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34198);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419801, 34198, 0, 0, 100, 3, 2000, 4000, 4000, 6000, 11, 64918, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Electro Shock 10'),
    (3419802, 34198, 0, 0, 100, 5, 2000, 4000, 4000, 6000, 11, 64971, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Electro Shock 25'),
    (3419803, 34198, 0, 0, 100, 3, 3000, 6000, 10000, 15000, 11, 64903, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Fuse Lightning 10'),
    (3419804, 34198, 0, 0, 100, 5, 3000, 6000, 10000, 15000, 11, 64970, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Fuse Lightning 25'),
    (3419805, 34198, 0, 0, 100, 3, 10000, 25000, 30000, 45000, 11, 64897, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Fuse Metal 10'),
    (3419806, 34198, 0, 0, 100, 5, 10000, 25000, 30000, 45000, 11, 64968, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Iron Mender - Cast Fuse Metal 25');
    
    -- Rune Etched Sentry
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34196;
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34245;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34196);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419601, 34196, 0, 0, 100, 1, 2000, 2000, 10000, 10000, 11, 64852, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Rune Etched Sentry - Cast Flaming Rune'),
    (3419602, 34196, 0, 0, 100, 1, 3000, 5000, 5000, 7000, 11, 64870, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Rune Etched Sentry - Cast Lava Burst'),
    (3419603, 34196, 0, 0, 100, 1, 2500, 3000, 12000, 15000, 11, 64847, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Rune Etched Sentry - Cast Runed Flame Jets');
    
    -- Chamber Overseer
    UPDATE `creature_template` SET `spell1` = 64820, `spell2` = 64825, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 34197;
    UPDATE `creature_template` SET `spell1` = 64943, `spell2` = 64944, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34226;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34197);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419701, 34197, 0, 0, 100, 3, 4000, 8000, 6000, 9000, 11, 64820, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chamber Overseer - Cast Devastating Leap 10'),
    (3419702, 34197, 0, 0, 100, 5, 4000, 8000, 6000, 9000, 11, 64943, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chamber Overseer - Cast Devastating Leap 25'),
    (3419703, 34197, 0, 0, 100, 3, 10000, 12000, 8000, 12000, 11, 64825, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chamber Overseer - Cast Staggering Roar 10'),
    (3419704, 34197, 0, 0, 100, 5, 10000, 12000, 8000, 12000, 11, 64944, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chamber Overseer - Cast Staggering Roar 25');
    
    -- Storm Tempered Keeper
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 33722;
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33723;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33722);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3372201, 33722, 0, 0, 100, 1, 120000, 120000, 120000, 150000, 11, 63630, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Storm Tempered Keeper - Cast Vengeful Surge'),
    (3372202, 33722, 0, 0, 100, 1, 3000, 6000, 10000, 15000, 11, 63541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Storm Tempered Keeper - Cast Forked Lightning');
    
    -- Storm Tempered Keeper
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 33699;
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33700;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33699);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3369901, 33699, 0, 0, 100, 1, 120000, 120000, 120000, 150000, 11, 63630, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Storm Tempered Keeper - Cast Vengeful Surge'),
    (3369902, 33699, 0, 0, 100, 1, 3000, 6000, 10000, 15000, 11, 63541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Storm Tempered Keeper - Cast Forked Lightning');
    
    -- Champion of Hodir
    UPDATE `creature_template` SET `spell1` = 64639, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34133;
    UPDATE `creature_template` SET `spell1` = 64652, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34139;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34133);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3413301, 34133, 0, 0, 100, 3, 3000, 6000, 12000, 16000, 11, 64639, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Champion of Hodir - Cast Stomp 10'),
    (3413302, 34133, 0, 0, 100, 5, 3000, 6000, 12000, 16000, 11, 64652, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Champion of Hodir - Cast Stomp 25');
    
    -- Winter Jormungar
    UPDATE `creature_template` SET `spell1` = 64638, `AIName` = 'EventAI' WHERE `entry` = 34137;
    UPDATE `creature_template` SET `spell1` = 64638 WHERE `entry` = 34140;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34137);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3413701, 34137, 0, 0, 100, 1, 3000, 6000, 6000, 9000, 11, 64638, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Jormungar - Cast Acidic Bite');
    UPDATE `creature` SET `spawndist` = 0 WHERE `id` = 34137;
    
    -- Winter Revenant
    UPDATE `creature_template` SET `spell1` = 64642, `spell2` = 64643, `spell3` = 64644, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 34134;
    UPDATE `creature_template` SET `spell1` = 64653, `spell2` = 64643, `spell3` = 64644, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34141;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34134);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3413401, 34134, 0, 0, 100, 3, 8000, 12000, 15000, 20000, 11, 64642, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Revenant - Cast Blizzard 10'),
    (3413402, 34134, 0, 0, 100, 5, 8000, 12000, 15000, 20000, 11, 64653, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Revenant - Cast Blizzard 25'),
    (3413403, 34134, 0, 0, 100, 1, 3000, 5000, 10000, 12000, 11, 64643, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Revenant - Cast Whirling Strike'),
    (3413404, 34134, 0, 0, 100, 1, 15000, 20000, 60000, 75000, 11, 64644, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Revenant - Cast Shield of the Winter Revenant');
    
    -- Winter Rumbler
    UPDATE `creature_template` SET `spell1` = 64645, `spell2` = 64647, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 34135;
    UPDATE `creature_template` SET `spell1` = 64645, `spell2` = 64654, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34142;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34135);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3413501, 34135, 0, 0, 100, 1, 6000, 12000, 10000, 16000, 11, 64645, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Rumbler - Cast Cone of Cold'),
    (3413502, 34135, 0, 0, 100, 3, 3000, 6000, 8000, 12000, 11, 64647, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Rumbler - Cast Snow Blindness 10'),
    (3413503, 34135, 0, 0, 100, 5, 3000, 6000, 8000, 12000, 11, 64654, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Winter Rumbler - Cast Snow Blindness 25');
    
    -- Guardian Lasher
    UPDATE `creature_template` SET `spell1` = 63007, `spell2` = 63047, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 33430;
    UPDATE `creature_template` SET `spell1` = 63007, `spell2` = 63550, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33732;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33430);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3343001, 33430, 4, 0, 100, 1, 0, 0, 0, 0, 11, 63007, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guardian Lasher - Cast Guardian Pheromones'),
    (3343002, 33430, 0, 0, 100, 3, 3000, 6000, 10000, 14000, 11, 63047, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guardian Lasher - Cast Guardian''s Lash 10'),
    (3343003, 33430, 0, 0, 100, 5, 3000, 6000, 10000, 14000, 11, 63550, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guardian Lasher - Cast Guardian''s Lash 25');
    
    -- Forest Swarmer
    UPDATE `creature_template` SET `spell1` = 63059, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33431;
    UPDATE `creature_template` SET `spell1` = 63059, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33731;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33431);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3343101, 33431, 0, 0, 100, 1, 3000, 9000, 10000, 20000, 11, 63059, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Forest Swarmer - Cast Pollinate');
    DELETE FROM conditions WHERE SourceEntry = 63059;
    INSERT INTO `conditions` VALUES
    ('13','0','63059','0','18','1','33430','0','0','',NULL);
    
    -- Guardian of Life
    UPDATE `creature_template` SET `spell1` = 63226, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33528;
    UPDATE `creature_template` SET `spell1` = 63551, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33733;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33528);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3352801, 33528, 0, 0, 100, 3, 3000, 9000, 15000, 20000, 11, 63226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guardian of Life - Cast Poison Breath 10'),
    (3352802, 33528, 0, 0, 100, 5, 3000, 9000, 15000, 20000, 11, 63551, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guardian of Life - Cast Poison Breath 25');
    
    -- Nature's Blade
    UPDATE `creature_template` SET `spell1` = 63247, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33527;
    UPDATE `creature_template` SET `spell1` = 63568, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33741;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33527);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3352701, 33527, 0, 0, 100, 3, 3000, 9000, 18000, 24000, 11, 63247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Nature Blade - Cast Living Tsunami 10'),
    (3352702, 33527, 0, 0, 100, 5, 3000, 9000, 18000, 24000, 11, 63568, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Nature Blade - Cast Living Tsunami 25');
    
    -- Ironroot Lasher
    UPDATE `creature_template` SET `spell1` = 63240, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33526;
    UPDATE `creature_template` SET `spell1` = 63553, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33734;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33526);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3352601, 33526, 0, 0, 100, 3, 3000, 8000, 12000, 16000, 11, 63240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Ironroot Lasher - Cast Ironroot Thorns 10'),
    (3352602, 33526, 0, 0, 100, 5, 3000, 8000, 12000, 16000, 11, 63553, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Ironroot Lasher - Cast Ironroot Thorns 25');
    
    -- Mangrove Ent
    UPDATE `creature_template` SET `spell1` = 63272, `spell2` = 63242, `spell3` = 63241, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33525;
    UPDATE `creature_template` SET `spell1` = 63272, `spell2` = 63556, `spell3` = 63554, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33735;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33525);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3352501, 33525, 0, 0, 100, 1, 8000, 12000, 25000, 30000, 11, 63272, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mangrove Ent - Cast Hurricane'),
    (3352502, 33525, 0, 0, 100, 3, 12000, 16000, 12000, 16000, 11, 63242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mangrove Ent - Cast Nourish 10'),
    (3352503, 33525, 0, 0, 100, 5, 12000, 16000, 12000, 16000, 11, 63556, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mangrove Ent - Cast Nourish 25'),
    (3352504, 33525, 0, 0, 100, 3, 25000, 30000, 25000, 30000, 11, 63241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mangrove Ent - Cast Tranquility 10'),
    (3352505, 33525, 0, 0, 100, 5, 25000, 30000, 25000, 30000, 11, 63554, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mangrove Ent - Cast Tranquility 25');
    
    -- Misguided Nymph
    UPDATE `creature_template` SET `spell1` = 63082, `spell2` = 63111, `spell3` = 63136, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33355;
    UPDATE `creature_template` SET `spell1` = 63559, `spell2` = 63562, `spell3` = 63564, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33737;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33355);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3335501, 33355, 0, 0, 100, 3, 8000, 12000, 25000, 30000, 11, 63082, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Bind Life 10'),
    (3335502, 33355, 0, 0, 100, 5, 8000, 12000, 25000, 30000, 11, 63559, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Bind Life 25'),
    (3335503, 33355, 0, 0, 100, 3, 4000, 6000, 12000, 16000, 11, 63111, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Frost Spear 10'),
    (3335504, 33355, 0, 0, 100, 5, 4000, 6000, 12000, 16000, 11, 63562, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Frost Spear 25'),
    (3335505, 33355, 0, 0, 100, 3, 15000, 20000, 15000, 20000, 11, 63136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Winter''s Embrace 10'),
    (3335506, 33355, 0, 0, 100, 5, 15000, 20000, 15000, 20000, 11, 63564, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Misguided Nymph - Cast Winter''s Embrace 25');
    
    -- Corrupted Servitor
    UPDATE `creature_template` SET `spell1` = 63169, `spell2` = 63149, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 33354;
    UPDATE `creature_template` SET `spell1` = 63549, `spell2` = 63149, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33729;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33354);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3335401, 33354, 0, 0, 100, 3, 2000, 4000, 20000, 25000, 11, 63169, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Corrupted Servitor - Cast Petrify Joints 10'),
    (3335402, 33354, 0, 0, 100, 5, 2000, 4000, 20000, 25000, 11, 63549, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Corrupted Servitor - Cast Petrify Joints 25'),
    (3335403, 33354, 0, 0, 100, 1, 6000, 8000, 12000, 16000, 11, 63149, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Corrupted Servitor - Cast Violent Earth');
    
    -- Arachnopod Destroyer
    UPDATE `creature_template` SET `spell1` = 64717, `spell2` = 64776, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 34183;
    UPDATE `creature_template` SET `spell1` = 64717, `spell2` = 64776, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34214;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34183);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3418301, 34183, 0, 0, 100, 1, 2000, 4000, 12000, 16000, 11, 64717, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Arachnopod Destroyer - Cast Flame Spray'),
    (3418302, 34183, 0, 0, 100, 1, 8000, 10000, 12000, 16000, 11, 64776, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Arachnopod Destroyer - Cast Machine Gun');
    
    -- Boomer XP-500
    UPDATE `creature_template` SET `spell1` = 55714, `AIName` = 'EventAI' WHERE `entry` = 34192;
    UPDATE `creature_template` SET `spell1` = 55714 WHERE `entry` = 34216;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34192);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419201, 34192, 9, 0, 100, 1, 0, 3, 0, 0, 11, 55714, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Boomer XP-500 - Explode');
    
    -- Clockwork Sapper
    UPDATE `creature_template` SET `spell1` = 64740, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'EventAI' WHERE `entry` = 34193;
    UPDATE `creature_template` SET `spell1` = 64740, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34220;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=34193);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3419301, 34193, 0, 0, 100, 1, 2000, 6000, 12000, 16000, 11, 64740, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Clockwork Sapper - Cast Energy Sap');
    
    -- Twilight Adherent
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63760, `spell3` = 13704, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33818;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63760, `spell3` = 13704, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33827;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33818);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3381801, 33818, 0, 0, 100, 1, 10000, 16000, 20000, 25000, 11, 64663, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Adherent - Cast Arcane Burst'),
    (3381802, 33818, 0, 0, 100, 1, 18000, 24000, 20000, 24000, 11, 63760, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Adherent - Cast Greater Heal'),
    (3381803, 33818, 0, 0, 100, 1, 2000, 4000, 10000, 16000, 11, 13704, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Adherent - Cast Psychic Scream');
    
    -- Twilight Guardian
    UPDATE `creature_template` SET `spell1` = 52719, `spell2` = 62317, `spell3` = 63757, `mechanic_immune_mask` = 33554513, `equipment_id` = 1852, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33822;
    UPDATE `creature_template` SET `spell1` = 52719, `spell2` = 62317, `spell3` = 63757, `mechanic_immune_mask` = 33554513, `equipment_id` = 1852, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33828;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33822);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3382201, 33822, 0, 0, 100, 1, 6000, 10000, 8000, 10000, 11, 52719, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Guardian - Cast Concussion Blow'),
    (3382202, 33822, 0, 0, 100, 1, 2000, 3000, 3000, 6000, 11, 62317, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Guardian - Cast Devastate'),
    (3382203, 33822, 0, 0, 100, 1, 16000, 18000, 14000, 16000, 11, 63757, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Guardian - Cast Thunderclap');
    
    -- Twilight Shadowblade
    UPDATE `creature_template` SET `spell1` = 63753, `mechanic_immune_mask` = 33554513,  `equipment_id` = 1862, `baseattacktime` = 1000, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33824;
    UPDATE `creature_template` SET `spell1` = 63753, `mechanic_immune_mask` = 33554513,  `equipment_id` = 1862, `baseattacktime` = 1000, `mingold` = 7100, `maxgold` = 7600 WHERE `entry` = 33831;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33824);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3382401, 33824, 0, 0, 100, 5, 6000, 8000, 14000, 16000, 11, 63753, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Shadowblade - Cast Fan of Knives');
    
    -- Twilight Slayer
    UPDATE `creature_template` SET `spell1` = 63784, `spell2` = 35054, `mechanic_immune_mask` = 33554513, `equipment_id` = 1847, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33823;
    UPDATE `creature_template` SET `spell1` = 63784, `spell2` = 35054, `mechanic_immune_mask` = 33554513, `equipment_id` = 1847, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33832;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33823);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3382301, 33823, 0, 0, 100, 1, 3000, 5000, 16000, 20000, 11, 35054, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Slayer - Cast Mortal Strike'),
    (3382302, 33823, 0, 0, 100, 1, 9000, 12000, 28000, 34000, 11, 63784, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Slayer - Cast Bladestorm');
    
    UPDATE `creature_template` SET `equipment_id` = 1849 WHERE `entry` = 32885;
    UPDATE `creature_template` SET `equipment_id` = 1850 WHERE `entry` = 32908;
    
    -- Faceless Horror
    UPDATE `creature_template` SET `spell1` = 64429, `spell2` = 63722, `spell3` = 63710, `spell4` = 63703, `mechanic_immune_mask` = 33554513, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33772;
    UPDATE `creature_template` SET `spell1` = 64429, `spell2` = 63722, `spell3` = 63710, `spell4` = 63703, `mechanic_immune_mask` = 33554513, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33773;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33772);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3377201, 33772, 0, 0, 100, 1, 18000, 22000, 15000, 20000, 11, 64429, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Faceless Horror - Cast Death Grip'),
    (3377202, 33772, 0, 0, 100, 1, 2000, 4000, 10000, 12000, 11, 63722, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Faceless Horror - Cast Shadow Crash'),
    (3377203, 33772, 4, 0, 100, 1, 0, 0, 0, 0, 11, 63703, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Faceless Horror - Cast Void Wave');
    
    -- Twilight Frost Mage
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63758, `spell3` = 63912, `spell4` = 63913, `equipment_id` = 1849, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33819;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63758, `spell3` = 63912, `spell4` = 63913, `equipment_id` = 1849, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33829;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33819);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3381901, 33819, 0, 0, 100, 1, 10000, 16000, 20000, 25000, 11, 64663, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Frost Mage - Cast Arcane Burst'),
    (3381902, 33819, 0, 0, 100, 1, 1000, 2000, 6000, 8000, 11, 63913, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Frost Mage - Cast Frostbolt'),
    (3381903, 33819, 0, 0, 100, 1, 2000, 4000, 10000, 16000, 11, 63758, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Frost Mage - Cast Frost Bolt Volley'),
    (3381904, 33819, 0, 0, 100, 1, 8000, 10000, 12000, 16000, 11, 63912, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Frost Mage - Cast Frost Nova');
    
    -- Twilight Pyromancer
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63789, `spell3` = 63775, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'EventAI' WHERE `entry` = 33820;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63789, `spell3` = 63775, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33830;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33820);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3382001, 33820, 0, 0, 100, 1, 10000, 16000, 20000, 25000, 11, 64663, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Pyromancer - Cast Arcane Burst'),
    (3382002, 33820, 0, 0, 100, 1, 1000, 2000, 6000, 8000, 11, 63789, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Pyromancer - Cast Fireball'),
    (3382003, 33820, 0, 0, 100, 1, 2000, 4000, 10000, 16000, 11, 63775, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Twilight Pyromancer - Cast Flamestrike');
    
    -- Enslaved Fire Elemental
    UPDATE `creature_template` SET `spell1` = 38064, `spell2` = 63778, `mechanic_immune_mask` = 33554513, `AIName` = 'EventAI' WHERE `entry` = 33838;
    DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=33838);
    INSERT INTO `creature_ai_scripts` VALUES 
    (3383801, 33838, 0, 0, 100, 1, 4000, 8000, 12000, 14000, 11, 38064, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Enslaved Fire Elemental - Cast Blast Wave'),
    (3383802, 33838, 4, 0, 100, 1, 0, 0, 0, 0, 11, 63778, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Enslaved Fire Elemental - Cast Fire Shield');


    ulduar_smartai.sql
    Spoiler untuk ulduar_smartai.sql :

    Code:
    -- Runeforged Sentry
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `AIName` = 'SmartAI' WHERE `entry` = 34234;
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847 WHERE `entry` = 34235;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34234);
    INSERT INTO `smart_scripts` VALUES 
    (34234, 0, 0, 0, 0, 0, 100, 0, 2000, 2000, 10000, 10000, 11, 64852, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Runeforged Sentry - Cast Flaming Rune'),
    (34234, 0, 1, 0, 0, 0, 100, 0, 3000, 5000, 5000, 7000, 11, 64870, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Runeforged Sentry - Cast Lava Burst'),
    (34234, 0, 2, 0, 0, 0, 100, 0, 2500, 3000, 12000, 12000, 11, 64847, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Runeforged Sentry - Cast Runed Flame Jets');
    
    -- Steelforged Defender
    UPDATE `creature_template` SET `spell1` = 62845, `spell2` = 57780, `spell3` = 50370, `AIName` = 'SmartAI' WHERE `entry` = 33236;
    UPDATE `creature_template` SET `spell1` = 62845, `spell2` = 57780, `spell3` = 50370 WHERE `entry` = 34113;
    UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id` IN (33236, 33838);
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33236);
    INSERT INTO `smart_scripts` VALUES 
    (33236, 0, 0, 0, 0, 0, 100, 0, 4000, 6000, 15000, 20000, 11, 62845, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Steelforged Defender - Cast Hamstring'),
    (33236, 0, 1, 0, 0, 0, 100, 0, 2000, 4000, 6000, 8000, 11, 57780, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Steelforged Defender - Cast Lightning Bolt'),
    (33236, 0, 2, 0, 0, 0, 100, 0, 5000, 6000, 4000, 6000, 11, 50370, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Steelforged Defender - Cast Sunder Armor');
    
    -- Mechagnome Battletank
    UPDATE `creature_template` SET `spell1` = 64693, `spell2` = 64953, `AIName` = 'SmartAI' WHERE `entry` = 34164;
    UPDATE `creature_template` SET `spell1` = 64693, `spell2` = 64953 WHERE `entry` = 34165;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34164);
    INSERT INTO `smart_scripts` VALUES 
    (34164, 0, 0, 0, 0, 0, 100, 0, 3000, 4000, 6000, 8000, 11, 64693, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Mechagnome Battletank - Cast Flame Cannon'),
    (34164, 0, 1, 0, 0, 0, 100, 0, 10000, 10000, 15000, 20000, 11, 64953, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'Mechagnome Battletank - Cast Jump Attack');
    
    -- Ulduar Colossus
    UPDATE `creature_template` SET `spell1` = 62625, `AIName` = 'SmartAI' WHERE `entry` = 33237;
    UPDATE `creature_template` SET `spell1` = 62625 WHERE `entry` = 34105;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33237);
    INSERT INTO `smart_scripts` VALUES 
    (33237, 0, 0, 0, 0, 0, 100, 0, 8000, 10000, 15000, 20000, 11, 62625, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Ulduar Colossus - Cast Ground Slam');
    
    -- invisible triggers
    UPDATE `creature_template` SET `flags_extra` = 2 WHERE `entry` IN (33377, 33742, 34286, 33500, 33406, 33575);
    
    -- Molten Colossus
    UPDATE `creature_template` SET `spell1` = 64697, `spell2` = 64698, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34069;
    UPDATE `creature_template` SET `spell1` = 64697, `spell2` = 64698, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34185;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34069);
    INSERT INTO `smart_scripts` VALUES 
    (34069, 0, 0, 0, 0, 0, 100, 0, 6000, 10000, 10000, 12000, 11, 64697, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Molten Colossus - Cast Earthquake'),
    (34069, 0, 1, 0, 0, 0, 100, 0, 10000, 10000, 15000, 20000, 11, 64698, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Molten Colossus - Cast Pyroblast');
    
    -- Magma Rager
    UPDATE `creature_template` SET `spell1` = 64773, `spell2` = 64746, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34086;
    UPDATE `creature_template` SET `spell1` = 64773, `spell2` = 64746, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34201;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34086);
    INSERT INTO `smart_scripts` VALUES 
    (34086, 0, 0, 0, 0, 0, 100, 0, 2000, 4000, 6000, 8000, 11, 64773, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Magma Rager - Cast Fire Blast'),
    (34086, 0, 1, 0, 0, 0, 100, 0, 8000, 16000, 15000, 25000, 11, 64746, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Magma Rager - Cast Superheated winds');
    UPDATE `creature_template` SET `unit_flags` = 33718790, modelid1 = 11686, modelid2 = 0, `spell1` = 64724, `AIName` = 'SmartAI' WHERE `entry` = 34194;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34194);
    INSERT INTO `smart_scripts` VALUES 
    (34194, 0, 0, 0, 0, 0, 100, 0, 1000, 2000, 10000, 10000, 11, 64724, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Superheated Winds');
    
    -- Forge Construct
    UPDATE `creature_template` SET `spell1` = 64719, `spell2` = 64720, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34085;
    UPDATE `creature_template` SET `spell1` = 64719, `spell2` = 64721, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34186;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34085);
    INSERT INTO `smart_scripts` VALUES 
    (34085, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 10000, 16000, 11, 64719, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'Forge Construct - Cast Charge'),
    (34085, 0, 1, 0, 0, 0, 100, 2, 2000, 6000, 6000, 8000, 11, 64720, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Forge Construct - Cast Flame Emission 10'),
    (34085, 0, 2, 0, 0, 0, 100, 4, 2000, 6000, 6000, 8000, 11, 64721, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Forge Construct - Cast Flame Emission 25');
    
    -- XB-488 Disposalbot
    UPDATE `creature_template` SET `spell1` = 65080, `spell2` = 65084, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34273;
    UPDATE `creature_template` SET `spell1` = 65104, `spell2` = 65084, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34274;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34273);
    INSERT INTO `smart_scripts` VALUES 
    (34273, 0, 0, 0, 2, 0, 100, 0, 30, 20, 0, 0, 11, 65084, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'XB-488 Disposalbot - Cast Self Destruct'),
    (34273, 0, 1, 0, 0, 0, 100, 2, 2000, 6000, 10000, 15000, 11, 65080, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'XB-488 Disposalbot - Cast Cut Scrap Metal 10'),
    (34273, 0, 2, 0, 0, 0, 100, 4, 2000, 6000, 10000, 15000, 11, 65104, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'XB-488 Disposalbot - Cast Cut Scrap Metal 25');
    
    -- Parts Recovery Technician
    UPDATE `creature_template` SET `spell1` = 65071, `spell2` = 65070, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554432, `AIName` = 'SmartAI' WHERE `entry` = 34267;
    UPDATE `creature_template` SET `spell1` = 65071, `spell2` = 65070, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554432 WHERE `entry` = 34268;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34267);
    INSERT INTO `smart_scripts` VALUES 
    (34267, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 10000, 15000, 11, 65071, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'Parts Recovery Technician - Cast Mechano Kick'),
    (34267, 0, 1, 0, 0, 0, 100, 0, 6000, 8000, 20000, 25000, 11, 65070, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Parts Recovery Technician - Cast Defense Matrix');
    
    -- XD-175 Compactobot
    UPDATE `creature_template` SET `spell1` = 65073, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34271;
    UPDATE `creature_template` SET `spell1` = 65106, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34272;
    UPDATE `creature_template` SET `mingold` = 7100, `maxgold` = 7600 WHERE `entry` = 34269;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34271);
    INSERT INTO `smart_scripts` VALUES 
    (34271, 0, 0, 0, 0, 0, 100, 2, 8000, 12000, 15000, 20000, 11, 65073, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'XD-175 Compactobot - Cast Trash Compactor 10'),
    (34271, 0, 1, 0, 0, 0, 100, 4, 8000, 12000, 15000, 20000, 11, 65106, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'XD-175 Compactobot - Cast Trash Compactor 25');
    
    -- Lightning Charged Iron Dwarf
    UPDATE `creature_template` SET `spell1` = 64889, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34199;
    UPDATE `creature_template` SET `spell1` = 64975, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34237;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34199);
    INSERT INTO `smart_scripts` VALUES 
    (34199, 0, 0, 0, 0, 0, 100, 2, 1000, 2000, 10000, 15000, 11, 64889, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Lightning Charged Iron Dwarf - Cast Lightning Charged 10'),
    (34199, 0, 1, 0, 0, 0, 100, 4, 1000, 2000, 10000, 15000, 11, 64975, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Lightning Charged Iron Dwarf - Cast Lightning Charged 25');
    
    -- Hardened Iron Golem
    UPDATE `creature_template` SET `spell1` = 64877, `spell2` = 64874, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 34190;
    UPDATE `creature_template` SET `spell1` = 64877, `spell2` = 64967, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34229;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34190);
    INSERT INTO `smart_scripts` VALUES 
    (34190, 0, 0, 0, 0, 0, 100, 0, 4000, 8000, 25000, 30000, 11, 64877, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Hardened Iron Golem - Cast Harden Fists'),
    (34190, 0, 1, 0, 0, 0, 100, 2, 5000, 7000, 20000, 30000, 11, 64874, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Hardened Iron Golem - Cast Rune Punch 10'),
    (34190, 0, 2, 0, 0, 0, 100, 4, 5000, 7000, 20000, 30000, 11, 64967, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Hardened Iron Golem - Cast Rune Punch 25');
    
    -- Iron Mender
    UPDATE `creature_template` SET `spell1` = 64918, `spell2` = 64903, `spell3` = 64897, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34198;
    UPDATE `creature_template` SET `spell1` = 64971, `spell2` = 64970, `spell3` = 64968, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34236;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34198);
    INSERT INTO `smart_scripts` VALUES 
    (34198, 0, 0, 0, 0, 0, 100, 2, 2000, 4000, 4000, 6000, 11, 64918, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Electro Shock 10'),
    (34198, 0, 1, 0, 0, 0, 100, 4, 2000, 4000, 4000, 6000, 11, 64971, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Electro Shock 25'),
    (34198, 0, 2, 0, 0, 0, 100, 2, 3000, 6000, 10000, 15000, 11, 64903, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Fuse Lightning 10'),
    (34198, 0, 3, 0, 0, 0, 100, 4, 3000, 6000, 10000, 15000, 11, 64970, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Fuse Lightning 25'),
    (34198, 0, 4, 0, 0, 0, 100, 2, 10000, 25000, 30000, 45000, 11, 64897, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Fuse Metal 10'),
    (34198, 0, 5, 0, 0, 0, 100, 4, 10000, 25000, 30000, 45000, 11, 64968, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Iron Mender - Cast Fuse Metal 25');
    
    -- Rune Etched Sentry
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34196;
    UPDATE `creature_template` SET `spell1` = 64852, `spell2` = 64870, `spell3` = 64847, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34245;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34196);
    INSERT INTO `smart_scripts` VALUES 
    (34196, 0, 0, 0, 0, 0, 100, 0, 2000, 2000, 10000, 10000, 11, 64852, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Rune Etched Sentry - Cast Flaming Rune'),
    (34196, 0, 1, 0, 0, 0, 100, 0, 3000, 5000, 5000, 7000, 11, 64870, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Rune Etched Sentry - Cast Lava Burst'),
    (34196, 0, 2, 0, 0, 0, 100, 0, 2500, 3000, 12000, 15000, 11, 64847, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Rune Etched Sentry - Cast Runed Flame Jets');
    
    -- Chamber Overseer
    UPDATE `creature_template` SET `spell1` = 64820, `spell2` = 64825, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 34197;
    UPDATE `creature_template` SET `spell1` = 64943, `spell2` = 64944, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34226;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34197);
    INSERT INTO `smart_scripts` VALUES 
    (34197, 0, 0, 0, 0, 0, 100, 2, 4000, 8000, 6000, 8000, 11, 64820, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Chamber Overseer - Cast Devastating Leap 10'),
    (34197, 0, 1, 0, 0, 0, 100, 4, 4000, 8000, 6000, 8000, 11, 64943, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Chamber Overseer - Cast Devastating Leap 25'),
    (34197, 0, 2, 0, 0, 0, 100, 2, 10000, 12000, 8000, 12000, 11, 64825, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Chamber Overseer - Cast Staggering Roar 10'),
    (34197, 0, 3, 0, 0, 0, 100, 4, 10000, 12000, 8000, 12000, 11, 64944, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Chamber Overseer - Cast Staggering Roar 25');
    
    -- Storm Tempered Keeper
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` IN (33722, 33699);
    UPDATE `creature_template` SET `spell1` = 63541, `spell2` = 63630, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` IN (33723, 33700);
    DELETE FROM `smart_scripts` WHERE `entryorguid` IN (33722, 33699);
    INSERT INTO `smart_scripts` VALUES 
    (33722, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 75, 63630, 33699, 0, 0, 0, 0, 11, 33699, 50, 0, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Vengeful Surge on death'),
    (33722, 0, 1, 0, 0, 0, 100, 0, 3000, 6000, 10000, 15000, 11, 63541, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Forked Lightning'),
    (33722, 0, 2, 0, 0, 0, 100, 0, 3000, 3000, 3000, 3000, 11, 63539, 0, 0, 0, 0, 0, 9, 33699, 15, 50, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Separation Anxiety if separated'),
    (33699, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 75, 63630, 33722, 0, 0, 0, 0, 11, 33722, 50, 0, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Vengeful Surge on death'),
    (33699, 0, 1, 0, 0, 0, 100, 0, 3000, 6000, 10000, 15000, 11, 63541, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Forked Lightning'),
    (33699, 0, 2, 0, 0, 0, 100, 0, 3000, 3000, 3000, 3000, 11, 63539, 0, 0, 0, 0, 0, 9, 33722, 15, 50, 0, 0, 0, 0,'Storm Tempered Keeper - Cast Separation Anxiety if separated');
    
    -- Champion of Hodir
    UPDATE `creature_template` SET `spell1` = 64639, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34133;
    UPDATE `creature_template` SET `spell1` = 64652, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34139;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34133);
    INSERT INTO `smart_scripts` VALUES 
    (34133, 0, 0, 0, 0, 0, 100, 2, 3000, 6000, 12000, 16000, 11, 64639, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Champion of Hodir - Cast Stomp 10'),
    (34133, 0, 1, 0, 0, 0, 100, 4, 3000, 6000, 12000, 16000, 11, 64652, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Champion of Hodir - Cast Stomp 25');
    
    -- Winter Jormungar
    UPDATE `creature_template` SET `spell1` = 64638, `AIName` = 'SmartAI' WHERE `entry` = 34137;
    UPDATE `creature_template` SET `spell1` = 64638 WHERE `entry` = 34140;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34137);
    INSERT INTO `smart_scripts` VALUES 
    (34137, 0, 0, 0, 0, 0, 100, 0, 3000, 6000, 6000, 9000, 11, 64638, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Winter Jormungar - Cast Acidic Bite');
    
    -- Winter Revenant
    UPDATE `creature_template` SET `spell1` = 64642, `spell2` = 64643, `spell3` = 64644, `mechanic_immune_mask` = 33554496, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 34134;
    UPDATE `creature_template` SET `spell1` = 64653, `spell2` = 64643, `spell3` = 64644, `mechanic_immune_mask` = 33554496, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 34141;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34134);
    INSERT INTO `smart_scripts` VALUES 
    (34134, 0, 0, 0, 0, 0, 100, 2, 8000, 12000, 15000, 20000, 11, 64642, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Winter Revenant - Cast Blizzard 10'),
    (34134, 0, 1, 0, 0, 0, 100, 4, 8000, 12000, 15000, 20000, 11, 64653, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Winter Revenant - Cast Blizzard 25'),
    (34134, 0, 2, 0, 0, 0, 100, 0, 3000, 5000, 10000, 12000, 11, 64643, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Winter Revenant - Cast Whirling Strike'),
    (34134, 0, 3, 0, 0, 0, 100, 0, 15000, 20000, 60000, 75000, 11, 64644, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Winter Revenant - Cast Shield of the Winter Revenant');
    
    -- Winter Rumbler
    UPDATE `creature_template` SET `spell1` = 64645, `spell2` = 64647, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 34135;
    UPDATE `creature_template` SET `spell1` = 64645, `spell2` = 64654, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34142;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34135);
    INSERT INTO `smart_scripts` VALUES 
    (34135, 0, 0, 0, 0, 0, 100, 0, 6000, 12000, 10000, 16000, 11, 64645, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Winter Rumbler - Cast Cone of Cold'),
    (34135, 0, 1, 0, 0, 0, 100, 2, 3000, 6000, 8000, 12000, 11, 64647, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Winter Rumbler - Cast Snow Blindness 10'),
    (34135, 0, 2, 0, 0, 0, 100, 4, 3000, 6000, 8000, 12000, 11, 64654, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Winter Rumbler - Cast Snow Blindness 25');
    
    -- Guardian Lasher
    UPDATE `creature_template` SET `spell1` = 63007, `spell2` = 63047, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 33430;
    UPDATE `creature_template` SET `spell1` = 63007, `spell2` = 63550, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33732;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33430);
    INSERT INTO `smart_scripts` VALUES 
    (33430, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 75, 63007, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Guardian Lasher - Cast Guardian Pheromones on aggro'),
    (33430, 0, 1, 0, 0, 0, 100, 2, 3000, 6000, 8000, 12000, 11, 63047, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Guardian Lasher - Cast Guardian''s Lash 10'),
    (33430, 0, 2, 0, 0, 0, 100, 4, 3000, 6000, 8000, 12000, 11, 63550, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Guardian Lasher - Cast Guardian''s Lash 25');
    
    -- Forest Swarmer
    UPDATE `creature_template` SET `spell1` = 63059, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33431;
    UPDATE `creature_template` SET `spell1` = 63059, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33731;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33431);
    INSERT INTO `smart_scripts` VALUES 
    (33431, 0, 0, 0, 0, 0, 100, 0, 3000, 9000, 10000, 20000, 11, 63059, 0, 0, 0, 0, 0, 11, 33430, 40, 0, 0, 0, 0, 0,'Forest Swarmer - Cast Pollinate');
    DELETE FROM conditions WHERE SourceEntry = 63059;
    
    -- Guardian of Life
    UPDATE `creature_template` SET `spell1` = 63226, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33528;
    UPDATE `creature_template` SET `spell1` = 63551, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33733;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33528);
    INSERT INTO `smart_scripts` VALUES 
    (33528, 0, 0, 0, 0, 0, 100, 2, 3000, 9000, 15000, 20000, 11, 63226, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Guardian of Life - Cast Poison Breath 10'),
    (33528, 0, 1, 0, 0, 0, 100, 4, 3000, 9000, 15000, 20000, 11, 63551, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Guardian of Life - Cast Poison Breath 25');
    
    -- Nature's Blade
    UPDATE `creature_template` SET `spell1` = 63247, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33527;
    UPDATE `creature_template` SET `spell1` = 63568, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33741;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33527);
    INSERT INTO `smart_scripts` VALUES 
    (33527, 0, 0, 0, 0, 0, 100, 2, 3000, 9000, 18000, 24000, 11, 63247, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Nature Blade - Cast Living Tsunami 10'),
    (33527, 0, 1, 0, 0, 0, 100, 4, 3000, 9000, 18000, 24000, 11, 63568, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Nature Blade - Cast Living Tsunami 25');
    
    -- Ironroot Lasher
    UPDATE `creature_template` SET `spell1` = 63240, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33526;
    UPDATE `creature_template` SET `spell1` = 63553, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33734;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33526);
    INSERT INTO `smart_scripts` VALUES 
    (33526, 0, 0, 0, 0, 0, 100, 2, 3000, 8000, 12000, 16000, 11, 63240, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Ironroot Lasher - Cast Ironroot Thorns 10'),
    (33526, 0, 1, 0, 0, 0, 100, 4, 3000, 8000, 12000, 16000, 11, 63553, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Ironroot Lasher - Cast Ironroot Thorns 25');
    
    -- Mangrove Ent
    UPDATE `creature_template` SET `spell1` = 63272, `spell2` = 63242, `spell3` = 63241, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33525;
    UPDATE `creature_template` SET `spell1` = 63272, `spell2` = 63556, `spell3` = 63554, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33735;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33525);
    INSERT INTO `smart_scripts` VALUES 
    (33525, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 16000, 20000, 11, 63272, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Mangrove Ent - Cast Hurricane'),
    (33525, 0, 1, 0, 0, 0, 100, 2, 4000, 6000, 12000, 16000, 11, 63242, 0, 0, 0, 0, 0, 11, 0, 30, 0, 0, 0, 0, 0,'Mangrove Ent - Cast Nourish 10'),
    (33525, 0, 2, 0, 0, 0, 100, 4, 4000, 6000, 12000, 16000, 11, 63556, 0, 0, 0, 0, 0, 11, 0, 30, 0, 0, 0, 0, 0,'Mangrove Ent - Cast Nourish 25'),
    (33525, 0, 3, 0, 0, 0, 100, 2, 20000, 25000, 20000, 25000, 11, 63241, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Mangrove Ent - Cast Tranquility 10'),
    (33525, 0, 4, 0, 0, 0, 100, 4, 20000, 25000, 20000, 25000, 11, 63554, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Mangrove Ent - Cast Tranquility 25');
    
    -- Misguided Nymph
    UPDATE `creature_template` SET `spell1` = 63082, `spell2` = 63111, `spell3` = 63136, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33355;
    UPDATE `creature_template` SET `spell1` = 63559, `spell2` = 63562, `spell3` = 63564, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33737;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33355);
    INSERT INTO `smart_scripts` VALUES 
    (33355, 0, 0, 0, 0, 0, 100, 2, 8000, 12000, 16000, 20000, 11, 63082, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Bind Life 10'),
    (33355, 0, 1, 0, 0, 0, 100, 4, 8000, 12000, 16000, 20000, 11, 63559, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Bind Life 25'),
    (33355, 0, 2, 0, 0, 0, 100, 2, 4000, 6000, 12000, 16000, 11, 63111, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Frost Spear 10'),
    (33355, 0, 3, 0, 0, 0, 100, 4, 4000, 6000, 12000, 16000, 11, 63562, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Frost Spear 25'),
    (33355, 0, 4, 0, 0, 0, 100, 2, 15000, 20000, 15000, 20000, 11, 63136, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Winter''s Embrace 10'),
    (33355, 0, 5, 0, 0, 0, 100, 4, 15000, 20000, 15000, 20000, 11, 63564, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Misguided Nymph - Cast Winter''s Embrace 25');
    
    -- Corrupted Servitor
    UPDATE `creature_template` SET `spell1` = 63169, `spell2` = 63149, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 33354;
    UPDATE `creature_template` SET `spell1` = 63549, `spell2` = 63149, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 33729;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33354);
    INSERT INTO `smart_scripts` VALUES 
    (33354, 0, 0, 0, 0, 0, 100, 2, 2000, 4000, 16000, 20000, 11, 63169, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Corrupted Servitor - Cast Petrify Joints 10'),
    (33354, 0, 1, 0, 0, 0, 100, 4, 2000, 4000, 16000, 20000, 11, 63549, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Corrupted Servitor - Cast Petrify Joints 25'),
    (33354, 0, 2, 0, 0, 0, 100, 0, 6000, 8000, 12000, 16000, 11, 63149, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Corrupted Servitor - Cast Violent Earth');
    
    -- Arachnopod Destroyer
    UPDATE `creature_template` SET `spell1` = 64717, `spell2` = 64776, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 34183;
    UPDATE `creature_template` SET `spell1` = 64717, `spell2` = 64776, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34214;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34183);
    INSERT INTO `smart_scripts` VALUES 
    (34183, 0, 0, 0, 0, 0, 100, 0, 2000, 4000, 12000, 16000, 11, 64717, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Arachnopod Destroyer - Cast Flame Spray'),
    (34183, 0, 1, 0, 0, 0, 100, 0, 8000, 10000, 12000, 16000, 11, 64776, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Arachnopod Destroyer - Cast Machine Gun');
    
    -- Boomer XP-500
    UPDATE `creature_template` SET `spell1` = 55714, `AIName` = 'SmartAI' WHERE `entry` = 34192;
    UPDATE `creature_template` SET `spell1` = 55714 WHERE `entry` = 34216;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34192);
    INSERT INTO `smart_scripts` VALUES 
    (34192, 0, 0, 0, 9, 0, 100, 0, 0, 2, 1000, 1000, 11, 55714, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Boomer XP-500 - Explode');
    
    -- Clockwork Sapper
    UPDATE `creature_template` SET `spell1` = 64740, `mingold` = 7100, `maxgold` = 7600, `mechanic_immune_mask` = 33554496, `AIName` = 'SmartAI' WHERE `entry` = 34193;
    UPDATE `creature_template` SET `spell1` = 64740, `mingold` = 14200, `maxgold` = 15600, `mechanic_immune_mask` = 33554496 WHERE `entry` = 34220;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=34193);
    INSERT INTO `smart_scripts` VALUES 
    (34193, 0, 0, 0, 0, 0, 100, 0, 2000, 6000, 12000, 16000, 11, 64740, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Clockwork Sapper - Cast Energy Sap');
    
    -- Twilight Adherent
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63760, `spell3` = 13704, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33818;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63760, `spell3` = 13704, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33827;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33818);
    INSERT INTO `smart_scripts` VALUES 
    (33818, 0, 0, 0, 0, 0, 100, 0, 10000, 16000, 16000, 20000, 11, 64663, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Adherent - Cast Arcane Burst'),
    (33818, 0, 1, 0, 0, 0, 100, 0, 8000, 10000, 16000, 20000, 11, 63760, 0, 0, 0, 0, 0, 11, 0, 30, 0, 0, 0, 0, 0,'Twilight Adherent - Cast Greater Heal'),
    (33818, 0, 2, 0, 0, 0, 100, 0, 2000, 4000, 15000, 18000, 11, 13704, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Adherent - Cast Psychic Scream');
    
    -- Twilight Guardian
    UPDATE `creature_template` SET `spell1` = 52719, `spell2` = 62317, `spell3` = 63757, `mechanic_immune_mask` = 33554513, `equipment_id` = 1852, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33822;
    UPDATE `creature_template` SET `spell1` = 52719, `spell2` = 62317, `spell3` = 63757, `mechanic_immune_mask` = 33554513, `equipment_id` = 1852, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33828;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33822);
    INSERT INTO `smart_scripts` VALUES 
    (33822, 0, 0, 0, 0, 0, 100, 0, 6000, 10000, 8000, 10000, 11, 52719, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Twilight Guardian - Cast Concussion Blow'),
    (33822, 0, 1, 0, 0, 0, 100, 0, 2000, 3000, 3000, 6000, 11, 62317, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Twilight Guardian - Cast Devastate'),
    (33822, 0, 2, 0, 0, 0, 100, 0, 8000, 10000, 14000, 16000, 11, 63757, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Guardian - Cast Thunderclap');
    
    -- Twilight Shadowblade
    UPDATE `creature_template` SET `spell1` = 63753, `mechanic_immune_mask` = 33554513,  `equipment_id` = 1862, `baseattacktime` = 1000, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33824;
    UPDATE `creature_template` SET `spell1` = 63753, `mechanic_immune_mask` = 33554513,  `equipment_id` = 1862, `baseattacktime` = 1000, `mingold` = 7100, `maxgold` = 7600 WHERE `entry` = 33831;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33824);
    INSERT INTO `smart_scripts` VALUES 
    (33824, 0, 0, 0, 0, 0, 100, 0, 6000, 8000, 12000, 16000, 11, 63753, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Shadowblade - Cast Fan of Knives');
    
    -- Twilight Slayer
    UPDATE `creature_template` SET `spell1` = 63784, `spell2` = 35054, `mechanic_immune_mask` = 33554513, `equipment_id` = 1847, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33823;
    UPDATE `creature_template` SET `spell1` = 63784, `spell2` = 35054, `mechanic_immune_mask` = 33554513, `equipment_id` = 1847, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33832;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33823);
    INSERT INTO `smart_scripts` VALUES 
    (33823, 0, 0, 0, 0, 0, 100, 0, 3000, 6000, 12000, 16000, 11, 35054, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,'Twilight Slayer - Cast Mortal Strike'),
    (33823, 0, 1, 0, 0, 0, 100, 0, 8000, 12000, 20000, 25000, 11, 63784, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Slayer - Cast Bladestorm');
    
    UPDATE `creature_template` SET `equipment_id` = 1849 WHERE `entry` = 32885;
    UPDATE `creature_template` SET `equipment_id` = 1850 WHERE `entry` = 32908;
    
    -- Faceless Horror
    UPDATE `creature_template` SET `spell1` = 64429, `spell2` = 63722, `spell3` = 63710, `spell4` = 63703, `mechanic_immune_mask` = 33554513, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33772;
    UPDATE `creature_template` SET `spell1` = 64429, `spell2` = 63722, `spell3` = 63710, `spell4` = 63703, `mechanic_immune_mask` = 33554513, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33773;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33772);
    INSERT INTO `smart_scripts` VALUES 
    (33772, 0, 0, 0, 0, 0, 100, 0, 18000, 20000, 16000, 20000, 11, 64429, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,'Faceless Horror - Cast Death Grip'),
    (33772, 0, 1, 0, 0, 0, 100, 0, 2000, 4000, 10000, 12000, 11, 63722, 0, 0, 0, 0, 0, 17, 10, 40, 0, 0, 0, 0, 0,'Faceless Horror - Cast Shadow Crash'),
    (33772, 0, 2, 0, 4, 0, 100, 0, 0, 0, 0, 0, 75, 63703, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Faceless Horror - add aura Void Wave on aggro');
    
    -- Twilight Frost Mage
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63758, `spell3` = 63912, `spell4` = 63913, `equipment_id` = 1849, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33819;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63758, `spell3` = 63912, `spell4` = 63913, `equipment_id` = 1849, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33829;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33819);
    INSERT INTO `smart_scripts` VALUES 
    (33819, 0, 0, 0, 0, 0, 100, 0, 10000, 16000, 16000, 20000, 11, 64663, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Frost Mage - Cast Arcane Burst'),
    (33819, 0, 1, 0, 0, 0, 100, 0, 1000, 2000, 6000, 8000, 11, 63913, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Twilight Frost Mage - Cast Frostbolt'),
    (33819, 0, 2, 0, 0, 0, 100, 0, 2000, 4000, 10000, 16000, 11, 63758, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Frost Mage - Cast Frost Bolt Volley'),
    (33819, 0, 3, 0, 0, 0, 100, 0, 8000, 10000, 12000, 16000, 11, 63912, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Frost Mage - Cast Frost Nova');
    
    -- Twilight Pyromancer
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63789, `spell3` = 63775, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 7100, `maxgold` = 7600, `AIName` = 'SmartAI' WHERE `entry` = 33820;
    UPDATE `creature_template` SET `spell1` = 64663, `spell2` = 63789, `spell3` = 63775, `equipment_id` = 1848, `mechanic_immune_mask` = 33554513, `unit_class` = 2, `mingold` = 14200, `maxgold` = 15600 WHERE `entry` = 33830;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33820);
    INSERT INTO `smart_scripts` VALUES 
    (33820, 0, 0, 0, 0, 0, 100, 0, 10000, 16000, 16000, 20000, 11, 64663, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Twilight Pyromancer - Cast Arcane Burst'),
    (33820, 0, 1, 0, 0, 0, 100, 0, 1000, 2000, 6000, 8000, 11, 63789, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Twilight Pyromancer - Cast Fireball'),
    (33820, 0, 2, 0, 0, 0, 100, 0, 2000, 4000, 10000, 16000, 11, 63775, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0,'Twilight Pyromancer - Cast Flamestrike');
    
    -- Enslaved Fire Elemental
    UPDATE `creature_template` SET `spell1` = 38064, `spell2` = 63778, `mechanic_immune_mask` = 33554513, `AIName` = 'SmartAI' WHERE `entry` = 33838;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33838);
    INSERT INTO `smart_scripts` VALUES 
    (33838, 0, 0, 0, 0, 0, 100, 0, 4000, 8000, 10000, 14000, 11, 38064, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Enslaved Fire Elemental - Cast Blast Wave'),
    (33838, 0, 1, 0, 4, 0, 100, 0, 0, 0, 0, 0, 75, 63778, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Enslaved Fire Elemental - Cast Fire Shield on aggro');
    
    -- Boom Bot
    UPDATE `creature_template` SET `spell1` = 63801, `AIName` = 'SmartAI' WHERE `entry` = 33836;
    UPDATE `creature_template` SET `spell1` = 63801 WHERE `entry` = 34218;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33836);
    INSERT INTO `smart_scripts` VALUES 
    (33836, 0, 0, 0, 9, 0, 100, 0, 0, 2, 1000, 1000, 11, 63801, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Boom Bot - Explode');
    
    -- Rubble
    UPDATE `creature_template` SET `spell1` = 38064, `AIName` = 'SmartAI' WHERE `entry` = 33768;
    UPDATE `creature_template` SET `spell1` = 63978 WHERE `entry` = 33908;
    DELETE FROM `smart_scripts` WHERE (`entryorguid`=33768);
    INSERT INTO `smart_scripts` VALUES 
    (33768, 0, 0, 0, 0, 0, 100, 2, 4000, 8000, 10000, 12000, 11, 38064, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Rubble - Cast Stone Nova 10'),
    (33768, 0, 1, 0, 0, 0, 100, 4, 4000, 8000, 10000, 12000, 11, 63978, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Rubble - Cast Stone Nova 25');


    ScriptLoader.cpp , see Ulduar boss line
    Spoiler untuk ScriptLoader.cpp :

    Code:
    /*
     * Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/>
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms of the GNU General Public License as published by the
     * Free Software Foundation; either version 2 of the License, or (at your
     * option) any later version.
     *
     * This program is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
     * more details.
     *
     * You should have received a copy of the GNU General Public License along
     * with this program. If not, see <http://www.gnu.org/licenses/>.
     */
    
    #include "ScriptLoader.h"
    
    
    //examples
    void AddSC_example_creature();
    void AddSC_example_escort();
    void AddSC_example_gossip_codebox();
    void AddSC_example_misc();
    void AddSC_example_commandscript();
    
    // spells
    void AddSC_deathknight_spell_scripts();
    void AddSC_druid_spell_scripts();
    void AddSC_generic_spell_scripts();
    void AddSC_hunter_spell_scripts();
    void AddSC_mage_spell_scripts();
    void AddSC_paladin_spell_scripts();
    void AddSC_priest_spell_scripts();
    void AddSC_rogue_spell_scripts();
    void AddSC_shaman_spell_scripts();
    void AddSC_warlock_spell_scripts();
    void AddSC_warrior_spell_scripts();
    void AddSC_quest_spell_scripts();
    void AddSC_item_spell_scripts();
    void AddSC_example_spell_scripts();
    
    void AddSC_SmartSCripts();
    
    //Commands
    void AddSC_account_commandscript();
    void AddSC_achievement_commandscript();
    void AddSC_debug_commandscript();
    void AddSC_event_commandscript();
    void AddSC_gm_commandscript();
    void AddSC_go_commandscript();
    void AddSC_gobject_commandscript();
    void AddSC_honor_commandscript();
    void AddSC_learn_commandscript();
    void AddSC_modify_commandscript();
    void AddSC_npc_commandscript();
    void AddSC_quest_commandscript();
    void AddSC_reload_commandscript();
    void AddSC_tele_commandscript();
    void AddSC_titles_commandscript();
    void AddSC_wp_commandscript();
    
    #ifdef SCRIPTS
    //world
    void AddSC_areatrigger_scripts();
    void AddSC_boss_emeriss();
    void AddSC_boss_taerar();
    void AddSC_boss_ysondre();
    void AddSC_generic_creature();
    void AddSC_go_scripts();
    void AddSC_guards();
    void AddSC_item_scripts();
    void AddSC_npc_professions();
    void AddSC_npc_innkeeper();
    void AddSC_npcs_special();
    void AddSC_npc_taxi();
    void AddSC_achievement_scripts();
    
    //eastern kingdoms
    void AddSC_alterac_valley();                 //Alterac Valley
    void AddSC_boss_balinda();
    void AddSC_boss_drekthar();
    void AddSC_boss_galvangar();
    void AddSC_boss_vanndar();
    void AddSC_blackrock_depths();               //Blackrock Depths
    void AddSC_boss_ambassador_flamelash();
    void AddSC_boss_anubshiah();
    void AddSC_boss_draganthaurissan();
    void AddSC_boss_general_angerforge();
    void AddSC_boss_gorosh_the_dervish();
    void AddSC_boss_grizzle();
    void AddSC_boss_high_interrogator_gerstahn();
    void AddSC_boss_magmus();
    void AddSC_boss_moira_bronzebeard();
    void AddSC_boss_tomb_of_seven();
    void AddSC_instance_blackrock_depths();
    void AddSC_boss_drakkisath();                //Blackrock Spire
    void AddSC_boss_halycon();
    void AddSC_boss_highlordomokk();
    void AddSC_boss_mothersmolderweb();
    void AddSC_boss_overlordwyrmthalak();
    void AddSC_boss_shadowvosh();
    void AddSC_boss_thebeast();
    void AddSC_boss_warmastervoone();
    void AddSC_boss_quatermasterzigris();
    void AddSC_boss_pyroguard_emberseer();
    void AddSC_boss_gyth();
    void AddSC_boss_rend_blackhand();
    void AddSC_boss_razorgore();                 //Blackwing lair
    void AddSC_boss_vael();
    void AddSC_boss_broodlord();
    void AddSC_boss_firemaw();
    void AddSC_boss_ebonroc();
    void AddSC_boss_flamegor();
    void AddSC_boss_chromaggus();
    void AddSC_boss_nefarian();
    void AddSC_boss_victor_nefarius();
    void AddSC_boss_mr_smite();
    void AddSC_deadmines();                      //Deadmines
    void AddSC_instance_deadmines();
    void AddSC_gnomeregan();                     //Gnomeregan
    void AddSC_instance_gnomeregan();
    void AddSC_boss_attumen();                   //Karazhan
    void AddSC_boss_curator();
    void AddSC_boss_maiden_of_virtue();
    void AddSC_boss_shade_of_aran();
    void AddSC_boss_malchezaar();
    void AddSC_boss_terestian_illhoof();
    void AddSC_boss_moroes();
    void AddSC_bosses_opera();
    void AddSC_boss_netherspite();
    void AddSC_instance_karazhan();
    void AddSC_karazhan();
    void AddSC_boss_nightbane();
    void AddSC_boss_felblood_kaelthas();         // Magister's Terrace
    void AddSC_boss_selin_fireheart();
    void AddSC_boss_vexallus();
    void AddSC_boss_priestess_delrissa();
    void AddSC_instance_magisters_terrace();
    void AddSC_magisters_terrace();
    void AddSC_boss_lucifron();                  //Molten core
    void AddSC_boss_magmadar();
    void AddSC_boss_gehennas();
    void AddSC_boss_garr();
    void AddSC_boss_baron_geddon();
    void AddSC_boss_shazzrah();
    void AddSC_boss_golemagg();
    void AddSC_boss_sulfuron();
    void AddSC_boss_majordomo();
    void AddSC_boss_ragnaros();
    void AddSC_instance_molten_core();
    void AddSC_molten_core();
    void AddSC_the_scarlet_enclave();            //Scarlet Enclave
    void AddSC_the_scarlet_enclave_c1();
    void AddSC_the_scarlet_enclave_c2();
    void AddSC_the_scarlet_enclave_c5();
    void AddSC_boss_arcanist_doan();             //Scarlet Monastery
    void AddSC_boss_azshir_the_sleepless();
    void AddSC_boss_bloodmage_thalnos();
    void AddSC_boss_headless_horseman();
    void AddSC_boss_herod();
    void AddSC_boss_high_inquisitor_fairbanks();
    void AddSC_boss_houndmaster_loksey();
    void AddSC_boss_interrogator_vishas();
    void AddSC_boss_scorn();
    void AddSC_instance_scarlet_monastery();
    void AddSC_boss_mograine_and_whitemane();
    void AddSC_boss_darkmaster_gandling();       //Scholomance
    void AddSC_boss_death_knight_darkreaver();
    void AddSC_boss_theolenkrastinov();
    void AddSC_boss_illuciabarov();
    void AddSC_boss_instructormalicia();
    void AddSC_boss_jandicebarov();
    void AddSC_boss_kormok();
    void AddSC_boss_lordalexeibarov();
    void AddSC_boss_lorekeeperpolkelt();
    void AddSC_boss_rasfrost();
    void AddSC_boss_theravenian();
    void AddSC_boss_vectus();
    void AddSC_instance_scholomance();
    void AddSC_shadowfang_keep();                //Shadowfang keep
    void AddSC_instance_shadowfang_keep();
    void AddSC_boss_magistrate_barthilas();      //Stratholme
    void AddSC_boss_maleki_the_pallid();
    void AddSC_boss_nerubenkan();
    void AddSC_boss_cannon_master_willey();
    void AddSC_boss_baroness_anastari();
    void AddSC_boss_ramstein_the_gorger();
    void AddSC_boss_timmy_the_cruel();
    void AddSC_boss_postmaster_malown();
    void AddSC_boss_baron_rivendare();
    void AddSC_boss_dathrohan_balnazzar();
    void AddSC_boss_order_of_silver_hand();
    void AddSC_instance_stratholme();
    void AddSC_stratholme();
    void AddSC_sunken_temple();                  // Sunken Temple
    void AddSC_instance_sunken_temple();
    void AddSC_instance_sunwell_plateau();       //Sunwell Plateau
    void AddSC_boss_kalecgos();
    void AddSC_boss_brutallus();
    void AddSC_boss_felmyst();
    void AddSC_boss_eredar_twins();
    void AddSC_boss_muru();
    void AddSC_boss_kiljaeden();
    void AddSC_sunwell_plateau();
    void AddSC_boss_archaedas();                 //Uldaman
    void AddSC_boss_ironaya();
    void AddSC_uldaman();
    void AddSC_instance_uldaman();
    void AddSC_boss_akilzon();                   //Zul'Aman
    void AddSC_boss_halazzi();
    void AddSC_boss_hex_lord_malacrass();
    void AddSC_boss_janalai();
    void AddSC_boss_nalorakk();
    void AddSC_boss_zuljin();
    void AddSC_instance_zulaman();
    void AddSC_zulaman();
    void AddSC_boss_jeklik();                    //Zul'Gurub
    void AddSC_boss_venoxis();
    void AddSC_boss_marli();
    void AddSC_boss_mandokir();
    void AddSC_boss_gahzranka();
    void AddSC_boss_thekal();
    void AddSC_boss_arlokk();
    void AddSC_boss_jindo();
    void AddSC_boss_hakkar();
    void AddSC_boss_grilek();
    void AddSC_boss_hazzarah();
    void AddSC_boss_renataki();
    void AddSC_boss_wushoolay();
    void AddSC_instance_zulgurub();
    
    //void AddSC_alterac_mountains();
    void AddSC_arathi_highlands();
    void AddSC_blasted_lands();
    void AddSC_boss_kruul();
    void AddSC_burning_steppes();
    void AddSC_dun_morogh();
    void AddSC_duskwood();
    void AddSC_eastern_plaguelands();
    void AddSC_elwynn_forest();
    void AddSC_eversong_woods();
    void AddSC_ghostlands();
    void AddSC_hinterlands();
    void AddSC_ironforge();
    void AddSC_isle_of_queldanas();
    void AddSC_loch_modan();
    void AddSC_redridge_mountains();
    void AddSC_searing_gorge();
    void AddSC_silvermoon_city();
    void AddSC_silverpine_forest();
    void AddSC_stormwind_city();
    void AddSC_stranglethorn_vale();
    void AddSC_swamp_of_sorrows();
    void AddSC_tirisfal_glades();
    void AddSC_undercity();
    void AddSC_western_plaguelands();
    void AddSC_westfall();
    void AddSC_wetlands();
    
    //kalimdor
    void AddSC_blackfathom_deeps();              //Blackfathom Depths
    void AddSC_boss_gelihast();
    void AddSC_boss_kelris();
    void AddSC_boss_aku_mai();
    void AddSC_instance_blackfathom_deeps();
    void AddSC_hyjal();                          //CoT Battle for Mt. Hyjal
    void AddSC_boss_archimonde();
    void AddSC_instance_mount_hyjal();
    void AddSC_hyjal_trash();
    void AddSC_boss_rage_winterchill();
    void AddSC_boss_anetheron();
    void AddSC_boss_kazrogal();
    void AddSC_boss_azgalor();
    void AddSC_boss_captain_skarloc();           //CoT Old Hillsbrad
    void AddSC_boss_epoch_hunter();
    void AddSC_boss_lieutenant_drake();
    void AddSC_instance_old_hillsbrad();
    void AddSC_old_hillsbrad();
    void AddSC_boss_aeonus();                    //CoT The Dark Portal
    void AddSC_boss_chrono_lord_deja();
    void AddSC_boss_temporus();
    void AddSC_dark_portal();
    void AddSC_instance_dark_portal();
    void AddSC_boss_epoch();                     //CoT Culling Of Stratholme
    void AddSC_boss_infinite_corruptor();
    void AddSC_boss_salramm();
    void AddSC_boss_mal_ganis();
    void AddSC_boss_meathook();
    void AddSC_culling_of_stratholme();
    void AddSC_instance_culling_of_stratholme();
    void AddSC_boss_celebras_the_cursed();       //Maraudon
    void AddSC_boss_landslide();
    void AddSC_boss_noxxion();
    void AddSC_boss_ptheradras();
    void AddSC_boss_onyxia();                    //Onyxia's Lair
    void AddSC_instance_onyxias_lair();
    void AddSC_boss_amnennar_the_coldbringer();  //Razorfen Downs
    void AddSC_razorfen_downs();
    void AddSC_instance_razorfen_downs();
    void AddSC_razorfen_kraul();                 //Razorfen Kraul
    void AddSC_boss_kurinnaxx();                 //Ruins of ahn'qiraj
    void AddSC_boss_rajaxx();
    void AddSC_boss_moam();
    void AddSC_boss_buru();
    void AddSC_boss_ayamiss();
    void AddSC_boss_ossirian();
    void AddSC_instance_ruins_of_ahnqiraj();
    void AddSC_boss_cthun();                     //Temple of ahn'qiraj
    void AddSC_boss_fankriss();
    void AddSC_boss_huhuran();
    void AddSC_bug_trio();
    void AddSC_boss_sartura();
    void AddSC_boss_skeram();
    void AddSC_boss_twinemperors();
    void AddSC_mob_anubisath_sentinel();
    void AddSC_instance_temple_of_ahnqiraj();
    void AddSC_wailing_caverns();                //Wailing caverns
    void AddSC_instance_wailing_caverns();
    void AddSC_zulfarrak();                     //Zul'Farrak generic
    void AddSC_instance_zulfarrak();            //Zul'Farrak instance script
    
    void AddSC_ashenvale();
    void AddSC_azshara();
    void AddSC_azuremyst_isle();
    void AddSC_bloodmyst_isle();
    void AddSC_boss_azuregos();
    void AddSC_darkshore();
    void AddSC_desolace();
    void AddSC_durotar();
    void AddSC_dustwallow_marsh();
    void AddSC_felwood();
    void AddSC_feralas();
    void AddSC_moonglade();
    void AddSC_mulgore();
    void AddSC_orgrimmar();
    void AddSC_silithus();
    void AddSC_stonetalon_mountains();
    void AddSC_tanaris();
    void AddSC_teldrassil();
    void AddSC_the_barrens();
    void AddSC_thousand_needles();
    void AddSC_thunder_bluff();
    void AddSC_ungoro_crater();
    void AddSC_winterspring();
    
    //northrend
    void AddSC_boss_slad_ran();
    void AddSC_boss_moorabi();
    void AddSC_boss_drakkari_colossus();
    void AddSC_boss_gal_darah();
    void AddSC_boss_eck();
    void AddSC_instance_gundrak();
    void AddSC_boss_krik_thir();             //Azjol-Nerub
    void AddSC_boss_hadronox();
    void AddSC_boss_anub_arak();
    void AddSC_instance_azjol_nerub();
    void AddSC_instance_ahnkahet();          //Azjol-Nerub Ahn'kahet
    void AddSC_boss_amanitar();
    void AddSC_boss_taldaram();
    void AddSC_boss_jedoga_shadowseeker();
    void AddSC_boss_elder_nadox();
    void AddSC_boss_volazj();
    void AddSC_boss_argent_challenge();      //Trial of the Champion
    void AddSC_boss_black_knight();
    void AddSC_boss_grand_champions();
    void AddSC_instance_trial_of_the_champion();
    void AddSC_trial_of_the_champion();
    void AddSC_boss_anubarak_trial();        //Trial of the Crusader
    void AddSC_boss_faction_champions();
    void AddSC_boss_jaraxxus();
    void AddSC_boss_northrend_beasts();
    void AddSC_boss_twin_valkyr();
    void AddSC_trial_of_the_crusader();
    void AddSC_instance_trial_of_the_crusader();
    void AddSC_boss_anubrekhan();            //Naxxramas
    void AddSC_boss_maexxna();
    void AddSC_boss_patchwerk();
    void AddSC_boss_grobbulus();
    void AddSC_boss_razuvious();
    void AddSC_boss_kelthuzad();
    void AddSC_boss_loatheb();
    void AddSC_boss_noth();
    void AddSC_boss_gluth();
    void AddSC_boss_sapphiron();
    void AddSC_boss_four_horsemen();
    void AddSC_boss_faerlina();
    void AddSC_boss_heigan();
    void AddSC_boss_gothik();
    void AddSC_boss_thaddius();
    void AddSC_instance_naxxramas();
    void AddSC_boss_magus_telestra();        //The Nexus Nexus
    void AddSC_boss_anomalus();
    void AddSC_boss_ormorok();
    void AddSC_boss_keristrasza();
    void AddSC_instance_nexus();
    void AddSC_boss_drakos();                //The Nexus The Oculus
    void AddSC_boss_urom();
    void AddSC_instance_oculus();
    void AddSC_oculus();
    void AddSC_boss_sartharion();            //Obsidian Sanctum
    void AddSC_instance_obsidian_sanctum();
    void AddSC_boss_bjarngrim();             //Ulduar Halls of Lightning
    void AddSC_boss_loken();
    void AddSC_boss_ionar();
    void AddSC_boss_volkhan();
    void AddSC_instance_halls_of_lightning();
    void AddSC_boss_maiden_of_grief();       //Ulduar Halls of Stone
    void AddSC_boss_krystallus();
    void AddSC_boss_sjonnir();
    void AddSC_instance_halls_of_stone();
    void AddSC_halls_of_stone();
    void AddSC_boss_algalon();               //Ulduar Ulduar
    void AddSC_boss_assembly_of_iron();
    void AddSC_boss_auriaya();
    void AddSC_boss_flame_leviathan();
    void AddSC_boss_freya();
    void AddSC_boss_general_vezax();
    void AddSC_boss_hodir();
    void AddSC_boss_ignis();
    void AddSC_boss_kologarn();
    void AddSC_boss_mimiron();
    void AddSC_boss_razorscale();
    void AddSC_boss_thorim();
    void AddSC_boss_xt002();
    void AddSC_boss_yoggsaron();
    void AddSC_ulduar_teleporter();
    void AddSC_instance_ulduar();
    void AddSC_boss_keleseth();              //Utgarde Keep
    void AddSC_boss_skarvald_dalronn();
    void AddSC_boss_ingvar_the_plunderer();
    void AddSC_instance_utgarde_keep();
    void AddSC_boss_svala();                 //Utgarde Pinnacle
    void AddSC_boss_palehoof();
    void AddSC_boss_skadi();
    void AddSC_boss_ymiron();
    void AddSC_instance_utgarde_pinnacle();
    void AddSC_utgarde_keep();
    void AddSC_boss_archavon();              //Vault of Archavon
    void AddSC_boss_emalon();
    void AddSC_boss_koralon();
    void AddSC_boss_toravon();
    void AddSC_instance_archavon();
    void AddSC_boss_trollgore();             //Drak'Tharon Keep
    void AddSC_boss_novos();
    void AddSC_boss_dred();
    void AddSC_boss_tharon_ja();
    void AddSC_instance_drak_tharon();
    void AddSC_boss_cyanigosa();             //Violet Hold
    void AddSC_boss_erekem();
    void AddSC_boss_ichoron();
    void AddSC_boss_lavanthor();
    void AddSC_boss_moragg();
    void AddSC_boss_xevozz();
    void AddSC_boss_zuramat();
    void AddSC_instance_violet_hold();
    void AddSC_violet_hold();
    void AddSC_instance_forge_of_souls();   //Forge of Souls
    void AddSC_forge_of_souls();
    void AddSC_boss_bronjahm();
    void AddSC_boss_devourer_of_souls();
    void AddSC_instance_pit_of_saron();     //Pit of Saron
    void AddSC_pit_of_saron();
    void AddSC_boss_garfrost();
    void AddSC_boss_ick();
    void AddSC_boss_tyrannus();
    void AddSC_instance_halls_of_reflection();   // Halls of Reflection
    void AddSC_halls_of_reflection();
    void AddSC_boss_falric();
    void AddSC_boss_marwyn();
    void AddSC_boss_lord_marrowgar();       // Icecrown Citadel
    void AddSC_boss_lady_deathwhisper();
    void AddSC_boss_deathbringer_saurfang();
    void AddSC_boss_festergut();
    void AddSC_boss_rotface();
    void AddSC_boss_professor_putricide();
    void AddSC_boss_blood_prince_council();
    void AddSC_boss_blood_queen_lana_thel();
    void AddSC_icecrown_citadel_teleport();
    void AddSC_instance_icecrown_citadel();
    
    void AddSC_dalaran();
    void AddSC_borean_tundra();
    void AddSC_dragonblight();
    void AddSC_grizzly_hills();
    void AddSC_howling_fjord();
    void AddSC_icecrown();
    void AddSC_sholazar_basin();
    void AddSC_storm_peaks();
    void AddSC_zuldrak();
    void AddSC_crystalsong_forest();
    
    //outland
    void AddSC_boss_exarch_maladaar();           //Auchindoun Auchenai Crypts
    void AddSC_boss_shirrak_the_dead_watcher();
    void AddSC_boss_nexusprince_shaffar();       //Auchindoun Mana Tombs
    void AddSC_boss_pandemonius();
    void AddSC_boss_darkweaver_syth();           //Auchindoun Sekketh Halls
    void AddSC_boss_talon_king_ikiss();
    void AddSC_instance_sethekk_halls();
    void AddSC_instance_shadow_labyrinth();      //Auchindoun Shadow Labyrinth
    void AddSC_boss_ambassador_hellmaw();
    void AddSC_boss_blackheart_the_inciter();
    void AddSC_boss_grandmaster_vorpil();
    void AddSC_boss_murmur();
    void AddSC_black_temple();                   //Black Temple
    void AddSC_boss_illidan();
    void AddSC_boss_shade_of_akama();
    void AddSC_boss_supremus();
    void AddSC_boss_gurtogg_bloodboil();
    void AddSC_boss_mother_shahraz();
    void AddSC_boss_reliquary_of_souls();
    void AddSC_boss_teron_gorefiend();
    void AddSC_boss_najentus();
    void AddSC_boss_illidari_council();
    void AddSC_instance_black_temple();
    void AddSC_boss_fathomlord_karathress();     //CR Serpent Shrine Cavern
    void AddSC_boss_hydross_the_unstable();
    void AddSC_boss_lady_vashj();
    void AddSC_boss_leotheras_the_blind();
    void AddSC_boss_morogrim_tidewalker();
    void AddSC_instance_serpentshrine_cavern();
    void AddSC_boss_the_lurker_below();
    void AddSC_boss_hydromancer_thespia();       //CR Steam Vault
    void AddSC_boss_mekgineer_steamrigger();
    void AddSC_boss_warlord_kalithresh();
    void AddSC_instance_steam_vault();
    void AddSC_boss_hungarfen();                 //CR Underbog
    void AddSC_boss_the_black_stalker();
    void AddSC_boss_gruul();                     //Gruul's Lair
    void AddSC_boss_high_king_maulgar();
    void AddSC_instance_gruuls_lair();
    void AddSC_boss_broggok();                   //HC Blood Furnace
    void AddSC_boss_kelidan_the_breaker();
    void AddSC_boss_the_maker();
    void AddSC_instance_blood_furnace();
    void AddSC_boss_magtheridon();               //HC Magtheridon's Lair
    void AddSC_instance_magtheridons_lair();
    void AddSC_boss_grand_warlock_nethekurse();  //HC Shattered Halls
    void AddSC_boss_warbringer_omrogg();
    void AddSC_boss_warchief_kargath_bladefist();
    void AddSC_instance_shattered_halls();
    void AddSC_boss_watchkeeper_gargolmar();     //HC Ramparts
    void AddSC_boss_omor_the_unscarred();
    void AddSC_boss_vazruden_the_herald();
    void AddSC_instance_ramparts();
    void AddSC_arcatraz();                       //TK Arcatraz
    void AddSC_boss_harbinger_skyriss();
    void AddSC_instance_arcatraz();
    void AddSC_boss_high_botanist_freywinn();    //TK Botanica
    void AddSC_boss_laj();
    void AddSC_boss_warp_splinter();
    void AddSC_boss_alar();                      //TK The Eye
    void AddSC_boss_kaelthas();
    void AddSC_boss_void_reaver();
    void AddSC_boss_high_astromancer_solarian();
    void AddSC_instance_the_eye();
    void AddSC_the_eye();
    void AddSC_boss_gatewatcher_iron_hand();     //TK The Mechanar
    void AddSC_boss_nethermancer_sepethrea();
    void AddSC_boss_pathaleon_the_calculator();
    void AddSC_instance_mechanar();
    
    void AddSC_blades_edge_mountains();
    void AddSC_boss_doomlordkazzak();
    void AddSC_boss_doomwalker();
    void AddSC_hellfire_peninsula();
    void AddSC_nagrand();
    void AddSC_netherstorm();
    void AddSC_shadowmoon_valley();
    void AddSC_shattrath_city();
    void AddSC_terokkar_forest();
    void AddSC_zangarmarsh();
    
    // battlegrounds
    
    // outdoor pvp
    void AddSC_outdoorpvp_ep();
    void AddSC_outdoorpvp_hp();
    void AddSC_outdoorpvp_na();
    void AddSC_outdoorpvp_si();
    void AddSC_outdoorpvp_tf();
    void AddSC_outdoorpvp_zm();
    
    // player
    void AddSC_chat_log();
    
    #endif
    
    void AddScripts()
    {
        AddExampleScripts();
        AddSpellScripts();
        AddSC_SmartSCripts();
        AddCommandScripts();
    #ifdef SCRIPTS
        AddWorldScripts();
        AddEasternKingdomsScripts();
        AddKalimdorScripts();
        AddOutlandScripts();
        AddNorthrendScripts();
        AddBattlegroundScripts();
        AddOutdoorPvPScripts();
        AddCustomScripts();
    #endif
    }
    
    void AddExampleScripts()
    {
        AddSC_example_creature();
        AddSC_example_escort();
        AddSC_example_gossip_codebox();
        AddSC_example_misc();
        AddSC_example_commandscript();
    }
    
    void AddSpellScripts()
    {
        AddSC_deathknight_spell_scripts();
        AddSC_druid_spell_scripts();
        AddSC_generic_spell_scripts();
        AddSC_hunter_spell_scripts();
        AddSC_mage_spell_scripts();
        AddSC_paladin_spell_scripts();
        AddSC_priest_spell_scripts();
        AddSC_rogue_spell_scripts();
        AddSC_shaman_spell_scripts();
        AddSC_warlock_spell_scripts();
        AddSC_warrior_spell_scripts();
        AddSC_quest_spell_scripts();
        AddSC_item_spell_scripts();
        AddSC_example_spell_scripts();
    }
    
    void AddCommandScripts()
    {
        AddSC_account_commandscript();
        AddSC_achievement_commandscript();
        AddSC_debug_commandscript();
        AddSC_event_commandscript();
        AddSC_gm_commandscript();
        AddSC_go_commandscript();
        AddSC_gobject_commandscript();
        AddSC_honor_commandscript();
        AddSC_learn_commandscript();
        AddSC_modify_commandscript();
        AddSC_npc_commandscript();
        AddSC_quest_commandscript();
        AddSC_reload_commandscript();
        AddSC_tele_commandscript();
        AddSC_titles_commandscript();
        AddSC_wp_commandscript();
    }
    
    void AddWorldScripts()
    {
    #ifdef SCRIPTS
        AddSC_areatrigger_scripts();
        AddSC_boss_emeriss();
        AddSC_boss_taerar();
        AddSC_boss_ysondre();
        AddSC_generic_creature();
        AddSC_go_scripts();
        AddSC_guards();
        AddSC_item_scripts();
        AddSC_npc_professions();
        AddSC_npc_innkeeper();
        AddSC_npcs_special();
        AddSC_npc_taxi();
        AddSC_achievement_scripts();
        AddSC_chat_log();
    #endif
    }
    
    void AddEasternKingdomsScripts()
    {
    #ifdef SCRIPTS
        AddSC_alterac_valley();                 //Alterac Valley
        AddSC_boss_balinda();
        AddSC_boss_drekthar();
        AddSC_boss_galvangar();
        AddSC_boss_vanndar();
        AddSC_blackrock_depths();               //Blackrock Depths
        AddSC_boss_ambassador_flamelash();
        AddSC_boss_anubshiah();
        AddSC_boss_draganthaurissan();
        AddSC_boss_general_angerforge();
        AddSC_boss_gorosh_the_dervish();
        AddSC_boss_grizzle();
        AddSC_boss_high_interrogator_gerstahn();
        AddSC_boss_magmus();
        AddSC_boss_moira_bronzebeard();
        AddSC_boss_tomb_of_seven();
        AddSC_instance_blackrock_depths();
        AddSC_boss_drakkisath();                //Blackrock Spire
        AddSC_boss_halycon();
        AddSC_boss_highlordomokk();
        AddSC_boss_mothersmolderweb();
        AddSC_boss_overlordwyrmthalak();
        AddSC_boss_shadowvosh();
        AddSC_boss_thebeast();
        AddSC_boss_warmastervoone();
        AddSC_boss_quatermasterzigris();
        AddSC_boss_pyroguard_emberseer();
        AddSC_boss_gyth();
        AddSC_boss_rend_blackhand();
        AddSC_boss_razorgore();                 //Blackwing lair
        AddSC_boss_vael();
        AddSC_boss_broodlord();
        AddSC_boss_firemaw();
        AddSC_boss_ebonroc();
        AddSC_boss_flamegor();
        AddSC_boss_chromaggus();
        AddSC_boss_nefarian();
        AddSC_boss_victor_nefarius();
        AddSC_boss_mr_smite();
        AddSC_deadmines();                      //Deadmines
        AddSC_instance_deadmines();
        AddSC_gnomeregan();                     //Gnomeregan
        AddSC_instance_gnomeregan();
        AddSC_boss_attumen();                   //Karazhan
        AddSC_boss_curator();
        AddSC_boss_maiden_of_virtue();
        AddSC_boss_shade_of_aran();
        AddSC_boss_malchezaar();
        AddSC_boss_terestian_illhoof();
        AddSC_boss_moroes();
        AddSC_bosses_opera();
        AddSC_boss_netherspite();
        AddSC_instance_karazhan();
        AddSC_karazhan();
        AddSC_boss_nightbane();
        AddSC_boss_felblood_kaelthas();         // Magister's Terrace
        AddSC_boss_selin_fireheart();
        AddSC_boss_vexallus();
        AddSC_boss_priestess_delrissa();
        AddSC_instance_magisters_terrace();
        AddSC_magisters_terrace();
        AddSC_boss_lucifron();                  //Molten core
        AddSC_boss_magmadar();
        AddSC_boss_gehennas();
        AddSC_boss_garr();
        AddSC_boss_baron_geddon();
        AddSC_boss_shazzrah();
        AddSC_boss_golemagg();
        AddSC_boss_sulfuron();
        AddSC_boss_majordomo();
        AddSC_boss_ragnaros();
        AddSC_instance_molten_core();
        AddSC_molten_core();
        AddSC_the_scarlet_enclave();            //Scarlet Enclave
        AddSC_the_scarlet_enclave_c1();
        AddSC_the_scarlet_enclave_c2();
        AddSC_the_scarlet_enclave_c5();
        AddSC_boss_arcanist_doan();             //Scarlet Monastery
        AddSC_boss_azshir_the_sleepless();
        AddSC_boss_bloodmage_thalnos();
        AddSC_boss_headless_horseman();
        AddSC_boss_herod();
        AddSC_boss_high_inquisitor_fairbanks();
        AddSC_boss_houndmaster_loksey();
        AddSC_boss_interrogator_vishas();
        AddSC_boss_scorn();
        AddSC_instance_scarlet_monastery();
        AddSC_boss_mograine_and_whitemane();
        AddSC_boss_darkmaster_gandling();       //Scholomance
        AddSC_boss_death_knight_darkreaver();
        AddSC_boss_theolenkrastinov();
        AddSC_boss_illuciabarov();
        AddSC_boss_instructormalicia();
        AddSC_boss_jandicebarov();
        AddSC_boss_kormok();
        AddSC_boss_lordalexeibarov();
        AddSC_boss_lorekeeperpolkelt();
        AddSC_boss_rasfrost();
        AddSC_boss_theravenian();
        AddSC_boss_vectus();
        AddSC_instance_scholomance();
        AddSC_shadowfang_keep();                //Shadowfang keep
        AddSC_instance_shadowfang_keep();
        AddSC_boss_magistrate_barthilas();      //Stratholme
        AddSC_boss_maleki_the_pallid();
        AddSC_boss_nerubenkan();
        AddSC_boss_cannon_master_willey();
        AddSC_boss_baroness_anastari();
        AddSC_boss_ramstein_the_gorger();
        AddSC_boss_timmy_the_cruel();
        AddSC_boss_postmaster_malown();
        AddSC_boss_baron_rivendare();
        AddSC_boss_dathrohan_balnazzar();
        AddSC_boss_order_of_silver_hand();
        AddSC_instance_stratholme();
        AddSC_stratholme();
        AddSC_sunken_temple();                  // Sunken Temple
        AddSC_instance_sunken_temple();
        AddSC_instance_sunwell_plateau();       //Sunwell Plateau
        AddSC_boss_kalecgos();
        AddSC_boss_brutallus();
        AddSC_boss_felmyst();
        AddSC_boss_eredar_twins();
        AddSC_boss_muru();
        AddSC_boss_kiljaeden();
        AddSC_sunwell_plateau();
        AddSC_boss_archaedas();                 //Uldaman
        AddSC_boss_ironaya();
        AddSC_uldaman();
        AddSC_instance_uldaman();
        AddSC_boss_akilzon();                   //Zul'Aman
        AddSC_boss_halazzi();
        AddSC_boss_hex_lord_malacrass();
        AddSC_boss_janalai();
        AddSC_boss_nalorakk();
        AddSC_boss_zuljin();
        AddSC_instance_zulaman();
        AddSC_zulaman();
        AddSC_boss_jeklik();                    //Zul'Gurub
        AddSC_boss_venoxis();
        AddSC_boss_marli();
        AddSC_boss_mandokir();
        AddSC_boss_gahzranka();
        AddSC_boss_thekal();
        AddSC_boss_arlokk();
        AddSC_boss_jindo();
        AddSC_boss_hakkar();
        AddSC_boss_grilek();
        AddSC_boss_hazzarah();
        AddSC_boss_renataki();
        AddSC_boss_wushoolay();
        AddSC_instance_zulgurub();
    
        //AddSC_alterac_mountains();
        AddSC_arathi_highlands();
        AddSC_blasted_lands();
        AddSC_boss_kruul();
        AddSC_burning_steppes();
        AddSC_dun_morogh();
        AddSC_duskwood();
        AddSC_eastern_plaguelands();
        AddSC_elwynn_forest();
        AddSC_eversong_woods();
        AddSC_ghostlands();
        AddSC_hinterlands();
        AddSC_ironforge();
        AddSC_isle_of_queldanas();
        AddSC_loch_modan();
        AddSC_redridge_mountains();
        AddSC_searing_gorge();
        AddSC_silvermoon_city();
        AddSC_silverpine_forest();
        AddSC_stormwind_city();
        AddSC_stranglethorn_vale();
        AddSC_swamp_of_sorrows();
        AddSC_tirisfal_glades();
        AddSC_undercity();
        AddSC_western_plaguelands();
        AddSC_westfall();
        AddSC_wetlands();
    #endif
    }
    
    void AddKalimdorScripts()
    {
    #ifdef SCRIPTS
        AddSC_blackfathom_deeps();              //Blackfathom Depths
        AddSC_boss_gelihast();
        AddSC_boss_kelris();
        AddSC_boss_aku_mai();
        AddSC_instance_blackfathom_deeps();
        AddSC_hyjal();                          //CoT Battle for Mt. Hyjal
        AddSC_boss_archimonde();
        AddSC_instance_mount_hyjal();
        AddSC_hyjal_trash();
        AddSC_boss_rage_winterchill();
        AddSC_boss_anetheron();
        AddSC_boss_kazrogal();
        AddSC_boss_azgalor();
        AddSC_boss_captain_skarloc();           //CoT Old Hillsbrad
        AddSC_boss_epoch_hunter();
        AddSC_boss_lieutenant_drake();
        AddSC_instance_old_hillsbrad();
        AddSC_old_hillsbrad();
        AddSC_boss_aeonus();                    //CoT The Dark Portal
        AddSC_boss_chrono_lord_deja();
        AddSC_boss_temporus();
        AddSC_dark_portal();
        AddSC_instance_dark_portal();
        AddSC_boss_epoch();                     //CoT Culling Of Stratholme
        AddSC_boss_infinite_corruptor();
        AddSC_boss_salramm();
        AddSC_boss_mal_ganis();
        AddSC_boss_meathook();
        AddSC_culling_of_stratholme();
        AddSC_instance_culling_of_stratholme();
        AddSC_boss_celebras_the_cursed();       //Maraudon
        AddSC_boss_landslide();
        AddSC_boss_noxxion();
        AddSC_boss_ptheradras();
        AddSC_boss_onyxia();                    //Onyxia's Lair
        AddSC_instance_onyxias_lair();
        AddSC_boss_amnennar_the_coldbringer();  //Razorfen Downs
        AddSC_razorfen_downs();
        AddSC_instance_razorfen_downs();
        AddSC_razorfen_kraul();                 //Razorfen Kraul
        AddSC_boss_kurinnaxx();                 //Ruins of ahn'qiraj
        AddSC_boss_rajaxx();
        AddSC_boss_moam();
        AddSC_boss_buru();
        AddSC_boss_ayamiss();
        AddSC_boss_ossirian();
        AddSC_instance_ruins_of_ahnqiraj();
        AddSC_boss_cthun();                     //Temple of ahn'qiraj
        AddSC_boss_fankriss();
        AddSC_boss_huhuran();
        AddSC_bug_trio();
        AddSC_boss_sartura();
        AddSC_boss_skeram();
        AddSC_boss_twinemperors();
        AddSC_mob_anubisath_sentinel();
        AddSC_instance_temple_of_ahnqiraj();
        AddSC_wailing_caverns();                //Wailing caverns
        AddSC_instance_wailing_caverns();
        AddSC_zulfarrak();                      //Zul'Farrak generic
        AddSC_instance_zulfarrak();             //Zul'Farrak instance script
    
        AddSC_ashenvale();
        AddSC_azshara();
        AddSC_azuremyst_isle();
        AddSC_bloodmyst_isle();
        AddSC_boss_azuregos();
        AddSC_darkshore();
        AddSC_desolace();
        AddSC_durotar();
        AddSC_dustwallow_marsh();
        AddSC_felwood();
        AddSC_feralas();
        AddSC_moonglade();
        AddSC_mulgore();
        AddSC_orgrimmar();
        AddSC_silithus();
        AddSC_stonetalon_mountains();
        AddSC_tanaris();
        AddSC_teldrassil();
        AddSC_the_barrens();
        AddSC_thousand_needles();
        AddSC_thunder_bluff();
        AddSC_ungoro_crater();
        AddSC_winterspring();
    #endif
    }
    
    void AddOutlandScripts()
    {
    #ifdef SCRIPTS
        AddSC_boss_exarch_maladaar();           //Auchindoun Auchenai Crypts
        AddSC_boss_shirrak_the_dead_watcher();
        AddSC_boss_nexusprince_shaffar();       //Auchindoun Mana Tombs
        AddSC_boss_pandemonius();
        AddSC_boss_darkweaver_syth();           //Auchindoun Sekketh Halls
        AddSC_boss_talon_king_ikiss();
        AddSC_instance_sethekk_halls();
        AddSC_instance_shadow_labyrinth();      //Auchindoun Shadow Labyrinth
        AddSC_boss_ambassador_hellmaw();
        AddSC_boss_blackheart_the_inciter();
        AddSC_boss_grandmaster_vorpil();
        AddSC_boss_murmur();
        AddSC_black_temple();                   //Black Temple
        AddSC_boss_illidan();
        AddSC_boss_shade_of_akama();
        AddSC_boss_supremus();
        AddSC_boss_gurtogg_bloodboil();
        AddSC_boss_mother_shahraz();
        AddSC_boss_reliquary_of_souls();
        AddSC_boss_teron_gorefiend();
        AddSC_boss_najentus();
        AddSC_boss_illidari_council();
        AddSC_instance_black_temple();
        AddSC_boss_fathomlord_karathress();     //CR Serpent Shrine Cavern
        AddSC_boss_hydross_the_unstable();
        AddSC_boss_lady_vashj();
        AddSC_boss_leotheras_the_blind();
        AddSC_boss_morogrim_tidewalker();
        AddSC_instance_serpentshrine_cavern();
        AddSC_boss_the_lurker_below();
        AddSC_boss_hydromancer_thespia();       //CR Steam Vault
        AddSC_boss_mekgineer_steamrigger();
        AddSC_boss_warlord_kalithresh();
        AddSC_instance_steam_vault();
        AddSC_boss_hungarfen();                 //CR Underbog
        AddSC_boss_the_black_stalker();
        AddSC_boss_gruul();                     //Gruul's Lair
        AddSC_boss_high_king_maulgar();
        AddSC_instance_gruuls_lair();
        AddSC_boss_broggok();                   //HC Blood Furnace
        AddSC_boss_kelidan_the_breaker();
        AddSC_boss_the_maker();
        AddSC_instance_blood_furnace();
        AddSC_boss_magtheridon();               //HC Magtheridon's Lair
        AddSC_instance_magtheridons_lair();
        AddSC_boss_grand_warlock_nethekurse();  //HC Shattered Halls
        AddSC_boss_warbringer_omrogg();
        AddSC_boss_warchief_kargath_bladefist();
        AddSC_instance_shattered_halls();
        AddSC_boss_watchkeeper_gargolmar();     //HC Ramparts
        AddSC_boss_omor_the_unscarred();
        AddSC_boss_vazruden_the_herald();
        AddSC_instance_ramparts();
        AddSC_arcatraz();                       //TK Arcatraz
        AddSC_boss_harbinger_skyriss();
        AddSC_instance_arcatraz();
        AddSC_boss_high_botanist_freywinn();    //TK Botanica
        AddSC_boss_laj();
        AddSC_boss_warp_splinter();
        AddSC_boss_alar();                      //TK The Eye
        AddSC_boss_kaelthas();
        AddSC_boss_void_reaver();
        AddSC_boss_high_astromancer_solarian();
        AddSC_instance_the_eye();
        AddSC_the_eye();
        AddSC_boss_gatewatcher_iron_hand();     //TK The Mechanar
        AddSC_boss_nethermancer_sepethrea();
        AddSC_boss_pathaleon_the_calculator();
        AddSC_instance_mechanar();
    
        AddSC_blades_edge_mountains();
        AddSC_boss_doomlordkazzak();
        AddSC_boss_doomwalker();
        AddSC_hellfire_peninsula();
        AddSC_nagrand();
        AddSC_netherstorm();
        AddSC_shadowmoon_valley();
        AddSC_shattrath_city();
        AddSC_terokkar_forest();
        AddSC_zangarmarsh();
    #endif
    }
    
    void AddNorthrendScripts()
    {
    #ifdef SCRIPTS
        AddSC_boss_slad_ran();               //Gundrak
        AddSC_boss_moorabi();
        AddSC_boss_drakkari_colossus();
        AddSC_boss_gal_darah();
        AddSC_boss_eck();
        AddSC_instance_gundrak();
        AddSC_boss_amanitar();
        AddSC_boss_taldaram();              //Azjol-Nerub Ahn'kahet
        AddSC_boss_elder_nadox();
        AddSC_boss_jedoga_shadowseeker();
        AddSC_boss_volazj();
        AddSC_instance_ahnkahet();
        AddSC_boss_argent_challenge();      //Trial of the Champion
        AddSC_boss_black_knight();
        AddSC_boss_grand_champions();
        AddSC_instance_trial_of_the_champion();
        AddSC_trial_of_the_champion();
        AddSC_boss_anubarak_trial();        //Trial of the Crusader
        AddSC_boss_faction_champions();
        AddSC_boss_jaraxxus();
        AddSC_trial_of_the_crusader();
        AddSC_boss_twin_valkyr();
        AddSC_boss_northrend_beasts();
        AddSC_instance_trial_of_the_crusader();
        AddSC_boss_krik_thir();             //Azjol-Nerub Azjol-Nerub
        AddSC_boss_hadronox();
        AddSC_boss_anub_arak();
        AddSC_instance_azjol_nerub();
        AddSC_boss_anubrekhan();            //Naxxramas
        AddSC_boss_maexxna();
        AddSC_boss_patchwerk();
        AddSC_boss_grobbulus();
        AddSC_boss_razuvious();
        AddSC_boss_kelthuzad();
        AddSC_boss_loatheb();
        AddSC_boss_noth();
        AddSC_boss_gluth();
        AddSC_boss_sapphiron();
        AddSC_boss_four_horsemen();
        AddSC_boss_faerlina();
        AddSC_boss_heigan();
        AddSC_boss_gothik();
        AddSC_boss_thaddius();
        AddSC_instance_naxxramas();
        AddSC_boss_magus_telestra();        //The Nexus Nexus
        AddSC_boss_anomalus();
        AddSC_boss_ormorok();
        AddSC_boss_keristrasza();
        AddSC_instance_nexus();
        AddSC_boss_drakos();                //The Nexus The Oculus
        AddSC_boss_urom();
        AddSC_instance_oculus();
        AddSC_oculus();
        AddSC_boss_sartharion();            //Obsidian Sanctum
        AddSC_instance_obsidian_sanctum();
        AddSC_boss_bjarngrim();             //Ulduar Halls of Lightning
        AddSC_boss_loken();
        AddSC_boss_ionar();
        AddSC_boss_volkhan();
        AddSC_instance_halls_of_lightning();
        AddSC_boss_maiden_of_grief();       //Ulduar Halls of Stone
        AddSC_boss_krystallus();
        AddSC_boss_sjonnir();
        AddSC_instance_halls_of_stone();
        AddSC_halls_of_stone();
        AddSC_boss_algalon();               //Ulduar Ulduar
        AddSC_boss_assembly_of_iron();
        AddSC_boss_auriaya();
        AddSC_boss_flame_leviathan();
        AddSC_boss_freya();
        AddSC_boss_general_vezax();
        AddSC_boss_hodir();
        AddSC_boss_ignis();
        AddSC_boss_kologarn();
        AddSC_boss_mimiron();
        AddSC_boss_razorscale();
        AddSC_boss_thorim();
        AddSC_boss_xt002();
        AddSC_boss_yoggsaron();
        AddSC_ulduar_teleporter();
        AddSC_instance_ulduar();
        AddSC_boss_keleseth();              //Utgarde Keep
        AddSC_boss_skarvald_dalronn();
        AddSC_boss_ingvar_the_plunderer();
        AddSC_instance_utgarde_keep();
        AddSC_boss_svala();                 //Utgarde Pinnacle
        AddSC_boss_palehoof();
        AddSC_boss_skadi();
        AddSC_boss_ymiron();
        AddSC_instance_utgarde_pinnacle();
        AddSC_utgarde_keep();
        AddSC_boss_archavon();              //Vault of Archavon
        AddSC_boss_emalon();
        AddSC_boss_koralon();
        AddSC_boss_toravon();
        AddSC_instance_archavon();
        AddSC_boss_trollgore();             //Drak'Tharon Keep
        AddSC_boss_novos();
        AddSC_boss_dred();
        AddSC_boss_tharon_ja();
        AddSC_instance_drak_tharon();
        AddSC_boss_cyanigosa();             //Violet Hold
        AddSC_boss_erekem();
        AddSC_boss_ichoron();
        AddSC_boss_lavanthor();
        AddSC_boss_moragg();
        AddSC_boss_xevozz();
        AddSC_boss_zuramat();
        AddSC_instance_violet_hold();
        AddSC_violet_hold();
        AddSC_instance_forge_of_souls();   //Forge of Souls
        AddSC_forge_of_souls();
        AddSC_boss_bronjahm();
        AddSC_boss_devourer_of_souls();
        AddSC_instance_pit_of_saron();      //Pit of Saron
        AddSC_pit_of_saron();
        AddSC_boss_garfrost();
        AddSC_boss_ick();
        AddSC_boss_tyrannus();
        AddSC_instance_halls_of_reflection();   // Halls of Reflection
        AddSC_halls_of_reflection();
        AddSC_boss_falric();
        AddSC_boss_marwyn();
        AddSC_boss_lord_marrowgar();        // Icecrown Citadel
        AddSC_boss_lady_deathwhisper();
        AddSC_boss_deathbringer_saurfang();
        AddSC_boss_festergut();
        AddSC_boss_rotface();
        AddSC_boss_professor_putricide();
        AddSC_boss_blood_prince_council();
        AddSC_boss_blood_queen_lana_thel();
        AddSC_icecrown_citadel_teleport();
        AddSC_instance_icecrown_citadel();
    
        AddSC_dalaran();
        AddSC_borean_tundra();
        AddSC_dragonblight();
        AddSC_grizzly_hills();
        AddSC_howling_fjord();
        AddSC_icecrown();
        AddSC_sholazar_basin();
        AddSC_storm_peaks();
        AddSC_zuldrak();
        AddSC_crystalsong_forest();
    #endif
    }
    
    void AddOutdoorPvPScripts()
    {
    #ifdef SCRIPTS
        AddSC_outdoorpvp_ep();
        AddSC_outdoorpvp_hp();
        AddSC_outdoorpvp_na();
        AddSC_outdoorpvp_si();
        AddSC_outdoorpvp_tf();
        AddSC_outdoorpvp_zm();
    #endif
    }
    
    void AddBattlegroundScripts()
    {
    #ifdef SCRIPTS
    #endif
    }
    
    #ifdef SCRIPTS
    /* This is where custom scripts' loading functions should be declared. */
    void AddSC_npc_guildhouses();
    #endif
    
    void AddCustomScripts()
    {
    #ifdef SCRIPTS
        /* This is where custom scripts should be added. */
        AddSC_npc_guildhouses();
    #endif
    }


    • Nama Error : Assembly of Iron Achievement
    The Antechamber of Ulduar (10 player)
    The Antechamber of Ulduar (25 player)
    I Choose You, Runemaster Molgeim (10 player)
    I Choose You, Stormcaller Brundir (10 player)
    I Choose You, Steelbreaker (10 player)
    I Choose You, Runemaster Molgeim (25 player)
    I Choose You, Stormcaller Brundir (25 player)
    I Choose You, Steelbreaker (25 player)
    Can't Do That While Stunned (10 player)
    Can't Do That While Stunned (25 player)

    Referensi: Here
    Kondisi server : Boss dapat dikill tapi Tidak terhitung Kill Credit, Achievements yang sudah jalan diserverBut I'm On Your Side (10 player)
    But I'm On Your Side (25 player)
    Code:
    boss_assembly_of_iron.cpp
    Spoiler untuk cpp :

    Code:
    /*
     * Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/>
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms of the GNU General Public License as published by the
     * Free Software Foundation; either version 2 of the License, or (at your
     * option) any later version.
     *
     * This program is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
     * more details.
     *
     * You should have received a copy of the GNU General Public License along
     * with this program. If not, see <http://www.gnu.org/licenses/>.
     */
    
    /* ScriptData
    SDName: Assembly of Iron
    Author: PrinceCreed
    SD%Complete: 100%
    SDComment:
    EndScriptData */
    
    #include "ScriptPCH.h"
    #include "ulduar.h"
    
    enum Spells
    {
        // Any boss
        SPELL_SUPERCHARGE                           = 61920,
        SPELL_BERSERK                               = 47008,    // Hard enrage, don't know the correct ID.
    
        // Steelbreaker
        SPELL_HIGH_VOLTAGE                          = 61890,
        SPELL_FUSION_PUNCH                          = 61903,
        SPELL_STATIC_DISRUPTION                     = 44008, //63494
        SPELL_OVERWHELMING_POWER                    = 64637,
        SPELL_ELECTRICAL_CHARGE                     = 61902,
    
        // Runemaster Molgeim
        SPELL_SHIELD_OF_RUNES                       = 62274,
        SPELL_RUNE_OF_POWER                         = 61973,
        SPELL_RUNE_OF_POWER_VISUAL                  = 61974,
        SPELL_RUNE_OF_DEATH                         = 62269,
        SPELL_RUNE_OF_SUMMONING                     = 62273,
        SPELL_RUNE_OF_SUMMONING_VISUAL              = 62019,
        SPELL_RUNE_OF_SUMMONING_SUMMON              = 62020,
        SPELL_LIGHTNING_BLAST                       = 62054,
    
        // Stormcaller Brundir
        SPELL_CHAIN_LIGHTNING                       = 61879,
        SPELL_OVERLOAD                              = 61869,
        SPELL_LIGHTNING_WHIRL                       = 61915,
        SPELL_LIGHTNING_TENDRILS                    = 61887,
        SPELL_LIGHTNING_TENDRILS_SELF_VISUAL        = 61883,
        SPELL_STORMSHIELD                           = 64187
    };
    
    enum eEnums
    {
        EVENT_ENRAGE,
        // Steelbreaker
        EVENT_FUSION_PUNCH,
        EVENT_STATIC_DISRUPTION,
        EVENT_OVERWHELMING_POWER,
        // Molgeim
        EVENT_RUNE_OF_POWER,
        EVENT_SHIELD_OF_RUNES,
        EVENT_RUNE_OF_DEATH,
        EVENT_RUNE_OF_SUMMONING,
        EVENT_LIGHTNING_BLAST,
        // Brundir
        EVENT_CHAIN_LIGHTNING,
        EVENT_OVERLOAD,
        EVENT_LIGHTNING_WHIRL,
        EVENT_LIGHTNING_TENDRILS,
        EVENT_FLIGHT,
        EVENT_ENDFLIGHT,
        EVENT_GROUND,
        EVENT_LAND,
        EVENT_MOVE_POS
    };
    
    enum Actions
    {
        ACTION_STEELBREAKER,
        ACTION_MOLGEIM,
        ACTION_BRUNDIR
    };
    
    // Achievements
    #define ACHIEVEMENT_ON_YOUR_SIDE                RAID_MODE(2945, 2946) // TODO
    #define ACHIEVEMENT_CANT_WHILE_STUNNED          RAID_MODE(2947, 2948) // TODO
    #define ACHIEVEMENT_CHOOSE_STEELBREAKER         RAID_MODE(2941, 2944)
    #define ACHIEVEMENT_CHOOSE_MOLGEIM              RAID_MODE(2939, 2942)
    #define ACHIEVEMENT_CHOOSE_BRUNDIR              RAID_MODE(2940, 2943)
    
    #define EMOTE_OVERLOAD              "Stormcaller Brundir begins to Overload!"
    
    enum Yells
    {
        SAY_STEELBREAKER_AGGRO                      = -1603020,
        SAY_STEELBREAKER_SLAY_1                     = -1603021,
        SAY_STEELBREAKER_SLAY_2                     = -1603022,
        SAY_STEELBREAKER_POWER                      = -1603023,
        SAY_STEELBREAKER_DEATH_1                    = -1603024,
        SAY_STEELBREAKER_DEATH_2                    = -1603025,
        SAY_STEELBREAKER_BERSERK                    = -1603026,
    
        SAY_MOLGEIM_AGGRO                           = -1603030,
        SAY_MOLGEIM_SLAY_1                          = -1603031,
        SAY_MOLGEIM_SLAY_2                          = -1603032,
        SAY_MOLGEIM_RUNE_DEATH                      = -1603033,
        SAY_MOLGEIM_SUMMON                          = -1603034,
        SAY_MOLGEIM_DEATH_1                         = -1603035,
        SAY_MOLGEIM_DEATH_2                         = -1603036,
        SAY_MOLGEIM_BERSERK                         = -1603037,
    
        SAY_BRUNDIR_AGGRO                           = -1603040,
        SAY_BRUNDIR_SLAY_1                          = -1603041,
        SAY_BRUNDIR_SLAY_2                          = -1603042,
        SAY_BRUNDIR_SPECIAL                         = -1603043,
        SAY_BRUNDIR_FLIGHT                          = -1603044,
        SAY_BRUNDIR_DEATH_1                         = -1603045,
        SAY_BRUNDIR_DEATH_2                         = -1603046,
        SAY_BRUNDIR_BERSERK                         = -1603047,
    };
    
    bool IsEncounterComplete(InstanceScript* pInstance, Creature* me)
    {
       if (!pInstance || !me)
            return false;
    
        for (uint8 i = 0; i < 3; ++i)
        {
            uint64 guid = pInstance->GetData64(DATA_STEELBREAKER+i);
            if (!guid)
                return false;
    
            if (Creature *boss = Unit::GetCreature(*me, guid))
            {
                if (boss->isAlive())
                    return false;
            }
            else
                return false;
        }
        return true;
    }
    
    // Avoid killing bosses one to one
    void CallBosses(InstanceScript* pInstance, uint32 caller, Unit *who)
    {
        // Respawn if dead
        if (Creature* Steelbreaker = who->GetCreature(*who, pInstance->GetData64(DATA_STEELBREAKER)))
            if (Steelbreaker->isDead())
            {            
                Steelbreaker->Respawn(true);
                Steelbreaker->GetMotionMaster()->MoveTargetedHome();
            }
        if (Creature* Brundir = who->GetCreature(*who, pInstance->GetData64(DATA_BRUNDIR)))
            if (Brundir->isDead())
            {
                Brundir->Respawn(true);
                Brundir->GetMotionMaster()->MoveTargetedHome();
            }
        if (Creature* Molgeim = who->GetCreature(*who, pInstance->GetData64(DATA_MOLGEIM)))
            if (Molgeim->isDead())
            {
                Molgeim->Respawn(true);
                Molgeim->GetMotionMaster()->MoveTargetedHome();
            }
        
        for (uint8 i = 0; i < 3; ++i)
        {
            if (caller == DATA_STEELBREAKER+i) continue;
            uint64 guid = pInstance->GetData64(DATA_STEELBREAKER+i);
            if (!guid) return;
            if (Creature* m_boss = pInstance->instance->GetCreature(guid))
            {
                if (m_boss->isAlive())
                {
                    m_boss->AddThreat(who, 100.0f);
                    m_boss->AI()->AttackStart(who);
                }
            }
        }
    }
    
    class boss_steelbreaker : public CreatureScript
    {
    public:
        boss_steelbreaker() : CreatureScript("boss_steelbreaker") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new boss_steelbreakerAI (pCreature);
        }
    
        struct boss_steelbreakerAI : public ScriptedAI
        {
            boss_steelbreakerAI(Creature *c) : ScriptedAI(c)
            {
                pInstance = c->GetInstanceScript();
                me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_KNOCK_BACK, true);
                me->ApplySpellImmune(0, IMMUNITY_MECHANIC, MECHANIC_GRIP, true);
            }
            
            EventMap events;
            InstanceScript* pInstance;
            uint32 phase;
    
            void Reset()
            {
                events.Reset();
                phase = 0;
                me->RemoveAllAuras();
                me->ResetLootMode();
                if (pInstance)
                    pInstance->SetBossState(BOSS_ASSEMBLY, NOT_STARTED);
                
                // Respawn
                if (Creature* Brundir = me->GetCreature(*me, pInstance->GetData64(DATA_BRUNDIR)))
                    if (Brundir->isDead())
                    {
                        Brundir->Respawn(true);
                        Brundir->GetMotionMaster()->MoveTargetedHome();
                    }
                if (Creature* Molgeim = me->GetCreature(*me, pInstance->GetData64(DATA_MOLGEIM)))
                    if (Molgeim->isDead())
                    {
                        Molgeim->Respawn(true);
                        Molgeim->GetMotionMaster()->MoveTargetedHome();
                    }
            }
    
            void EnterCombat(Unit* who)
            {
                DoScriptText(SAY_STEELBREAKER_AGGRO, me);
                DoZoneInCombat();
                CallBosses(pInstance, DATA_STEELBREAKER, who);
                DoCast(me, SPELL_HIGH_VOLTAGE);
                phase = 1;
                events.SetPhase(phase);
                events.ScheduleEvent(EVENT_ENRAGE, 900000);
                events.ScheduleEvent(EVENT_FUSION_PUNCH, 15000);
            }
    
            void JustDied(Unit* /*Killer*/)
            {
                DoScriptText(RAND(SAY_STEELBREAKER_DEATH_1, SAY_STEELBREAKER_DEATH_2), me);
        
                if (IsEncounterComplete(pInstance, me) && pInstance)
                {
                    pInstance->SetBossState(BOSS_ASSEMBLY, DONE);
                    pInstance->DoCompleteAchievement(ACHIEVEMENT_CHOOSE_STEELBREAKER);
                    pInstance->DoUpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, 65195);
                }
                else me->SetLootRecipient(NULL);
                
                if (Creature* Brundir = me->GetCreature(*me, pInstance->GetData64(DATA_BRUNDIR)))
                    if (Brundir->isAlive())
                        Brundir->AI()->DoAction(ACTION_BRUNDIR);
    
                if (Creature* Molgeim = me->GetCreature(*me, pInstance->GetData64(DATA_MOLGEIM)))
                    if (Molgeim->isAlive())
                        Molgeim->AI()->DoAction(ACTION_MOLGEIM);
            }
    
            void KilledUnit(Unit * /*who*/)
            {
                DoScriptText(RAND(SAY_STEELBREAKER_SLAY_1,SAY_STEELBREAKER_SLAY_2), me);
    
                if (phase == 3)
                    DoCast(me, SPELL_ELECTRICAL_CHARGE);
            }
    
            void UpdateAI(const uint32 diff)
            {
                if (!UpdateVictim())
                    return;
    
                events.Update(diff);
    
                while (uint32 eventId = events.ExecuteEvent())
                {
                    switch(eventId)
                    {
                        case EVENT_ENRAGE:
                            DoScriptText(SAY_STEELBREAKER_BERSERK, me);
                            DoCast(SPELL_BERSERK);
                            break;
                        case EVENT_FUSION_PUNCH:
                            if (me->IsWithinMeleeRange(me->getVictim()))
                                DoCastVictim(SPELL_FUSION_PUNCH);
                            events.ScheduleEvent(EVENT_FUSION_PUNCH, urand(15000, 20000));
                            break;
                        case EVENT_STATIC_DISRUPTION:
                            if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                                DoCast(pTarget, SPELL_STATIC_DISRUPTION);
                            events.ScheduleEvent(EVENT_STATIC_DISRUPTION, 20000 + (rand()%20)*1000);
                            break;
                        case EVENT_OVERWHELMING_POWER:
                            DoScriptText(SAY_STEELBREAKER_POWER, me);
                            DoCastVictim(SPELL_OVERWHELMING_POWER);
                            events.ScheduleEvent(EVENT_OVERWHELMING_POWER, RAID_MODE(60000, 35000));
                            break;
                    }
                }
    
                DoMeleeAttackIfReady();
            }
    
            void DoAction(const int32 action)
            {
                switch (action)
                {
                    case ACTION_STEELBREAKER:
                        me->SetFullHealth();
                        me->AddAura(SPELL_SUPERCHARGE, me);
                        ++phase;
                        events.SetPhase(phase);
                        if (phase >= 2)
                        events.RescheduleEvent(EVENT_STATIC_DISRUPTION, 30000);
                        if (phase >= 3)
                        events.RescheduleEvent(EVENT_OVERWHELMING_POWER, urand(2000, 5000));
                        // Add HardMode Loot
                        me->AddLootMode(LOOT_MODE_HARD_MODE_2);
                        break;
                }
            }
        };
    
    };
    
    class boss_runemaster_molgeim : public CreatureScript
    {
    public:
        boss_runemaster_molgeim() : CreatureScript("boss_runemaster_molgeim") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new boss_runemaster_molgeimAI (pCreature);
        }
    
        struct boss_runemaster_molgeimAI : public ScriptedAI
        {
            boss_runemaster_molgeimAI(Creature *c) : ScriptedAI(c)
            {
                pInstance = c->GetInstanceScript();
                me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_KNOCK_BACK, true);
                me->ApplySpellImmune(0, IMMUNITY_MECHANIC, MECHANIC_GRIP, true);
            }
    
            InstanceScript* pInstance;
            EventMap events;
            uint32 phase;
    
            void Reset()
            {
                if (pInstance)
                    pInstance->SetBossState(BOSS_ASSEMBLY, NOT_STARTED);
                events.Reset();
                me->ResetLootMode();
                me->RemoveAllAuras();
                phase = 0;
            
                // Respawn
                if (Creature* Brundir = me->GetCreature(*me, pInstance->GetData64(DATA_BRUNDIR)))
                    if (Brundir->isDead())
                    {
                        Brundir->Respawn(true);
                        Brundir->GetMotionMaster()->MoveTargetedHome();
                    }
                if (Creature* Steelbreaker = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER)))
                    if (Steelbreaker->isDead())
                    {            
                        Steelbreaker->Respawn(true);
                        Steelbreaker->GetMotionMaster()->MoveTargetedHome();
                    }
            }
    
            void EnterCombat(Unit* who)
            {
                DoScriptText(SAY_MOLGEIM_AGGRO, me);
                DoZoneInCombat();
                CallBosses(pInstance, DATA_MOLGEIM, who);
                phase = 1;
                pInstance->SetBossState(BOSS_ASSEMBLY, IN_PROGRESS);
                events.ScheduleEvent(EVENT_ENRAGE, 900000);
                events.ScheduleEvent(EVENT_SHIELD_OF_RUNES, 30000);
                events.ScheduleEvent(EVENT_RUNE_OF_POWER, 20000);
            }
    
            void JustDied(Unit* /*Killer*/)
            {
                DoScriptText(RAND(SAY_MOLGEIM_DEATH_1, SAY_MOLGEIM_DEATH_2), me);
        
                if (IsEncounterComplete(pInstance, me) && pInstance)
                {
                    pInstance->SetBossState(BOSS_ASSEMBLY, DONE);
                    pInstance->DoCompleteAchievement(ACHIEVEMENT_CHOOSE_MOLGEIM);
                    pInstance->DoUpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, 65195);
                }
                else me->SetLootRecipient(NULL);
                
                if (Creature* Brundir = me->GetCreature(*me, pInstance->GetData64(DATA_BRUNDIR)))
                    if (Brundir->isAlive())
                        Brundir->AI()->DoAction(ACTION_BRUNDIR);
    
                if (Creature* Steelbreaker = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER)))
                    if (Steelbreaker->isAlive())
                        Steelbreaker->AI()->DoAction(ACTION_STEELBREAKER);
            }
    
            void KilledUnit(Unit * /*who*/)
            {
                DoScriptText(RAND(SAY_MOLGEIM_SLAY_1,SAY_MOLGEIM_SLAY_2), me);
            }
    
            void UpdateAI(const uint32 diff)
            {
                if (!UpdateVictim())
                    return;
    
                events.Update(diff);
    
                while (uint32 eventId = events.ExecuteEvent())
                {
                    switch(eventId)
                    {
                        case EVENT_ENRAGE:
                            DoScriptText(SAY_MOLGEIM_BERSERK, me);
                            DoCast(SPELL_BERSERK);
                            break;
                        case EVENT_RUNE_OF_POWER: // random alive friendly
                        {
                            Creature* bosschoosed;
                            uint32 choice = urand(0,2);
    
                            if (!pInstance) break;
                        
                            bosschoosed = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER+choice));
    
                            if (!bosschoosed || !bosschoosed->isAlive())
                            {
                                choice = ((choice == 2) ? 0 : choice++);
                                bosschoosed = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER+choice));
                                if (!bosschoosed || !bosschoosed->isAlive())
                                {
                                    choice = ((choice == 2) ? 0 : choice++);
                                    bosschoosed = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER+choice));
                                }
                            }
    
                            if (!bosschoosed || !bosschoosed->isAlive())
                                bosschoosed = me->GetCreature(*me, pInstance->GetData64(DATA_MOLGEIM));
                        
                            DoCast(bosschoosed, SPELL_RUNE_OF_POWER);
                            events.ScheduleEvent(EVENT_RUNE_OF_POWER, 35000);
                            break;
                        }
                        case EVENT_SHIELD_OF_RUNES:
                            DoCast(me, SPELL_SHIELD_OF_RUNES);
                            events.ScheduleEvent(EVENT_SHIELD_OF_RUNES, urand(60000, 80000));
                            break;
                        case EVENT_RUNE_OF_DEATH:
                            DoScriptText(SAY_MOLGEIM_RUNE_DEATH, me);
                            if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                                DoCast(pTarget, SPELL_RUNE_OF_DEATH);
                            events.ScheduleEvent(EVENT_RUNE_OF_DEATH, 30000);
                            break;
                        case EVENT_RUNE_OF_SUMMONING:
                            DoScriptText(SAY_MOLGEIM_SUMMON, me);
                            if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                                DoCast(pTarget, SPELL_RUNE_OF_SUMMONING);
                            events.ScheduleEvent(EVENT_RUNE_OF_SUMMONING, urand(40000, 50000));
                            break;
                    }
                }
    
                DoMeleeAttackIfReady();
            }
    
            void DoAction(const int32 action)
            {
                switch (action)
                {
                    case ACTION_MOLGEIM:
                        me->SetFullHealth();
                        me->AddAura(SPELL_SUPERCHARGE, me);
                        ++phase;
                        events.SetPhase(phase);
                        events.RescheduleEvent(EVENT_SHIELD_OF_RUNES, 30000);
                        events.RescheduleEvent(EVENT_RUNE_OF_POWER, 20000);
                        if (phase >= 2)
                            events.RescheduleEvent(EVENT_RUNE_OF_DEATH, 35000);
                        if (phase >= 3)
                            events.RescheduleEvent(EVENT_RUNE_OF_SUMMONING, 40000);
                        // Add HardMode Loot
                        me->AddLootMode(LOOT_MODE_HARD_MODE_1);
                        break;
                }
            }
        };
    
    };
    
    class npc_lightning_elemental : public CreatureScript
    {
    public:
        npc_lightning_elemental() : CreatureScript("npc_lightning_elemental") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new npc_lightning_elementalAI (pCreature);
        }
    
        struct npc_lightning_elementalAI : public ScriptedAI
        {
            npc_lightning_elementalAI(Creature *c) : ScriptedAI(c)
            {
                Charge();
                Casted = false;
            }
    
            bool Casted;
    
            void Charge()
            {
                Unit* pTarget = me->SelectNearestTarget();
                me->AddThreat(pTarget, 5000000.0f);
                AttackStart(pTarget);
            }
    
            void UpdateAI(const uint32 /*diff*/)
            {
                if (!UpdateVictim())
                    return;
    
                if (me->IsWithinMeleeRange(me->getVictim()) && !Casted)
                {
                    me->CastSpell(me, SPELL_LIGHTNING_BLAST, true);
                    me->ForcedDespawn(500);
                    Casted = true;
                }
            }
        };
    
    };
    
    class npc_rune_of_summoning : public CreatureScript
    {
    public:
        npc_rune_of_summoning() : CreatureScript("npc_rune_of_summoning") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new npc_rune_of_summoningAI (pCreature);
        }
    
        struct npc_rune_of_summoningAI : public Scripted_NoMovementAI
        {
            npc_rune_of_summoningAI(Creature *c) : Scripted_NoMovementAI(c)
            {
                me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_PACIFIED);
            }
    
            uint32 SummonTimer;
    
            void Reset()
            {
                SummonTimer = 1500;
                me->ForcedDespawn(12500);
                DoCast(me, SPELL_RUNE_OF_SUMMONING_VISUAL);
            }
    
            void UpdateAI(const uint32 uiDiff)
            {
                if (SummonTimer <= uiDiff)
                {
                    DoCast(me, SPELL_RUNE_OF_SUMMONING_SUMMON);
                    SummonTimer = 1500;
                } 
                else SummonTimer -= uiDiff;
            }
        };
    
    };
    
    class npc_rune_of_power : public CreatureScript
    {
    public:
        npc_rune_of_power() : CreatureScript("npc_rune_of_power") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new npc_rune_of_powerAI (pCreature);
        }
    
        struct npc_rune_of_powerAI : public Scripted_NoMovementAI
        {
            npc_rune_of_powerAI(Creature *c) : Scripted_NoMovementAI(c)
            {
                me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_PACIFIED);
                me->setFaction(16);
            }
    
            void Reset()
            {
                DoCast(me, SPELL_RUNE_OF_POWER_VISUAL, true);
                me->ForcedDespawn(35000);
            }
        };
    
    };
    
    
    class boss_stormcaller_brundir : public CreatureScript
    {
    public:
        boss_stormcaller_brundir() : CreatureScript("boss_stormcaller_brundir") { }
    
        CreatureAI* GetAI(Creature* pCreature) const
        {
            return new boss_stormcaller_brundirAI (pCreature);
        }
    
        struct boss_stormcaller_brundirAI : public ScriptedAI
        {
            boss_stormcaller_brundirAI(Creature *c) : ScriptedAI(c)
            {
                pInstance = c->GetInstanceScript();
                me->SetReactState(REACT_PASSIVE);
                me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_KNOCK_BACK, true);
                me->ApplySpellImmune(0, IMMUNITY_MECHANIC, MECHANIC_GRIP, true);
            }
            
            EventMap events;
            InstanceScript* pInstance;
            uint32 phase;
            uint32 Position;
    
            void Reset()
            {
                if (pInstance)
                    pInstance->SetBossState(BOSS_ASSEMBLY, NOT_STARTED);
                me->RemoveAllAuras();
                me->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING | MOVEMENTFLAG_WALKING);
                events.Reset();
                phase = 0;
            
                // Respawn
                if (Creature* Molgeim = me->GetCreature(*me, pInstance->GetData64(DATA_MOLGEIM)))
                    if (Molgeim->isDead())
                    {
                        Molgeim->Respawn(true);
                        Molgeim->GetMotionMaster()->MoveTargetedHome();
                    }
                if (Creature* Steelbreaker = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER)))
                    if (Steelbreaker->isDead())
                    {            
                        Steelbreaker->Respawn(true);
                        Steelbreaker->GetMotionMaster()->MoveTargetedHome();
                    }
            }
    
            void EnterCombat(Unit* who)
            {
                DoScriptText(SAY_BRUNDIR_AGGRO, me);
                DoZoneInCombat();
                CallBosses(pInstance, DATA_BRUNDIR, who);
                phase = 1;
                events.ScheduleEvent(EVENT_MOVE_POS, 1000);
                events.ScheduleEvent(EVENT_ENRAGE, 900000);
                events.ScheduleEvent(EVENT_CHAIN_LIGHTNING, 2000);
                events.ScheduleEvent(EVENT_OVERLOAD, urand(60000, 120000));
            }
    
            void JustDied(Unit* /*Killer*/)
            {
                DoScriptText(RAND(SAY_BRUNDIR_DEATH_1, SAY_BRUNDIR_DEATH_2), me);
        
                if (IsEncounterComplete(pInstance, me) && pInstance)
                {
                    pInstance->SetBossState(BOSS_ASSEMBLY, DONE);
                    pInstance->DoCompleteAchievement(ACHIEVEMENT_CHOOSE_BRUNDIR);
                    pInstance->DoUpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, 65195);
                    if (me->GetPositionZ() > 428)
                        me->GetMotionMaster()->MoveFall(427.28f);
                }
                else me->SetLootRecipient(NULL);
    
                if (Creature* Molgeim = me->GetCreature(*me, pInstance->GetData64(DATA_MOLGEIM)))
                    if (Molgeim->isAlive())
                        Molgeim->AI()->DoAction(ACTION_MOLGEIM);
    
                if (Creature* Steelbreaker = me->GetCreature(*me, pInstance->GetData64(DATA_STEELBREAKER)))
                    if (Steelbreaker->isAlive())
                        Steelbreaker->AI()->DoAction(ACTION_STEELBREAKER);
            }
    
            void KilledUnit(Unit* /*who*/)
            {
                DoScriptText(RAND(SAY_BRUNDIR_SLAY_1,SAY_BRUNDIR_SLAY_2), me);
            }
    
            void UpdateAI(const uint32 diff)
            {
                if (!UpdateVictim())
                    return;
                
                events.Update(diff);
            
                if (me->HasUnitState(UNIT_STAT_CASTING))
                    return;
    
                while (uint32 eventId = events.ExecuteEvent())
                {
                    switch(eventId)
                    {
                        case EVENT_MOVE_POS:
                            MovePos();
                            events.RescheduleEvent(EVENT_MOVE_POS, 10000);
                            break;            
                        case EVENT_ENRAGE:
                            DoScriptText(SAY_BRUNDIR_BERSERK, me);
                            DoCast(SPELL_BERSERK);
                            break;
                        case EVENT_CHAIN_LIGHTNING:
                            if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                                DoCast(pTarget, SPELL_CHAIN_LIGHTNING);
                            events.ScheduleEvent(EVENT_CHAIN_LIGHTNING, urand(4000, 6000));
                            break;
                        case EVENT_OVERLOAD:
                            me->MonsterTextEmote(EMOTE_OVERLOAD, 0, true);
                            DoScriptText(SAY_BRUNDIR_SPECIAL, me);
                            me->GetMotionMaster()->Initialize();
                            DoCast(SPELL_OVERLOAD);
                            events.ScheduleEvent(EVENT_OVERLOAD, urand(60000, 120000));
                            break;
                        case EVENT_LIGHTNING_WHIRL:
                            me->GetMotionMaster()->Initialize();
                            DoCast(SPELL_LIGHTNING_WHIRL);
                            events.ScheduleEvent(EVENT_LIGHTNING_WHIRL, urand(15000, 20000));
                            break;
                        case EVENT_LIGHTNING_TENDRILS:
                            DoScriptText(SAY_BRUNDIR_FLIGHT, me);
                            DoCast(SPELL_LIGHTNING_TENDRILS);
                            DoCast(SPELL_LIGHTNING_TENDRILS_SELF_VISUAL);
                            me->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
                            me->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), 435);
                            events.DelayEvents(34000);
                            events.ScheduleEvent(EVENT_FLIGHT, 2500);
                            events.ScheduleEvent(EVENT_ENDFLIGHT, 28000);
                            events.ScheduleEvent(EVENT_LIGHTNING_TENDRILS, 90000);
                            break;
                        case EVENT_FLIGHT:
                            if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                                me->GetMotionMaster()->MovePoint(0, pTarget->GetPositionX(), pTarget->GetPositionY(), 435);
                            events.ScheduleEvent(EVENT_FLIGHT, 6000);
                            break;
                        case EVENT_ENDFLIGHT:
                            me->GetMotionMaster()->MovePoint(0, 1586.920f, 119.849f, 435);
                            events.CancelEvent(EVENT_FLIGHT);
                            events.ScheduleEvent(EVENT_LAND, 4000);
                            break;
                        case EVENT_LAND:
                            me->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), 427.28f);
                            events.ScheduleEvent(EVENT_GROUND, 1500);
                            break;
                        case EVENT_GROUND:
                            me->RemoveAurasDueToSpell(SPELL_LIGHTNING_TENDRILS);
                            me->RemoveAurasDueToSpell(SPELL_LIGHTNING_TENDRILS_SELF_VISUAL);
                            me->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
                            me->SendMovementFlagUpdate();
                            break;
                    }
                }
            }
    
            void DoAction(const int32 action)
            {
                switch (action)
                {
                    case ACTION_BRUNDIR:
                        me->SetFullHealth();
                        me->AddAura(SPELL_SUPERCHARGE, me);
                        ++phase;
                        events.SetPhase(phase);
                        events.RescheduleEvent(EVENT_CHAIN_LIGHTNING, urand(6000, 12000));
                        events.RescheduleEvent(EVENT_OVERLOAD, 40000);
                        if (phase >= 2)
                            events.RescheduleEvent(EVENT_LIGHTNING_WHIRL, urand(15000, 20000));
                        if (phase >= 3)
                        {
                            me->AddAura(SPELL_STORMSHIELD, me);
                            events.RescheduleEvent(EVENT_LIGHTNING_TENDRILS, 60000);
                        }
                        break;
                }
            }
        
            void MovePos()
            {
                switch(Position)
                {
                    case 0:
                        me->GetMotionMaster()->MovePoint(0, 1587.28f, 97.030f, 427.28f);
                        break;
                    case 1:
                        me->GetMotionMaster()->MovePoint(0, 1587.18f, 121.03f, 427.28f);
                        break;
                    case 2:
                        me->GetMotionMaster()->MovePoint(0, 1587.34f, 142.58f, 427.28f);
                        break;
                    case 3:
                        me->GetMotionMaster()->MovePoint(0, 1587.18f, 121.03f, 427.28f);
                        break;
                }
    
                Position++;
                if (Position > 3)
                {
                    Position = 0;
                }
            }
        };
    
    };
    
    
    void AddSC_boss_assembly_of_iron()
    {
        new boss_steelbreaker();
        new boss_runemaster_molgeim();
        new boss_stormcaller_brundir();
        new npc_lightning_elemental();
        new npc_rune_of_summoning();
        new npc_rune_of_power();
    }
    Quote Originally Posted by Tonggos View Post
    Nama Error : The End of the Line Quest
    Referensi : Here
    Kondisi : Quest tidak Complete saat item quest digunakan pada tempatnya & pada saat melewati area azure dragon

    Code :

    Quest Item
    Spoiler untuk 2012_03_12_00_world_misc.sql :

    Code:
    SET @LEY_LINE_BEAM := 47334; -- Ley Line Beam (No kit)
    SET @BUNNY_BEAM := 47635; -- The End of the Line: Ley Line Focus Bunny Beam
    SET @TALISMAN_EFFECT := 50548; -- The End of the Line: Ley Line Focus Control Talisman Effect
    
    -- ELM General Purpose Bunny (Scale x0.01) SAI
    -- This is pure ****, those NPCs target some other NPCs with the same DB id, based on their GUIDs.
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116051 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116053 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116054 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116055 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116056 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116057 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116058 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116059 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116060 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116061 AND `source_type`=0;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=-116065 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
    (-116051,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115958,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116053,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115976,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116054,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115973,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116055,0,0,0,1,0,100,0,1000,1000,1000,3500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115976,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116056,0,0,0,1,0,100,0,1000,1000,1000,3500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115958,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116057,0,0,0,1,0,100,0,1000,1000,1000,3500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115975,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116058,0,0,0,1,0,100,0,1000,1000,1000,4500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115959,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116059,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115976,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116060,0,0,0,1,0,100,0,1000,1000,1000,3000,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115973,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116061,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115976,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)'),
    (-116065,0,0,0,1,0,100,0,1000,1000,1000,2500,11,@LEY_LINE_BEAM,0,0,0,0,0,10,115959,24021,0,0,0,0,0, 'ELM General Purpose Bunny (Scale x0.01) - On update OOC - Cast Ley Line Beam (No kit) on ELM General Purpose Bunny (Scale x0.01)');
    
    -- ELM General Purpose Bunny SAI
    UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry`=24021;
    SET @ENTRY := -98564;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
    (@ENTRY,0,0,0,8,0,100,0x1,@TALISMAN_EFFECT,0,0,0,11,@BUNNY_BEAM,0,0,0,0,0,7,0,0,0,0,0,0,0, 'ELM General Purpose Bunny - On The End of the Line: Ley Line Focus Control Talisman Effect hit - Cast The End of the Line: Ley Line Focus Bunny Beam on action invoker');
    
    -- ELM General Purpose Bunny SAI
    SET @ENTRY := -98617;
    DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
    (@ENTRY,0,0,0,8,0,100,0x1,@TALISMAN_EFFECT,0,0,0,11,@BUNNY_BEAM,0,0,0,0,0,7,0,0,0,0,0,0,0, 'ELM General Purpose Bunny - On The End of the Line: Ley Line Focus Control Talisman Effect hit - Cast The End of the Line: Ley Line Focus Bunny Beam on action invoker');
    
    -- Wrong conditions
    DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=47634;
    DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=@TALISMAN_EFFECT;
    INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
    (13,0x1,47634,0,0,31,3,23837,0,0, '', 'Ley Line Focus Control Talisman only targets ELM General Purpose Bunny'),
    (13,0x1,@TALISMAN_EFFECT,0,0,31,1,23837,0,0, '', 'The End of the Line: Ley Line Focus Control Talisman Effect only targets ELM General Purpose Bunny');
    
    -- Areatrigger script
    DELETE FROM `areatrigger_scripts` WHERE `entry`=4956;
    INSERT INTO `areatrigger_scripts` VALUES (4956, 'at_azure_dragons_sanctuary');


    Area Trigger
    Spoiler untuk areatrigger_script.cpp :

    Code:
    /*#####
    ## at_azure_dragons_sanctuary
    ######*/
    
    enum DragonsSanctuary
    {
        QUEST_THE_END_OF_THE_LINE_A                  = 12107,
        QUEST_THE_END_OF_THE_LINE_H                  = 12110,
        NPC_THE_END_OF_THE_LINE_AT_KILL_CREDIT_BUNNY = 26889,
    };
    
    class AreaTrigger_at_azure_dragons_sanctuary : public AreaTriggerScript
    {
        public:
            AreaTrigger_at_azure_dragons_sanctuary() : AreaTriggerScript("at_azure_dragons_sanctuary") {}
    
            bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/)
            {
                if (player->GetQuestStatus(QUEST_THE_END_OF_THE_LINE_A) != QUEST_STATUS_INCOMPLETE)
                    || player->GetQuestStatus(QUEST_THE_END_OF_THE_LINE_H) != QUEST_STATUS_INCOMPLETE)
                    return false;
    
                player->KilledMonsterCredit(NPC_THE_END_OF_THE_LINE_AT_KILL_CREDIT_BUNNY, 0);
                return true;
            }
    };


    Maaf kalau salah (pingin quest ini buru2 kelar + masih newbie masalah ginian)

    Quote Originally Posted by heaven1st View Post
    NPCs: Risen Drakkari Bat Rider, Drakkari Guardian dan Drakkari Warrior

    Problem: Ga bisa di target/hit, tapi tetep aggro. Kesalahan pada table creature & creature_template, 'unit_flags' nya berunsur [33554432 = UNIT_FLAG_NOT_SELECTABLE = Can't be selected by mouse or with /target {name} command.] Bisa di cek di http://www.trinitycore.info/Creature...tc2#unit_flags

    Referensi:
    Test sendiri menggunakan core trinity terbaru.

    SQL Fixes:
    Code:
    -- Fix untuk table creature_template
    UPDATE creature_template SET type_flags=0, dynamicflags=0 ,unit_flags=64 WHERE entry IN (26620,26638,26425);
    
    -- Fix untuk table creature
    UPDATE creature SET unit_flags=64 WHERE id IN (26620,26638,26425);

    Keterangan tambahan:
    unit_flags=64 di dasari dari entry yg digunakan pada creature Drakkari Commander ( jadi disamakan saja dengan yg tidak error,a bit hacky but working ).
    Last edited by wandahamidah; 27-10-16 at 12:50.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •