DELETE FROM `creature_template` WHERE `entry` BETWEEN 301000 AND 301003;
REPLACE INTO `creature_template` (`entry`, `name`, `subname`, `minlevel`, `maxlevel`, `faction`, `speed_walk`, `speed_run`, `detection_range`,`scale`,`rank`,`dmgschool`,`DamageModifier`,`BaseAttackTime`,`RangeAttackTime`,`BaseVariance`,`RangeVariance`,`unit_class`,`unit_flags`,`unit_flags2`,`family`,`type`,`type_flags`,`lootid`,`skinloot`,`PetSpellDataId`,`mingold`,`maxgold`,`AIName`,`MovementType`,`HoverHeight`,`HealthModifier`,`ManaModifier`,`ArmorModifier`,`ExperienceModifier`,`movementId`,`RegenHealth`,`mechanic_immune_mask`,`spell_school_immune_mask`,`flags_extra`,`ScriptName`) VALUES
(301000, "Onyxia", "", 63, 63, 103, 1.0, 1.28571, 20.0, 1.0, 3, 0, 15.05, 2000, 2000, 1.0, 1.0, 1, 64, 2048, 0, 2, 108, 301000, 10184, 0, 914892, 1066294, '', 0, 1.0, 330.0, 1.0, 1.0, 1.0, 0, 1, 646659963, 0, 1073742337, 'boss_onyxia_40'),
(301001, "Onyxian Whelp", "", 56, 57, 16, 1.11111, 1.14286, 18.0, 1.0, 0, 0, 3.7, 2000, 2000, 1.0, 1.0, 1, 0, 2048, 0, 2, 8, 0, 0, 0, 0, 0, '', 1, 1.0, 1.0, 1.0, 1.0, 1.0, 0, 1, 0, 0, 0, ''),
(301002, "Onyxian Warder", "", 60, 63, 103, 0.888888, 1.14286, 20.0, 1.0, 1, 0, 9.8, 2000, 2000, 1.0, 1.0, 1, 64, 2048, 0, 2, 8, 301002, 12129, 0, 1185, 4741, 'SmartAI', 1, 1.0, 25.0, 1.0, 1.0, 1.0, 0, 1, 617299803, 0, 0, '');

DELETE FROM `creature_template_locale` WHERE `entry` BETWEEN 301000 AND 301002;
INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES
(301001, 'deDE', 'Welpe von Onyxia', '', 0),
(301001, 'esES', 'Cría de Onyxia', '', 0),
(301001, 'esMX', 'Cría de Onyxia', '', 0),
(301001, 'frFR', 'Dragonnet onyxien', '', 0),
(301001, 'koKR', '오닉시아의 새끼용', '', 0),
(301001, 'ruRU', 'Дракончик Ониксии', '', 0),
(301001, 'zhCN', '奥妮克希亚雏龙', '', 0),
(301001, 'zhTW', '奧妮克希亞幼龍', '', 0),
(301002, 'deDE', 'Wärter von Onyxia', '', 0),
(301002, 'esES', 'Depositario de Onyxia', '', 0),
(301002, 'esMX', 'Depositario de Onyxia', '', 0),
(301002, 'frFR', 'Gardien onyxien', '', 0),
(301002, 'koKR', '오닉시아의 수호병', '', 0),
(301002, 'ruRU', 'Хранитель Ониксии', '', 0),
(301002, 'zhCN', '奥妮克希亚守卫', '', 0),
(301002, 'zhTW', '奧妮克希亞護衛', '', 0);

DELETE FROM `creature_template_model` WHERE (`CreatureID` BETWEEN 301000 AND 301002);
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
(301000, 0, 8570, 1.0, 1.0, NULL),
(301001, 0, 397, 1.0, 1.0, NULL),
(301002, 0, 8711, 1.0, 1.0, NULL);

DELETE FROM `spell_dbc` WHERE `ID` = 91003;

INSERT INTO spell_dbc (`ID`,`Category`,`DispelType`,`Mechanic`,`Attributes`,`AttributesEx`,`AttributesEx2`,`AttributesEx3`,`AttributesEx4`,`AttributesEx5`,`AttributesEx6`,`AttributesEx7`,`ShapeshiftMask`,`unk_320_2`,`ShapeshiftExclude`,`unk_320_3`,`Targets`,`TargetCreatureType`,`RequiresSpellFocus`,`FacingCasterFlags`,`CasterAuraState`,`TargetAuraState`,`ExcludeCasterAuraState`,`ExcludeTargetAuraState`,`CasterAuraSpell`,`TargetAuraSpell`,`ExcludeCasterAuraSpell`,`ExcludeTargetAuraSpell`,`CastingTimeIndex`,`RecoveryTime`,`CategoryRecoveryTime`,`InterruptFlags`,`AuraInterruptFlags`,`ChannelInterruptFlags`,`ProcTypeMask`,`ProcChance`,`ProcCharges`,`MaxLevel`,`BaseLevel`,`SpellLevel`,`DurationIndex`,`PowerType`,`ManaCost`,`ManaCostPerLevel`,`ManaPerSecond`,`ManaPerSecondPerLevel`,`RangeIndex`,`Speed`,`ModalNextSpell`,`CumulativeAura`,`Totem_1`,`Totem_2`,`Reagent_1`,`Reagent_2`,`Reagent_3`,`Reagent_4`,`Reagent_5`,`Reagent_6`,`Reagent_7`,`Reagent_8`,`ReagentCount_1`,`ReagentCount_2`,`ReagentCount_3`,`ReagentCount_4`,`ReagentCount_5`,`ReagentCount_6`,`ReagentCount_7`,`ReagentCount_8`,`EquippedItemClass`,`EquippedItemSubclass`,`EquippedItemInvTypes`,`Effect_1`,`Effect_2`,`Effect_3`,`EffectDieSides_1`,`EffectDieSides_2`,`EffectDieSides_3`,`EffectRealPointsPerLevel_1`,`EffectRealPointsPerLevel_2`,`EffectRealPointsPerLevel_3`,`EffectBasePoints_1`,`EffectBasePoints_2`,`EffectBasePoints_3`,`EffectMechanic_1`,`EffectMechanic_2`,`EffectMechanic_3`,`ImplicitTargetA_1`,`ImplicitTargetA_2`,`ImplicitTargetA_3`,`ImplicitTargetB_1`,`ImplicitTargetB_2`,`ImplicitTargetB_3`,`EffectRadiusIndex_1`,`EffectRadiusIndex_2`,`EffectRadiusIndex_3`,`EffectAura_1`,`EffectAura_2`,`EffectAura_3`,`EffectAuraPeriod_1`,`EffectAuraPeriod_2`,`EffectAuraPeriod_3`,`EffectMultipleValue_1`,`EffectMultipleValue_2`,`EffectMultipleValue_3`,`EffectChainTargets_1`,`EffectChainTargets_2`,`EffectChainTargets_3`,`EffectItemType_1`,`EffectItemType_2`,`EffectItemType_3`,`EffectMiscValue_1`,`EffectMiscValue_2`,`EffectMiscValue_3`,`EffectMiscValueB_1`,`EffectMiscValueB_2`,`EffectMiscValueB_3`,`EffectTriggerSpell_1`,`EffectTriggerSpell_2`,`EffectTriggerSpell_3`,`EffectPointsPerCombo_1`,`EffectPointsPerCombo_2`,`EffectPointsPerCombo_3`,`EffectSpellClassMaskA_1`,`EffectSpellClassMaskA_2`,`EffectSpellClassMaskA_3`,`EffectSpellClassMaskB_1`,`EffectSpellClassMaskB_2`,`EffectSpellClassMaskB_3`,`EffectSpellClassMaskC_1`,`EffectSpellClassMaskC_2`,`EffectSpellClassMaskC_3`,`SpellVisualID_1`,`SpellVisualID_2`,`SpellIconID`,`ActiveIconID`,`SpellPriority`,`Name_Lang_enUS`,`Name_Lang_enGB`,`Name_Lang_koKR`,`Name_Lang_frFR`,`Name_Lang_deDE`,`Name_Lang_enCN`,`Name_Lang_zhCN`,`Name_Lang_enTW`,`Name_Lang_zhTW`,`Name_Lang_esES`,`Name_Lang_esMX`,`Name_Lang_ruRU`,`Name_Lang_ptPT`,`Name_Lang_ptBR`,`Name_Lang_itIT`,`Name_Lang_Unk`,`Name_Lang_Mask`,`NameSubtext_Lang_enUS`,`NameSubtext_Lang_enGB`,`NameSubtext_Lang_koKR`,`NameSubtext_Lang_frFR`,`NameSubtext_Lang_deDE`,`NameSubtext_Lang_enCN`,`NameSubtext_Lang_zhCN`,`NameSubtext_Lang_enTW`,`NameSubtext_Lang_zhTW`,`NameSubtext_Lang_esES`,`NameSubtext_Lang_esMX`,`NameSubtext_Lang_ruRU`,`NameSubtext_Lang_ptPT`,`NameSubtext_Lang_ptBR`,`NameSubtext_Lang_itIT`,`NameSubtext_Lang_Unk`,`NameSubtext_Lang_Mask`,`Description_Lang_enUS`,`Description_Lang_enGB`,`Description_Lang_koKR`,`Description_Lang_frFR`,`Description_Lang_deDE`,`Description_Lang_enCN`,`Description_Lang_zhCN`,`Description_Lang_enTW`,`Description_Lang_zhTW`,`Description_Lang_esES`,`Description_Lang_esMX`,`Description_Lang_ruRU`,`Description_Lang_ptPT`,`Description_Lang_ptBR`,`Description_Lang_itIT`,`Description_Lang_Unk`,`Description_Lang_Mask`,`AuraDescription_Lang_enUS`,`AuraDescription_Lang_enGB`,`AuraDescription_Lang_koKR`,`AuraDescription_Lang_frFR`,`AuraDescription_Lang_deDE`,`AuraDescription_Lang_enCN`,`AuraDescription_Lang_zhCN`,`AuraDescription_Lang_enTW`,`AuraDescription_Lang_zhTW`,`AuraDescription_Lang_esES`,`AuraDescription_Lang_esMX`,`AuraDescription_Lang_ruRU`,`AuraDescription_Lang_ptPT`,`AuraDescription_Lang_ptBR`,`AuraDescription_Lang_itIT`,`AuraDescription_Lang_Unk`,`AuraDescription_Lang_Mask`,`ManaCostPct`,`StartRecoveryCategory`,`StartRecoveryTime`,`MaxTargetLevel`,`SpellClassSet`,`SpellClassMask_1`,`SpellClassMask_2`,`SpellClassMask_3`,`MaxTargets`,`DefenseType`,`PreventionType`,`StanceBarOrder`,`EffectChainAmplitude_1`,`EffectChainAmplitude_2`,`EffectChainAmplitude_3`,`MinFactionID`,`MinReputation`,`RequiredAuraVision`,`RequiredTotemCategoryID_1`,`RequiredTotemCategoryID_2`,`RequiredAreasID`,`SchoolMask`,`RuneCostID`,`SpellMissileID`,`PowerDisplayID`,`EffectBonusMultiplier_1`,`EffectBonusMultiplier_2`,`EffectBonusMultiplier_3`,`SpellDescriptionVariableID`,`SpellDifficultyID`) VALUES
(91003,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,31,0,0,0,101,0,0,0,0,4,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,28,0,0,1,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,301001,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,'Summon Onyxia Whelp','','','','','','','','','','','','','','','',16712190,'','','','','','','','','','','','','','','','',16712188,'','','','','','','','','','','','','','','','',16712188,'','','','','','','','','','','','','','','','',16712188,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0);

DELETE FROM `creature_loot_template` WHERE `Item`=18705;

REPLACE INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(301000, 17966, 0, 100.0, 0, 0, 1, 1),
(301000, 18422, 0, 100.0, 0, 0, 1, 1),
(301000, 18423, 0, 100.0, 0, 0, 1, 1),
(301000, 18492, 0, 100.0, 0, 0, 1, 1),
(301000, 18705, 0, 40.0, 0, 0, 1, 1),
(301000, 21108, 0, 100.0, 0, 0, 1, 1),
(301000, 300000, 300000, 100.0, 0, 0, 2, 2),
(301000, 300440, 300440, 100.0, 0, 0, 1, 1),
(301000, 301710, 301710, 100.0, 0, 0, 1, 1),
(301000, 301720, 301720, 100.0, 0, 0, 1, 1),
(301000, 301730, 301730, 100.0, 0, 0, 1, 1),
(301000, 302620, 302620, 100.0, 0, 0, 1, 1),
(301000, 302630, 302630, 100.0, 0, 0, 1, 1),
(301002, 4500, 0, 0.06, 0, 0, 1, 1),
(301002, 5759, 0, 0.1, 0, 0, 1, 1),
(301002, 5760, 0, 0.6254, 0, 0, 1, 1),
(301002, 7909, 0, 0.6254, 0, 0, 1, 1),
(301002, 7910, 0, 0.6254, 0, 0, 1, 1),
(301002, 8766, 0, 2.8143, 0, 0, 1, 1),
(301002, 8952, 0, 5.4409, 0, 0, 1, 1),
(301002, 10305, 0, 0.28, 0, 0, 1, 1),
(301002, 10306, 0, 0.32, 0, 0, 1, 1),
(301002, 10307, 0, 0.22, 0, 0, 1, 1),
(301002, 10308, 0, 0.26, 0, 0, 1, 1),
(301002, 10309, 0, 0.1, 0, 0, 1, 1),
(301002, 10310, 0, 0.1, 0, 0, 1, 1),
(301002, 12682, 0, 0.02, 0, 0, 1, 1),
(301002, 12689, 0, 0.04, 0, 0, 1, 1),
(301002, 12693, 0, 0.02, 0, 0, 1, 1),
(301002, 12694, 0, 0.02, 0, 0, 1, 1),
(301002, 12695, 0, 0.02, 0, 0, 1, 1),
(301002, 12697, 0, 0.02, 0, 0, 1, 1),
(301002, 12704, 0, 0.02, 0, 0, 1, 1),
(301002, 12713, 0, 0.16, 0, 0, 1, 1),
(301002, 12728, 0, 0.02, 0, 0, 1, 1),
(301002, 13444, 0, 1.18, 0, 0, 1, 1),
(301002, 13446, 0, 1.7, 0, 0, 1, 1),
(301002, 13490, 0, 0.06, 0, 0, 1, 1),
(301002, 13492, 0, 0.04, 0, 0, 1, 1),
(301002, 14466, 0, 0.02, 0, 0, 1, 1),
(301002, 14470, 0, 0.02, 0, 0, 1, 1),
(301002, 14478, 0, 0.02, 0, 0, 1, 1),
(301002, 14489, 0, 0.02, 0, 0, 1, 1),
(301002, 14491, 0, 0.02, 0, 0, 1, 1),
(301002, 14492, 0, 0.02, 0, 0, 1, 1),
(301002, 14494, 0, 0.02, 0, 0, 1, 1),
(301002, 14496, 0, 0.02, 0, 0, 1, 1),
(301002, 14498, 0, 0.02, 0, 0, 1, 1),
(301002, 14499, 0, 0.02, 0, 0, 1, 1),
(301002, 14504, 0, 0.16, 0, 0, 1, 1),
(301002, 14506, 0, 0.1, 0, 0, 1, 1),
(301002, 14508, 0, 0.1, 0, 0, 1, 1),
(301002, 15731, 0, 0.02, 0, 0, 1, 1),
(301002, 15737, 0, 0.02, 0, 0, 1, 1),
(301002, 15745, 0, 0.04, 0, 0, 1, 1),
(301002, 15746, 0, 0.04, 0, 0, 1, 1),
(301002, 15755, 0, 0.02, 0, 0, 1, 1),
(301002, 15757, 0, 0.02, 0, 0, 1, 1),
(301002, 15765, 0, 0.06, 0, 0, 1, 1),
(301002, 16043, 0, 0.02, 0, 0, 1, 1),
(301002, 16051, 0, 0.02, 0, 0, 1, 1),
(301002, 16215, 0, 0.02, 0, 0, 1, 1),
(301002, 16245, 0, 0.02, 0, 0, 1, 1),
(301002, 16251, 0, 0.04, 0, 0, 1, 1),
(301002, 20400, 0, 0.06, 0, 0, 1, 1),
(301002, 240160, 240160, 1.0, 0, 0, 1, 1),
(301002, 240240, 240240, 5.0, 0, 0, 1, 1),
(301002, 240900, 240900, 0.005, 0, 0, 1, 1),
(301002, 300480, 300480, 5.0, 0, 0, 1, 1),
(301002, 300790, 300790, 0.025, 0, 2, 1, 1),
(301002, 300810, 300810, 1.0, 0, 0, 1, 1),
(301002, 300830, 300830, 1.0, 0, 3, 1, 1),
(301002, 300840, 300840, 0.025, 0, 4, 1, 1),
(301002, 300870, 300870, 0.005, 0, 0, 1, 1),
(301002, 300880, 300880, 0.025, 0, 0, 1, 1),
(301002, 300890, 300890, 1.0, 0, 5, 1, 1),
(301002, 301830, 301830, 0.005, 0, 10, 1, 1),
(301002, 302680, 302680, 0.005, 0, 0, 1, 1);

REPLACE INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(240160, 8283, 0, 0.0, 0, 1, 1, 1),
(240160, 8289, 0, 0.0, 0, 1, 1, 1),
(240160, 8290, 0, 0.0, 0, 1, 1, 1),
(240160, 8296, 0, 0.0, 0, 1, 1, 1),
(240160, 8300, 0, 0.0, 0, 1, 1, 1),
(240160, 8307, 0, 0.0, 0, 1, 1, 1),
(240160, 8308, 0, 0.0, 0, 1, 1, 1),
(240160, 8309, 0, 0.0, 0, 1, 1, 1),
(240160, 8310, 0, 0.0, 0, 1, 1, 1),
(240160, 10105, 0, 0.0, 0, 1, 1, 1),
(240160, 10136, 0, 0.0, 0, 1, 1, 1),
(240160, 10137, 0, 0.0, 0, 1, 1, 1),
(240160, 10140, 0, 0.0, 0, 1, 1, 1),
(240160, 10144, 0, 0.0, 0, 1, 1, 1),
(240160, 10146, 0, 0.0, 0, 1, 1, 1),
(240160, 10147, 0, 0.0, 0, 1, 1, 1),
(240160, 10149, 0, 0.0, 0, 1, 1, 1),
(240160, 10154, 0, 0.0, 0, 1, 1, 1),
(240160, 10155, 0, 0.0, 0, 1, 1, 1),
(240160, 10156, 0, 0.0, 0, 1, 1, 1),
(240160, 10161, 0, 0.0, 0, 1, 1, 1),
(240160, 10210, 0, 0.0, 0, 1, 1, 1),
(240160, 10217, 0, 0.0, 0, 1, 1, 1),
(240160, 10219, 0, 0.0, 0, 1, 1, 1),
(240160, 10226, 0, 0.0, 0, 1, 1, 1),
(240160, 10228, 0, 0.0, 0, 1, 1, 1),
(240160, 10230, 0, 0.0, 0, 1, 1, 1),
(240160, 10249, 0, 0.0, 0, 1, 1, 1),
(240160, 10256, 0, 0.0, 0, 1, 1, 1),
(240160, 10258, 0, 0.0, 0, 1, 1, 1),
(240160, 10267, 0, 0.0, 0, 1, 1, 1),
(240160, 10275, 0, 0.0, 0, 1, 1, 1),
(240160, 10363, 0, 0.0, 0, 1, 1, 1),
(240160, 10373, 0, 0.0, 0, 1, 1, 1),
(240160, 10376, 0, 0.0, 0, 1, 1, 1),
(240160, 10379, 0, 0.0, 0, 1, 1, 1),
(240160, 10380, 0, 0.0, 0, 1, 1, 1),
(240160, 10383, 0, 0.0, 0, 1, 1, 1),
(240160, 10387, 0, 0.0, 0, 1, 1, 1),
(240160, 10391, 0, 0.0, 0, 1, 1, 1),
(240160, 11979, 0, 0.0, 0, 1, 1, 1),
(240160, 12016, 0, 0.0, 0, 1, 1, 1),
(240160, 12046, 0, 0.0, 0, 1, 1, 1),
(240160, 12057, 0, 0.0, 0, 1, 1, 1),
(240160, 14303, 0, 0.0, 0, 1, 1, 1),
(240160, 14306, 0, 0.0, 0, 1, 1, 1),
(240160, 14308, 0, 0.0, 0, 1, 1, 1),
(240160, 14312, 0, 0.0, 0, 1, 1, 1),
(240160, 14317, 0, 0.0, 0, 1, 1, 1),
(240160, 14323, 0, 0.0, 0, 1, 1, 1),
(240160, 14324, 0, 0.0, 0, 1, 1, 1),
(240160, 14325, 0, 0.0, 0, 1, 1, 1),
(240160, 14330, 0, 0.0, 0, 1, 1, 1),
(240160, 14337, 0, 0.0, 0, 1, 1, 1),
(240160, 14458, 0, 0.0, 0, 1, 1, 1),
(240160, 14465, 0, 0.0, 0, 1, 1, 1),
(240160, 14684, 0, 0.0, 0, 1, 1, 1),
(240160, 14688, 0, 0.0, 0, 1, 1, 1),
(240160, 14863, 0, 0.0, 0, 1, 1, 1),
(240160, 14865, 0, 0.0, 0, 1, 1, 1),
(240160, 14868, 0, 0.0, 0, 1, 1, 1),
(240160, 14935, 0, 0.0, 0, 1, 1, 1),
(240160, 14936, 0, 0.0, 0, 1, 1, 1),
(240160, 14966, 0, 0.0, 0, 1, 1, 1),
(240160, 14973, 0, 0.0, 0, 1, 1, 1),
(240160, 14976, 0, 0.0, 0, 1, 1, 1),
(240160, 14977, 0, 0.0, 0, 1, 1, 1),
(240160, 15189, 0, 0.0, 0, 1, 1, 1),
(240160, 15192, 0, 0.0, 0, 1, 1, 1),
(240160, 15194, 0, 0.0, 0, 1, 1, 1),
(240160, 15239, 0, 0.0, 0, 1, 1, 1),
(240160, 15266, 0, 0.0, 0, 1, 1, 1),
(240160, 15278, 0, 0.0, 0, 1, 1, 1),
(240160, 15282, 0, 0.0, 0, 1, 1, 1),
(240160, 15288, 0, 0.0, 0, 1, 1, 1),
(240160, 15325, 0, 0.0, 0, 1, 1, 1),
(240160, 15430, 0, 0.0, 0, 1, 1, 1),
(240160, 15433, 0, 0.0, 0, 1, 1, 1),
(240160, 15434, 0, 0.0, 0, 1, 1, 1),
(240160, 15436, 0, 0.0, 0, 1, 1, 1),
(240160, 15437, 0, 0.0, 0, 1, 1, 1),
(240160, 15660, 0, 0.0, 0, 1, 1, 1),
(240160, 15664, 0, 0.0, 0, 1, 1, 1),
(240160, 15665, 0, 0.0, 0, 1, 1, 1),
(240160, 15667, 0, 0.0, 0, 1, 1, 1),
(240160, 15670, 0, 0.0, 0, 1, 1, 1),
(240160, 15672, 0, 0.0, 0, 1, 1, 1),
(240160, 15674, 0, 0.0, 0, 1, 1, 1),
(240160, 15676, 0, 0.0, 0, 1, 1, 1),
(240160, 15677, 0, 0.0, 0, 1, 1, 1),
(240160, 15679, 0, 0.0, 0, 1, 1, 1),
(240160, 15683, 0, 0.0, 0, 1, 1, 1),
(240160, 15931, 0, 0.0, 0, 1, 1, 1),
(240160, 15943, 0, 0.0, 0, 1, 1, 1),
(240160, 15986, 0, 0.0, 0, 1, 1, 1),
(240160, 15987, 0, 0.0, 0, 1, 1, 1),
(240240, 3944, 0, 0.0, 0, 1, 1, 1),
(240240, 3945, 0, 0.0, 0, 1, 1, 1),
(240240, 3946, 0, 0.0, 0, 1, 1, 1),
(240240, 3947, 0, 0.0, 0, 1, 1, 1),
(240240, 3948, 0, 0.0, 0, 1, 1, 1),
(240240, 3949, 0, 0.0, 0, 1, 1, 1),
(240240, 3950, 0, 0.0, 0, 1, 1, 1),
(240240, 3951, 0, 0.0, 0, 1, 1, 1),
(240240, 3969, 0, 0.0, 0, 1, 1, 1),
(240240, 3970, 0, 0.0, 0, 1, 1, 1),
(240240, 3971, 0, 0.0, 0, 1, 1, 1),
(240240, 3972, 0, 0.0, 0, 1, 1, 1),
(240240, 3973, 0, 0.0, 0, 1, 1, 1),
(240240, 3974, 0, 0.0, 0, 1, 1, 1),
(240240, 3975, 0, 0.0, 0, 1, 1, 1),
(240240, 3976, 0, 0.0, 0, 1, 1, 1),
(240240, 3987, 0, 0.0, 0, 1, 1, 1),
(240240, 3990, 0, 0.0, 0, 1, 1, 1),
(240240, 3992, 0, 0.0, 0, 1, 1, 1),
(240240, 3993, 0, 0.0, 0, 1, 1, 1),
(240240, 3994, 0, 0.0, 0, 1, 1, 1),
(240240, 3995, 0, 0.0, 0, 1, 1, 1),
(240240, 3996, 0, 0.0, 0, 1, 1, 1),
(240240, 3997, 0, 0.0, 0, 1, 1, 1),
(240240, 3998, 0, 0.0, 0, 1, 1, 1),
(240240, 3999, 0, 0.0, 0, 1, 1, 1),
(240240, 8080, 0, 0.0, 0, 1, 1, 1),
(240240, 8081, 0, 0.0, 0, 1, 1, 1),
(240240, 8082, 0, 0.0, 0, 1, 1, 1),
(240240, 8083, 0, 0.0, 0, 1, 1, 1),
(240240, 8084, 0, 0.0, 0, 1, 1, 1),
(240240, 8085, 0, 0.0, 0, 1, 1, 1),
(240240, 8086, 0, 0.0, 0, 1, 1, 1),
(240240, 8752, 0, 0.0, 0, 1, 1, 1),
(240240, 8753, 0, 0.0, 0, 1, 1, 1),
(240240, 8754, 0, 0.0, 0, 1, 1, 1),
(240240, 8755, 0, 0.0, 0, 1, 1, 1),
(240240, 13816, 0, 0.0, 0, 1, 1, 1),
(240240, 13817, 0, 0.0, 0, 1, 1, 1),
(240240, 13818, 0, 0.0, 0, 1, 1, 1),
(240240, 13819, 0, 0.0, 0, 1, 1, 1),
(240240, 13820, 0, 0.0, 0, 1, 1, 1),
(240240, 13821, 0, 0.0, 0, 1, 1, 1),
(240240, 13822, 0, 0.0, 0, 1, 1, 1),
(240240, 13823, 0, 0.0, 0, 1, 1, 1),
(240240, 13825, 0, 0.0, 0, 1, 1, 1),
(240900, 2243, 0, 0.0, 0, 1, 1, 1),
(240900, 14554, 0, 0.0, 0, 1, 1, 1),
(240900, 14555, 0, 0.0, 0, 1, 1, 1),
(300000, 16900, 0, 0.0, 0, 1, 1, 1),
(300000, 16908, 0, 0.0, 0, 1, 1, 1),
(300000, 16914, 0, 0.0, 0, 1, 1, 1),
(300000, 16921, 0, 0.0, 0, 1, 1, 1),
(300000, 16929, 0, 0.0, 0, 1, 1, 1),
(300000, 16939, 0, 0.0, 0, 1, 1, 1),
(300000, 16947, 0, 0.0, 0, 1, 1, 1),
(300000, 16963, 0, 0.0, 0, 1, 1, 1),
(300000, 16955, 0, 0.0, 0, 1, 1, 1),
(300440, 2564, 0, 0.0, 0, 1, 1, 1),
(300440, 7734, 0, 0.0, 0, 1, 1, 1),
(300440, 13009, 0, 0.0, 0, 1, 1, 1),
(300440, 13030, 0, 0.0, 0, 1, 1, 1),
(300440, 13046, 0, 0.0, 0, 1, 1, 1),
(300440, 13065, 0, 0.0, 0, 1, 1, 1),
(300440, 13066, 0, 0.0, 0, 1, 1, 1),
(300440, 13085, 0, 0.0, 0, 1, 1, 1),
(300440, 13125, 0, 0.0, 0, 1, 1, 1),
(300440, 13139, 0, 0.0, 0, 1, 1, 1),
(300480, 3936, 0, 0.0, 0, 1, 1, 1),
(300480, 3937, 0, 0.0, 0, 1, 1, 1),
(300480, 3938, 0, 0.0, 0, 1, 1, 1),
(300480, 3939, 0, 0.0, 0, 1, 1, 1),
(300480, 3940, 0, 0.0, 0, 1, 1, 1),
(300480, 3941, 0, 0.0, 0, 1, 1, 1),
(300480, 3942, 0, 0.0, 0, 1, 1, 1),
(300480, 3943, 0, 0.0, 0, 1, 1, 1),
(300480, 3961, 0, 0.0, 0, 1, 1, 1),
(300480, 3962, 0, 0.0, 0, 1, 1, 1),
(300480, 3963, 0, 0.0, 0, 1, 1, 1),
(300480, 3964, 0, 0.0, 0, 1, 1, 1),
(300480, 3965, 0, 0.0, 0, 1, 1, 1),
(300480, 3966, 0, 0.0, 0, 1, 1, 1),
(300480, 3967, 0, 0.0, 0, 1, 1, 1),
(300480, 3968, 0, 0.0, 0, 1, 1, 1),
(300480, 3986, 0, 0.0, 0, 1, 1, 1),
(300480, 3989, 0, 0.0, 0, 1, 1, 1),
(300480, 4000, 0, 0.0, 0, 1, 1, 1),
(300480, 4001, 0, 0.0, 0, 1, 1, 1),
(300480, 4002, 0, 0.0, 0, 1, 1, 1),
(300480, 4003, 0, 0.0, 0, 1, 1, 1),
(300480, 4004, 0, 0.0, 0, 1, 1, 1),
(300480, 4005, 0, 0.0, 0, 1, 1, 1),
(300480, 4006, 0, 0.0, 0, 1, 1, 1),
(300480, 4007, 0, 0.0, 0, 1, 1, 1),
(300480, 4017, 0, 0.0, 0, 1, 1, 1),
(300480, 4018, 0, 0.0, 0, 1, 1, 1),
(300480, 4019, 0, 0.0, 0, 1, 1, 1),
(300480, 4020, 0, 0.0, 0, 1, 1, 1),
(300480, 4021, 0, 0.0, 0, 1, 1, 1),
(300480, 4022, 0, 0.0, 0, 1, 1, 1),
(300480, 4023, 0, 0.0, 0, 1, 1, 1),
(300480, 4024, 0, 0.0, 0, 1, 1, 1),
(300480, 4025, 0, 0.0, 0, 1, 1, 1),
(300480, 4026, 0, 0.0, 0, 1, 1, 1),
(300480, 8749, 0, 0.0, 0, 1, 1, 1),
(300480, 8750, 0, 0.0, 0, 1, 1, 1),
(300480, 8751, 0, 0.0, 0, 1, 1, 1),
(300480, 13824, 0, 0.0, 0, 1, 1, 1),
(300610, 10135, 0, 0.0, 0, 1, 1, 1),
(300610, 10143, 0, 0.0, 0, 1, 1, 1),
(300610, 10151, 0, 0.0, 0, 1, 1, 1),
(300610, 10157, 0, 0.0, 0, 1, 1, 1),
(300610, 10158, 0, 0.0, 0, 1, 1, 1),
(300610, 10246, 0, 0.0, 0, 1, 1, 1),
(300610, 10252, 0, 0.0, 0, 1, 1, 1),
(300610, 10254, 0, 0.0, 0, 1, 1, 1),
(300610, 10262, 0, 0.0, 0, 1, 1, 1),
(300610, 10264, 0, 0.0, 0, 1, 1, 1),
(300610, 10266, 0, 0.0, 0, 1, 1, 1),
(300610, 10271, 0, 0.0, 0, 1, 1, 1),
(300610, 10273, 0, 0.0, 0, 1, 1, 1),
(300610, 10367, 0, 0.0, 0, 1, 1, 1),
(300610, 10384, 0, 0.0, 0, 1, 1, 1),
(300610, 10389, 0, 0.0, 0, 1, 1, 1),
(300610, 11980, 0, 0.0, 0, 1, 1, 1),
(300610, 12017, 0, 0.0, 0, 1, 1, 1),
(300610, 12048, 0, 0.0, 0, 1, 1, 1),
(300610, 12058, 0, 0.0, 0, 1, 1, 1),
(300610, 14328, 0, 0.0, 0, 1, 1, 1),
(300610, 14332, 0, 0.0, 0, 1, 1, 1),
(300610, 14336, 0, 0.0, 0, 1, 1, 1),
(300610, 14456, 0, 0.0, 0, 1, 1, 1),
(300610, 14464, 0, 0.0, 0, 1, 1, 1),
(300610, 14680, 0, 0.0, 0, 1, 1, 1),
(300610, 14811, 0, 0.0, 0, 1, 1, 1),
(300610, 14812, 0, 0.0, 0, 1, 1, 1),
(300610, 14975, 0, 0.0, 0, 1, 1, 1),
(300610, 14979, 0, 0.0, 0, 1, 1, 1),
(300610, 14982, 0, 0.0, 0, 1, 1, 1),
(300610, 15221, 0, 0.0, 0, 1, 1, 1),
(300610, 15240, 0, 0.0, 0, 1, 1, 1),
(300610, 15247, 0, 0.0, 0, 1, 1, 1),
(300610, 15258, 0, 0.0, 0, 1, 1, 1),
(300610, 15283, 0, 0.0, 0, 1, 1, 1),
(300610, 15289, 0, 0.0, 0, 1, 1, 1),
(300610, 15439, 0, 0.0, 0, 1, 1, 1),
(300610, 15442, 0, 0.0, 0, 1, 1, 1),
(300610, 15680, 0, 0.0, 0, 1, 1, 1),
(300610, 15684, 0, 0.0, 0, 1, 1, 1),
(300610, 15687, 0, 0.0, 0, 1, 1, 1),
(300610, 15941, 0, 0.0, 0, 1, 1, 1),
(300610, 15942, 0, 0.0, 0, 1, 1, 1),
(300610, 15968, 0, 0.0, 0, 1, 1, 1),
(300610, 15989, 0, 0.0, 0, 1, 1, 1),
(300790, 9402, 0, 0.0, 0, 2, 1, 1),
(300790, 13001, 0, 0.0, 0, 2, 1, 1),
(300790, 13015, 0, 0.0, 0, 2, 1, 1),
(300790, 13028, 0, 0.0, 0, 2, 1, 1),
(300790, 13053, 0, 0.0, 0, 2, 1, 1),
(300790, 13060, 0, 0.0, 0, 2, 1, 1),
(300790, 13072, 0, 0.0, 0, 2, 1, 1),
(300790, 13096, 0, 0.0, 0, 2, 1, 1),
(300790, 13116, 0, 0.0, 0, 2, 1, 1),
(300790, 13133, 0, 0.0, 0, 2, 1, 1),
(300810, 8288, 0, 0.0, 0, 1, 1, 1),
(300810, 8292, 0, 0.0, 0, 1, 1, 1),
(300810, 8299, 0, 0.0, 0, 1, 1, 1),
(300810, 8301, 0, 0.0, 0, 1, 1, 1),
(300810, 8302, 0, 0.0, 0, 1, 1, 1),
(300810, 8305, 0, 0.0, 0, 1, 1, 1),
(300810, 8306, 0, 0.0, 0, 1, 1, 1),
(300810, 10101, 0, 0.0, 0, 1, 1, 1),
(300810, 10102, 0, 0.0, 0, 1, 1, 1),
(300810, 10104, 0, 0.0, 0, 1, 1, 1),
(300810, 10112, 0, 0.0, 0, 1, 1, 1),
(300810, 10118, 0, 0.0, 0, 1, 1, 1),
(300810, 10138, 0, 0.0, 0, 1, 1, 1),
(300810, 10145, 0, 0.0, 0, 1, 1, 1),
(300810, 10148, 0, 0.0, 0, 1, 1, 1),
(300810, 10159, 0, 0.0, 0, 1, 1, 1),
(300810, 10164, 0, 0.0, 0, 1, 1, 1),
(300810, 10178, 0, 0.0, 0, 1, 1, 1),
(300810, 10181, 0, 0.0, 0, 1, 1, 1),
(300810, 10182, 0, 0.0, 0, 1, 1, 1),
(300810, 10211, 0, 0.0, 0, 1, 1, 1),
(300810, 10213, 0, 0.0, 0, 1, 1, 1),
(300810, 10214, 0, 0.0, 0, 1, 1, 1),
(300810, 10216, 0, 0.0, 0, 1, 1, 1),
(300810, 10221, 0, 0.0, 0, 1, 1, 1),
(300810, 10222, 0, 0.0, 0, 1, 1, 1),
(300810, 10223, 0, 0.0, 0, 1, 1, 1),
(300810, 10225, 0, 0.0, 0, 1, 1, 1),
(300810, 10232, 0, 0.0, 0, 1, 1, 1),
(300810, 10234, 0, 0.0, 0, 1, 1, 1),
(300810, 10235, 0, 0.0, 0, 1, 1, 1),
(300810, 10236, 0, 0.0, 0, 1, 1, 1),
(300810, 10237, 0, 0.0, 0, 1, 1, 1),
(300810, 10279, 0, 0.0, 0, 1, 1, 1),
(300810, 10280, 0, 0.0, 0, 1, 1, 1),
(300810, 10281, 0, 0.0, 0, 1, 1, 1),
(300810, 10362, 0, 0.0, 0, 1, 1, 1),
(300810, 10364, 0, 0.0, 0, 1, 1, 1),
(300810, 10365, 0, 0.0, 0, 1, 1, 1),
(300810, 10369, 0, 0.0, 0, 1, 1, 1),
(300810, 10371, 0, 0.0, 0, 1, 1, 1),
(300810, 10372, 0, 0.0, 0, 1, 1, 1),
(300810, 10374, 0, 0.0, 0, 1, 1, 1),
(300810, 10377, 0, 0.0, 0, 1, 1, 1),
(300810, 10381, 0, 0.0, 0, 1, 1, 1),
(300810, 11978, 0, 0.0, 0, 1, 1, 1),
(300810, 11991, 0, 0.0, 0, 1, 1, 1),
(300810, 12004, 0, 0.0, 0, 1, 1, 1),
(300810, 12026, 0, 0.0, 0, 1, 1, 1),
(300810, 14307, 0, 0.0, 0, 1, 1, 1),
(300810, 14310, 0, 0.0, 0, 1, 1, 1),
(300810, 14314, 0, 0.0, 0, 1, 1, 1),
(300810, 14315, 0, 0.0, 0, 1, 1, 1),
(300810, 14316, 0, 0.0, 0, 1, 1, 1),
(300810, 14319, 0, 0.0, 0, 1, 1, 1),
(300810, 14327, 0, 0.0, 0, 1, 1, 1),
(300810, 14331, 0, 0.0, 0, 1, 1, 1),
(300810, 14453, 0, 0.0, 0, 1, 1, 1),
(300810, 14455, 0, 0.0, 0, 1, 1, 1),
(300810, 14457, 0, 0.0, 0, 1, 1, 1),
(300810, 14670, 0, 0.0, 0, 1, 1, 1),
(300810, 14676, 0, 0.0, 0, 1, 1, 1),
(300810, 14677, 0, 0.0, 0, 1, 1, 1),
(300810, 14682, 0, 0.0, 0, 1, 1, 1),
(300810, 14683, 0, 0.0, 0, 1, 1, 1),
(300810, 14798, 0, 0.0, 0, 1, 1, 1),
(300810, 14799, 0, 0.0, 0, 1, 1, 1),
(300810, 14800, 0, 0.0, 0, 1, 1, 1),
(300810, 14804, 0, 0.0, 0, 1, 1, 1),
(300810, 14808, 0, 0.0, 0, 1, 1, 1),
(300810, 14810, 0, 0.0, 0, 1, 1, 1),
(300810, 14854, 0, 0.0, 0, 1, 1, 1),
(300810, 14858, 0, 0.0, 0, 1, 1, 1),
(300810, 14864, 0, 0.0, 0, 1, 1, 1),
(300810, 14869, 0, 0.0, 0, 1, 1, 1),
(300810, 14932, 0, 0.0, 0, 1, 1, 1),
(300810, 14933, 0, 0.0, 0, 1, 1, 1),
(300810, 14937, 0, 0.0, 0, 1, 1, 1),
(300810, 14969, 0, 0.0, 0, 1, 1, 1),
(300810, 14970, 0, 0.0, 0, 1, 1, 1),
(300810, 14983, 0, 0.0, 0, 1, 1, 1),
(300810, 15219, 0, 0.0, 0, 1, 1, 1),
(300810, 15238, 0, 0.0, 0, 1, 1, 1),
(300810, 15256, 0, 0.0, 0, 1, 1, 1),
(300810, 15265, 0, 0.0, 0, 1, 1, 1),
(300810, 15272, 0, 0.0, 0, 1, 1, 1),
(300810, 15276, 0, 0.0, 0, 1, 1, 1),
(300810, 15426, 0, 0.0, 0, 1, 1, 1),
(300810, 15429, 0, 0.0, 0, 1, 1, 1),
(300810, 15431, 0, 0.0, 0, 1, 1, 1),
(300810, 15432, 0, 0.0, 0, 1, 1, 1),
(300810, 15658, 0, 0.0, 0, 1, 1, 1),
(300810, 15666, 0, 0.0, 0, 1, 1, 1),
(300810, 15668, 0, 0.0, 0, 1, 1, 1),
(300810, 15673, 0, 0.0, 0, 1, 1, 1),
(300810, 15681, 0, 0.0, 0, 1, 1, 1),
(300810, 15693, 0, 0.0, 0, 1, 1, 1),
(300810, 15890, 0, 0.0, 0, 1, 1, 1),
(300810, 15938, 0, 0.0, 0, 1, 1, 1),
(300810, 15939, 0, 0.0, 0, 1, 1, 1),
(300810, 15967, 0, 0.0, 0, 1, 1, 1),
(300830, 8303, 0, 0.0, 0, 3, 1, 1),
(300830, 8313, 0, 0.0, 0, 3, 1, 1),
(300830, 10139, 0, 0.0, 0, 3, 1, 1),
(300830, 10141, 0, 0.0, 0, 3, 1, 1),
(300830, 10142, 0, 0.0, 0, 3, 1, 1),
(300830, 10150, 0, 0.0, 0, 3, 1, 1),
(300830, 10152, 0, 0.0, 0, 3, 1, 1),
(300830, 10153, 0, 0.0, 0, 3, 1, 1),
(300830, 10160, 0, 0.0, 0, 3, 1, 1),
(300830, 10162, 0, 0.0, 0, 3, 1, 1),
(300830, 10163, 0, 0.0, 0, 3, 1, 1),
(300830, 10215, 0, 0.0, 0, 3, 1, 1),
(300830, 10218, 0, 0.0, 0, 3, 1, 1),
(300830, 10220, 0, 0.0, 0, 3, 1, 1),
(300830, 10227, 0, 0.0, 0, 3, 1, 1),
(300830, 10247, 0, 0.0, 0, 3, 1, 1),
(300830, 10248, 0, 0.0, 0, 3, 1, 1),
(300830, 10250, 0, 0.0, 0, 3, 1, 1),
(300830, 10251, 0, 0.0, 0, 3, 1, 1),
(300830, 10253, 0, 0.0, 0, 3, 1, 1),
(300830, 10255, 0, 0.0, 0, 3, 1, 1),
(300830, 10257, 0, 0.0, 0, 3, 1, 1),
(300830, 10259, 0, 0.0, 0, 3, 1, 1),
(300830, 10260, 0, 0.0, 0, 3, 1, 1),
(300830, 10261, 0, 0.0, 0, 3, 1, 1),
(300830, 10263, 0, 0.0, 0, 3, 1, 1),
(300830, 10265, 0, 0.0, 0, 3, 1, 1),
(300830, 10268, 0, 0.0, 0, 3, 1, 1),
(300830, 10269, 0, 0.0, 0, 3, 1, 1),
(300830, 10270, 0, 0.0, 0, 3, 1, 1),
(300830, 10272, 0, 0.0, 0, 3, 1, 1),
(300830, 10274, 0, 0.0, 0, 3, 1, 1),
(300830, 10366, 0, 0.0, 0, 3, 1, 1),
(300830, 10368, 0, 0.0, 0, 3, 1, 1),
(300830, 10378, 0, 0.0, 0, 3, 1, 1),
(300830, 10382, 0, 0.0, 0, 3, 1, 1),
(300830, 10385, 0, 0.0, 0, 3, 1, 1),
(300830, 10386, 0, 0.0, 0, 3, 1, 1),
(300830, 10388, 0, 0.0, 0, 3, 1, 1),
(300830, 10390, 0, 0.0, 0, 3, 1, 1),
(300830, 11992, 0, 0.0, 0, 3, 1, 1),
(300830, 12005, 0, 0.0, 0, 3, 1, 1),
(300830, 12027, 0, 0.0, 0, 3, 1, 1),
(300830, 12036, 0, 0.0, 0, 3, 1, 1),
(300830, 14318, 0, 0.0, 0, 3, 1, 1),
(300830, 14322, 0, 0.0, 0, 3, 1, 1),
(300830, 14326, 0, 0.0, 0, 3, 1, 1),
(300830, 14329, 0, 0.0, 0, 3, 1, 1),
(300830, 14333, 0, 0.0, 0, 3, 1, 1),
(300830, 14334, 0, 0.0, 0, 3, 1, 1),
(300830, 14335, 0, 0.0, 0, 3, 1, 1),
(300830, 14460, 0, 0.0, 0, 3, 1, 1),
(300830, 14461, 0, 0.0, 0, 3, 1, 1),
(300830, 14462, 0, 0.0, 0, 3, 1, 1),
(300830, 14463, 0, 0.0, 0, 3, 1, 1),
(300830, 14681, 0, 0.0, 0, 3, 1, 1),
(300830, 14685, 0, 0.0, 0, 3, 1, 1),
(300830, 14686, 0, 0.0, 0, 3, 1, 1),
(300830, 14687, 0, 0.0, 0, 3, 1, 1),
(300830, 14809, 0, 0.0, 0, 3, 1, 1),
(300830, 14814, 0, 0.0, 0, 3, 1, 1),
(300830, 14815, 0, 0.0, 0, 3, 1, 1),
(300830, 14816, 0, 0.0, 0, 3, 1, 1),
(300830, 14817, 0, 0.0, 0, 3, 1, 1),
(300830, 14862, 0, 0.0, 0, 3, 1, 1),
(300830, 14866, 0, 0.0, 0, 3, 1, 1),
(300830, 14867, 0, 0.0, 0, 3, 1, 1),
(300830, 14931, 0, 0.0, 0, 3, 1, 1),
(300830, 14978, 0, 0.0, 0, 3, 1, 1),
(300830, 14980, 0, 0.0, 0, 3, 1, 1),
(300830, 14981, 0, 0.0, 0, 3, 1, 1),
(300830, 15193, 0, 0.0, 0, 3, 1, 1),
(300830, 15195, 0, 0.0, 0, 3, 1, 1),
(300830, 15220, 0, 0.0, 0, 3, 1, 1),
(300830, 15246, 0, 0.0, 0, 3, 1, 1),
(300830, 15257, 0, 0.0, 0, 3, 1, 1),
(300830, 15267, 0, 0.0, 0, 3, 1, 1),
(300830, 15273, 0, 0.0, 0, 3, 1, 1),
(300830, 15296, 0, 0.0, 0, 3, 1, 1),
(300830, 15435, 0, 0.0, 0, 3, 1, 1),
(300830, 15438, 0, 0.0, 0, 3, 1, 1),
(300830, 15440, 0, 0.0, 0, 3, 1, 1),
(300830, 15441, 0, 0.0, 0, 3, 1, 1),
(300830, 15669, 0, 0.0, 0, 3, 1, 1),
(300830, 15675, 0, 0.0, 0, 3, 1, 1),
(300830, 15678, 0, 0.0, 0, 3, 1, 1),
(300830, 15682, 0, 0.0, 0, 3, 1, 1),
(300830, 15685, 0, 0.0, 0, 3, 1, 1),
(300830, 15686, 0, 0.0, 0, 3, 1, 1),
(300830, 15887, 0, 0.0, 0, 3, 1, 1),
(300830, 15940, 0, 0.0, 0, 3, 1, 1),
(300830, 15988, 0, 0.0, 0, 3, 1, 1),
(300830, 15991, 0, 0.0, 0, 3, 1, 1),
(300840, 5267, 0, 0.0, 0, 4, 1, 1),
(300840, 6622, 0, 0.0, 0, 4, 1, 1),
(300840, 13000, 0, 0.0, 0, 4, 1, 1),
(300840, 13006, 0, 0.0, 0, 4, 1, 1),
(300840, 13023, 0, 0.0, 0, 4, 1, 1),
(300840, 13075, 0, 0.0, 0, 4, 1, 1),
(300840, 13083, 0, 0.0, 0, 4, 1, 1),
(300840, 13107, 0, 0.0, 0, 4, 1, 1),
(300840, 13113, 0, 0.0, 0, 4, 1, 1),
(300840, 13123, 0, 0.0, 0, 4, 1, 1),
(300870, 944, 0, 0.0, 0, 1, 1, 1),
(300870, 1263, 0, 0.0, 0, 1, 1, 1),
(300870, 1443, 0, 0.0, 0, 1, 1, 1),
(300870, 14553, 0, 0.0, 0, 1, 1, 1),
(300880, 1973, 0, 0.0, 0, 1, 1, 1),
(300880, 4696, 0, 0.0, 0, 1, 1, 1),
(300880, 13002, 0, 0.0, 0, 1, 1, 1),
(300880, 13004, 0, 0.0, 0, 1, 1, 1),
(300880, 13007, 0, 0.0, 0, 1, 1, 1),
(300880, 13047, 0, 0.0, 0, 1, 1, 1),
(300880, 13070, 0, 0.0, 0, 1, 1, 1),
(300880, 13101, 0, 0.0, 0, 1, 1, 1),
(300880, 13135, 0, 0.0, 0, 1, 1, 1),
(300880, 13146, 0, 0.0, 0, 1, 1, 1),
(300890, 10135, 0, 0.0, 0, 5, 1, 1),
(300890, 10143, 0, 0.0, 0, 5, 1, 1),
(300890, 10151, 0, 0.0, 0, 5, 1, 1),
(300890, 10157, 0, 0.0, 0, 5, 1, 1),
(300890, 10158, 0, 0.0, 0, 5, 1, 1),
(300890, 10246, 0, 0.0, 0, 5, 1, 1),
(300890, 10252, 0, 0.0, 0, 5, 1, 1),
(300890, 10254, 0, 0.0, 0, 5, 1, 1),
(300890, 10262, 0, 0.0, 0, 5, 1, 1),
(300890, 10264, 0, 0.0, 0, 5, 1, 1),
(300890, 10266, 0, 0.0, 0, 5, 1, 1),
(300890, 10271, 0, 0.0, 0, 5, 1, 1),
(300890, 10273, 0, 0.0, 0, 5, 1, 1),
(300890, 10367, 0, 0.0, 0, 5, 1, 1),
(300890, 10384, 0, 0.0, 0, 5, 1, 1),
(300890, 10389, 0, 0.0, 0, 5, 1, 1),
(300890, 11980, 0, 0.0, 0, 5, 1, 1),
(300890, 12017, 0, 0.0, 0, 5, 1, 1),
(300890, 12048, 0, 0.0, 0, 5, 1, 1),
(300890, 12058, 0, 0.0, 0, 5, 1, 1),
(300890, 14328, 0, 0.0, 0, 5, 1, 1),
(300890, 14332, 0, 0.0, 0, 5, 1, 1),
(300890, 14336, 0, 0.0, 0, 5, 1, 1),
(300890, 14456, 0, 0.0, 0, 5, 1, 1),
(300890, 14464, 0, 0.0, 0, 5, 1, 1),
(300890, 14680, 0, 0.0, 0, 5, 1, 1),
(300890, 14811, 0, 0.0, 0, 5, 1, 1),
(300890, 14812, 0, 0.0, 0, 5, 1, 1),
(300890, 14975, 0, 0.0, 0, 5, 1, 1),
(300890, 14979, 0, 0.0, 0, 5, 1, 1),
(300890, 14982, 0, 0.0, 0, 5, 1, 1),
(300890, 15221, 0, 0.0, 0, 5, 1, 1),
(300890, 15240, 0, 0.0, 0, 5, 1, 1),
(300890, 15247, 0, 0.0, 0, 5, 1, 1),
(300890, 15258, 0, 0.0, 0, 5, 1, 1),
(300890, 15283, 0, 0.0, 0, 5, 1, 1),
(300890, 15289, 0, 0.0, 0, 5, 1, 1),
(300890, 15439, 0, 0.0, 0, 5, 1, 1),
(300890, 15442, 0, 0.0, 0, 5, 1, 1),
(300890, 15680, 0, 0.0, 0, 5, 1, 1),
(300890, 15684, 0, 0.0, 0, 5, 1, 1),
(300890, 15687, 0, 0.0, 0, 5, 1, 1),
(300890, 15941, 0, 0.0, 0, 5, 1, 1),
(300890, 15942, 0, 0.0, 0, 5, 1, 1),
(300890, 15968, 0, 0.0, 0, 5, 1, 1),
(300890, 15989, 0, 0.0, 0, 5, 1, 1),
(301710, 1203, 0, 0.0, 0, 1, 1, 1),
(301710, 1973, 0, 0.0, 0, 1, 1, 1),
(301710, 2564, 0, 0.0, 0, 1, 1, 1),
(301710, 4696, 0, 0.0, 0, 1, 1, 1),
(301710, 5266, 0, 0.0, 0, 1, 1, 1),
(301710, 5267, 0, 0.0, 0, 1, 1, 1),
(301710, 6622, 0, 0.0, 0, 1, 1, 1),
(301710, 7734, 0, 0.0, 0, 1, 1, 1),
(301710, 7976, 0, 0.0, 0, 1, 1, 1),
(301710, 7991, 0, 0.0, 0, 1, 1, 1),
(301710, 8028, 0, 0.0, 0, 1, 1, 1),
(301710, 9402, 0, 0.0, 0, 1, 1, 1),
(301710, 10605, 0, 0.0, 0, 1, 1, 1),
(301710, 10608, 0, 0.0, 0, 1, 1, 1),
(301710, 11302, 0, 0.0, 0, 1, 1, 1),
(301710, 12698, 0, 0.0, 0, 1, 1, 1),
(301710, 12711, 0, 0.0, 0, 1, 1, 1),
(301710, 12717, 0, 0.0, 0, 1, 1, 1),
(301710, 12720, 0, 0.0, 0, 1, 1, 1),
(301710, 12728, 0, 0.0, 0, 1, 1, 1),
(301710, 13000, 0, 0.0, 0, 1, 1, 1),
(301710, 13001, 0, 0.0, 0, 1, 1, 1),
(301710, 13002, 0, 0.0, 0, 1, 1, 1),
(301710, 13003, 0, 0.0, 0, 1, 1, 1),
(301710, 13004, 0, 0.0, 0, 1, 1, 1),
(301710, 13006, 0, 0.0, 0, 1, 1, 1),
(301710, 13007, 0, 0.0, 0, 1, 1, 1),
(301710, 13008, 0, 0.0, 0, 1, 1, 1),
(301710, 13009, 0, 0.0, 0, 1, 1, 1),
(301710, 13013, 0, 0.0, 0, 1, 1, 1),
(301710, 13015, 0, 0.0, 0, 1, 1, 1),
(301710, 13030, 0, 0.0, 0, 1, 1, 1),
(301710, 13036, 0, 0.0, 0, 1, 1, 1),
(301710, 13040, 0, 0.0, 0, 1, 1, 1),
(301710, 13047, 0, 0.0, 0, 1, 1, 1),
(301710, 13053, 0, 0.0, 0, 1, 1, 1),
(301710, 13060, 0, 0.0, 0, 1, 1, 1),
(301710, 13066, 0, 0.0, 0, 1, 1, 1),
(301710, 13067, 0, 0.0, 0, 1, 1, 1),
(301710, 13070, 0, 0.0, 0, 1, 1, 1),
(301710, 13072, 0, 0.0, 0, 1, 1, 1),
(301710, 13073, 0, 0.0, 0, 1, 1, 1),
(301710, 13075, 0, 0.0, 0, 1, 1, 1),
(301710, 13077, 0, 0.0, 0, 1, 1, 1),
(301710, 13083, 0, 0.0, 0, 1, 1, 1),
(301710, 13085, 0, 0.0, 0, 1, 1, 1),
(301710, 13091, 0, 0.0, 0, 1, 1, 1),
(301710, 13096, 0, 0.0, 0, 1, 1, 1),
(301710, 13107, 0, 0.0, 0, 1, 1, 1),
(301710, 13111, 0, 0.0, 0, 1, 1, 1),
(301710, 13113, 0, 0.0, 0, 1, 1, 1),
(301710, 13116, 0, 0.0, 0, 1, 1, 1),
(301710, 13118, 0, 0.0, 0, 1, 1, 1),
(301710, 13120, 0, 0.0, 0, 1, 1, 1),
(301710, 13123, 0, 0.0, 0, 1, 1, 1),
(301710, 13125, 0, 0.0, 0, 1, 1, 1),
(301710, 13126, 0, 0.0, 0, 1, 1, 1),
(301710, 13130, 0, 0.0, 0, 1, 1, 1),
(301710, 13133, 0, 0.0, 0, 1, 1, 1),
(301710, 13135, 0, 0.0, 0, 1, 1, 1),
(301710, 13144, 0, 0.0, 0, 1, 1, 1),
(301710, 13146, 0, 0.0, 0, 1, 1, 1),
(301710, 14501, 0, 0.0, 0, 1, 1, 1),
(301710, 14509, 0, 0.0, 0, 1, 1, 1),
(301710, 14511, 0, 0.0, 0, 1, 1, 1),
(301710, 17413, 0, 0.0, 0, 1, 1, 1),
(301710, 17414, 0, 0.0, 0, 1, 1, 1),
(301710, 17682, 0, 0.0, 0, 1, 1, 1),
(301710, 17683, 0, 0.0, 0, 1, 1, 1),
(301710, 18600, 0, 0.0, 0, 1, 1, 1),
(301710, 22388, 0, 0.0, 0, 1, 1, 1),
(301710, 22389, 0, 0.0, 0, 1, 1, 1),
(301710, 22390, 0, 0.0, 0, 1, 1, 1),
(301710, 22393, 0, 0.0, 0, 1, 1, 1),
(301710, 22890, 0, 0.0, 0, 1, 1, 1),
(301710, 22891, 0, 0.0, 0, 1, 1, 1),
(301720, 9297, 0, 0.0, 0, 1, 1, 1),
(301720, 10246, 0, 0.0, 0, 1, 1, 1),
(301720, 10247, 0, 0.0, 0, 1, 1, 1),
(301720, 10248, 0, 0.0, 0, 1, 1, 1),
(301720, 10249, 0, 0.0, 0, 1, 1, 1),
(301720, 10250, 0, 0.0, 0, 1, 1, 1),
(301720, 10251, 0, 0.0, 0, 1, 1, 1),
(301720, 10252, 0, 0.0, 0, 1, 1, 1),
(301720, 10253, 0, 0.0, 0, 1, 1, 1),
(301720, 10254, 0, 0.0, 0, 1, 1, 1),
(301720, 10255, 0, 0.0, 0, 1, 1, 1),
(301720, 10256, 0, 0.0, 0, 1, 1, 1),
(301720, 10257, 0, 0.0, 0, 1, 1, 1),
(301720, 10258, 0, 0.0, 0, 1, 1, 1),
(301720, 10259, 0, 0.0, 0, 1, 1, 1),
(301720, 10260, 0, 0.0, 0, 1, 1, 1),
(301720, 10261, 0, 0.0, 0, 1, 1, 1),
(301720, 10262, 0, 0.0, 0, 1, 1, 1),
(301720, 10263, 0, 0.0, 0, 1, 1, 1),
(301720, 10264, 0, 0.0, 0, 1, 1, 1),
(301720, 10265, 0, 0.0, 0, 1, 1, 1),
(301720, 10266, 0, 0.0, 0, 1, 1, 1),
(301720, 10267, 0, 0.0, 0, 1, 1, 1),
(301720, 10268, 0, 0.0, 0, 1, 1, 1),
(301720, 10269, 0, 0.0, 0, 1, 1, 1),
(301720, 10270, 0, 0.0, 0, 1, 1, 1),
(301720, 10272, 0, 0.0, 0, 1, 1, 1),
(301720, 10273, 0, 0.0, 0, 1, 1, 1),
(301720, 10274, 0, 0.0, 0, 1, 1, 1),
(301720, 10367, 0, 0.0, 0, 1, 1, 1),
(301720, 10384, 0, 0.0, 0, 1, 1, 1),
(301720, 10385, 0, 0.0, 0, 1, 1, 1),
(301720, 10386, 0, 0.0, 0, 1, 1, 1),
(301720, 10387, 0, 0.0, 0, 1, 1, 1),
(301720, 10388, 0, 0.0, 0, 1, 1, 1),
(301720, 10389, 0, 0.0, 0, 1, 1, 1),
(301720, 10390, 0, 0.0, 0, 1, 1, 1),
(301720, 10391, 0, 0.0, 0, 1, 1, 1),
(301720, 11224, 0, 0.0, 0, 1, 1, 1),
(301720, 11226, 0, 0.0, 0, 1, 1, 1),
(301720, 12017, 0, 0.0, 0, 1, 1, 1),
(301720, 12048, 0, 0.0, 0, 1, 1, 1),
(301720, 12682, 0, 0.0, 0, 1, 1, 1),
(301720, 12683, 0, 0.0, 0, 1, 1, 1),
(301720, 12684, 0, 0.0, 0, 1, 1, 1),
(301720, 12685, 0, 0.0, 0, 1, 1, 1),
(301720, 12689, 0, 0.0, 0, 1, 1, 1),
(301720, 12702, 0, 0.0, 0, 1, 1, 1),
(301720, 13486, 0, 0.0, 0, 1, 1, 1),
(301720, 13487, 0, 0.0, 0, 1, 1, 1),
(301720, 13488, 0, 0.0, 0, 1, 1, 1),
(301720, 13489, 0, 0.0, 0, 1, 1, 1),
(301720, 14328, 0, 0.0, 0, 1, 1, 1),
(301720, 14329, 0, 0.0, 0, 1, 1, 1),
(301720, 14330, 0, 0.0, 0, 1, 1, 1),
(301720, 14331, 0, 0.0, 0, 1, 1, 1),
(301720, 14332, 0, 0.0, 0, 1, 1, 1),
(301720, 14333, 0, 0.0, 0, 1, 1, 1),
(301720, 14334, 0, 0.0, 0, 1, 1, 1),
(301720, 14335, 0, 0.0, 0, 1, 1, 1),
(301720, 14336, 0, 0.0, 0, 1, 1, 1),
(301720, 14337, 0, 0.0, 0, 1, 1, 1),
(301720, 14975, 0, 0.0, 0, 1, 1, 1),
(301720, 14976, 0, 0.0, 0, 1, 1, 1),
(301720, 14977, 0, 0.0, 0, 1, 1, 1),
(301720, 14978, 0, 0.0, 0, 1, 1, 1),
(301720, 14979, 0, 0.0, 0, 1, 1, 1),
(301720, 14980, 0, 0.0, 0, 1, 1, 1),
(301720, 14981, 0, 0.0, 0, 1, 1, 1),
(301720, 14982, 0, 0.0, 0, 1, 1, 1),
(301720, 14983, 0, 0.0, 0, 1, 1, 1),
(301720, 15221, 0, 0.0, 0, 1, 1, 1),
(301720, 15229, 0, 0.0, 0, 1, 1, 1),
(301720, 15240, 0, 0.0, 0, 1, 1, 1),
(301720, 15247, 0, 0.0, 0, 1, 1, 1),
(301720, 15258, 0, 0.0, 0, 1, 1, 1),
(301720, 15267, 0, 0.0, 0, 1, 1, 1),
(301720, 15273, 0, 0.0, 0, 1, 1, 1),
(301720, 15278, 0, 0.0, 0, 1, 1, 1),
(301720, 15283, 0, 0.0, 0, 1, 1, 1),
(301720, 15289, 0, 0.0, 0, 1, 1, 1),
(301720, 15325, 0, 0.0, 0, 1, 1, 1),
(301720, 15434, 0, 0.0, 0, 1, 1, 1),
(301720, 15435, 0, 0.0, 0, 1, 1, 1),
(301720, 15436, 0, 0.0, 0, 1, 1, 1),
(301720, 15437, 0, 0.0, 0, 1, 1, 1),
(301720, 15438, 0, 0.0, 0, 1, 1, 1),
(301720, 15439, 0, 0.0, 0, 1, 1, 1),
(301720, 15440, 0, 0.0, 0, 1, 1, 1),
(301720, 15441, 0, 0.0, 0, 1, 1, 1),
(301720, 15442, 0, 0.0, 0, 1, 1, 1),
(301720, 15678, 0, 0.0, 0, 1, 1, 1),
(301720, 15679, 0, 0.0, 0, 1, 1, 1),
(301720, 15680, 0, 0.0, 0, 1, 1, 1),
(301720, 15681, 0, 0.0, 0, 1, 1, 1),
(301720, 15682, 0, 0.0, 0, 1, 1, 1),
(301720, 15683, 0, 0.0, 0, 1, 1, 1),
(301720, 15684, 0, 0.0, 0, 1, 1, 1),
(301720, 15685, 0, 0.0, 0, 1, 1, 1),
(301720, 15686, 0, 0.0, 0, 1, 1, 1),
(301720, 15687, 0, 0.0, 0, 1, 1, 1),
(301720, 15942, 0, 0.0, 0, 1, 1, 1),
(301720, 16044, 0, 0.0, 0, 1, 1, 1),
(301720, 16055, 0, 0.0, 0, 1, 1, 1),
(301720, 16253, 0, 0.0, 0, 1, 1, 1),
(301730, 17962, 0, 0.0, 0, 1, 1, 1),
(301730, 17963, 0, 0.0, 0, 1, 1, 1),
(301730, 17964, 0, 0.0, 0, 1, 1, 1),
(301730, 17965, 0, 0.0, 0, 1, 1, 1),
(301730, 17969, 0, 0.0, 0, 1, 1, 1),
(301830, 1168, 0, 0.0, 0, 10, 1, 1),
(301830, 2099, 0, 0.0, 0, 10, 1, 1),
(301830, 2245, 0, 0.0, 0, 10, 1, 1),
(301830, 2246, 0, 0.0, 0, 10, 1, 1),
(302620, 17064, 0, 8.0, 0, 1, 1, 1),
(302620, 17068, 0, 8.0, 0, 1, 1, 1),
(302620, 17075, 0, 8.0, 0, 1, 1, 1),
(302630, 17067, 0, 0.0, 0, 1, 1, 1),
(302630, 17078, 0, 0.0, 0, 1, 1, 1),
(302630, 18205, 0, 0.0, 0, 1, 1, 1),
(302630, 18813, 0, 0.0, 0, 1, 1, 1),
(302680, 1728, 0, 0.0, 0, 1, 1, 1),
(302680, 2801, 0, 0.0, 0, 1, 1, 1),
(302680, 3475, 0, 0.0, 0, 1, 1, 1);

DELETE FROM `creature` WHERE `guid` BETWEEN 311000 AND 311006;
INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `spawnMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
(311000, 301000, 0, 0, 249, 4, 0.69628, -211.972, -86.075, 3.19974, 604800, 0.0, 0),
(311001, 301002, 0, 0, 249, 4, -166.623, -196.003, -66.2619, 5.06806, 6300, 0.0, 2),
(311002, 301002, 0, 0, 249, 4, -52.9699, -96.8813, -38.6419, 5.66711, 6300, 0.0, 2),
(311003, 301002, 0, 0, 249, 4, 49.8206, -114.607, -24.3112, 1.24193, 1201, 0.0, 2),
(311004, 301002, 0, 0, 249, 4, -131.203, -137.47, -52.5151, 0.641988, 1201, 0.0, 2),
(311005, 301002, 0, 0, 249, 4, -199.097, -209.826, -68.9112, 0.650188, 1201, 0.0, 0);

DELETE FROM `waypoint_data` WHERE `id` IN (3110010,3110020,3110030,3110040);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
(3110010, 1, -163.83, -204.604, -66.2683, 5.05628, 0),
(3110010, 2, -155.152, -212.384, -66.6343, 2.93965, 0),
(3110010, 3, -141.729, -213.377, -68.8695, 6.22261, 0),
(3110010, 4, -154.952, -212.483, -66.6419, 3.19293, 0),
(3110010, 5, -164.343, -204.266, -66.2673, 2.19352, 0),
(3110010, 6, -166.675, -190.895, -66.2472, 1.57895, 0),
(3110010, 7, -168.71, -181.385, -65.4601, 1.68498, 0),
(3110010, 8, -166.79, -190.459, -66.2541, 4.92081, 0),
(3110020, 1, -52.1412, -98.2359, -38.6507, 6.28153, 0),
(3110020, 2, -74.7562, -98.3192, -34.9932, 3.1635, 0),
(3110020, 3, -86.2188, -99.9578, -36.5755, 3.30691, 0),
(3110020, 4, -96.563, -108.612, -39.2156, 3.85668, 0),
(3110020, 5, -101.853, -112.661, -41.5379, 0.587407, 0),
(3110020, 6, -96.8643, -108.629, -39.2921, 3.76435, 0),
(3110020, 7, -85.8067, -100.253, -36.5221, 0.449972, 0),
(3110020, 8, -74.6329, -98.5399, -34.9836, 0.108325, 0),
(3110030, 1, 52.2852, -105.334, -24.8035, 1.31584, 0),
(3110030, 2, 52.4425, -97.069, -25.1109, 4.82655, 0),
(3110030, 3, 50.325, -90.0214, -25.7882, 4.67538, 0),
(3110030, 4, 46.1806, -77.3484, -26.5919, 2.78651, 0),
(3110030, 5, 50.5625, -90.3953, -25.7437, 5.09165, 0),
(3110030, 6, 52.57, -97.4695, -25.0943, 4.95223, 0),
(3110030, 7, 52.5036, -105.629, -24.777, 4.30625, 0),
(3110030, 8, 46.4701, -114.817, -24.6921, 1.14113, 0),
(3110040, 1, -135.799, -142.144, -53.378, 0.681684, 0),
(3110040, 2, -149.953, -151.32, -53.526, 0.554059, 0),
(3110040, 3, -159.632, -158.221, -57.4562, 3.90378, 0),
(3110040, 4, -164.138, -163.099, -59.3168, 0.895706, 0),
(3110040, 5, -169.922, -173.997, -63.4661, 1.12346, 0),
(3110040, 6, -164.278, -163.272, -59.3729, 1.0135, 0),
(3110040, 7, -159.712, -157.77, -57.4116, 0.632569, 0),
(3110040, 8, -149.381, -150.852, -53.5372, 0.565795, 0),
(3110040, 9, -135.617, -142.149, -53.3473, 3.88019, 0),
(3110040, 10, -125.857, -133.639, -51.4387, 0.728772, 0),
(3110040, 11, -113.42, -122.504, -49.0254, 0.69146, 0),
(3110040, 12, -125.618, -133.461, -51.4287, 3.8802, 0);

DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN 301000 AND 301003;
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(301002, 0, 0, 0, 0, 0, 100, 6, 1000, 1000, 12000, 12000, 0, 11, 20203, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, "Onyxian Warder - In Combat - Cast 'Fire Nova' (No Repeat) (Normal Dungeon) (Onyxia 40)"),
(301002, 0, 1, 0, 0, 0, 90, 6, 5000, 5000, 20000, 20000, 0, 11, 18958, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, "Onyxian Warder - In Combat - Cast 'Flame Lash' (No Repeat) (Normal Dungeon) (Onyxia 40)"),
(301002, 0, 2, 0, 0, 0, 80, 6, 7000, 7000, 9000, 11000, 0, 11, 15284, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, "Onyxian Warder - In Combat - Cast 'Cleave' (No Repeat) (Normal Dungeon) (Onyxia 40)"),
(301002, 0, 3, 0, 0, 0, 95, 6, 3000, 3000, 35000, 35000, 0, 11, 12097, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, "Onyxian Warder - In Combat - Cast 'Pierce Armor' (No Repeat) (Normal Dungeon) (Onyxia 40)");

DELETE FROM `creature_text` WHERE `CreatureID` BETWEEN 301000 AND 301003;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(301000, 0, 0, "How fortuitous. Usually, I must leave my lair in order to feed.", 14, 0, 100.0, 0, 0, 0, 8286, 0, "Onyxia - Aggro (Onyxia 40)"),
(301000, 1, 0, "Learn your place, mortal!", 14, 0, 100.0, 0, 0, 0, 8287, 0, "Onyxia - Kill Player (Onyxia 40)"),
(301000, 2, 0, "This meaningless exertion bores me. I'll incinerate you all from above!", 14, 0, 100.0, 0, 0, 0, 8288, 0, "Onyxia - Phase 2 (Onyxia 40)"),
(301000, 3, 0, "It seems you'll need another lesson, mortals!", 14, 0, 100.0, 0, 0, 0, 8290, 0, "Onyxia - Phase 3 (Onyxia 40)"),
(301000, 4, 0, "%s takes in a deep breath...", 41, 0, 100.0, 0, 0, 0, 36542, 0, "Onyxia - Deep Breath Emote (Onyxia 40)"),
(301000, 5, 0, "You seek to lure me from my clutch? You shall pay for your insolence!", 14, 0, 100.0, 0, 0, 0, 8570, 0, "Onyxia - Boundary Evade (Onyxia 40)");

DELETE FROM `creature_equip_template` WHERE `CreatureID` BETWEEN 301000 and 301003;
REPLACE INTO `creature_equip_template` (`CreatureID`, `ID`, `ItemID1`, `ItemID2`, `ItemID3`) VALUES
(301002, 1, 13631, 0, 0);

UPDATE `creature` SET `equipment_id` = 1 WHERE `id1` IN (301002);
DELETE FROM `creature_addon` WHERE `guid` BETWEEN 311000 AND 311006;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(311000, 0, 0, 3, 1, 0, NULL),
(311001, 3110010, 0, 0, 0, 0, NULL),
(311002, 3110020, 0, 0, 0, 0, NULL),
(311003, 3110030, 0, 0, 0, 0, NULL),
(311004, 3110040, 0, 0, 0, 0, NULL);

DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 1 AND `SourceGroup` = 301000 AND `SourceEntry` IN (18492, 21108);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(1, 301000, 21108, 0, 0, 9, 0, 8620, 0, 0, 0, 0, 0, '', 'Draconic for Dummies Chapter VI will drop only when a player has The Only Prescription (8620) in his quest log'),
(1, 301000, 18492, 0, 0, 9, 0, 7509, 0, 0, 0, 0, 0, '', 'Treated Ancient Blade will only drop when a player has The Forging of Quel Serrar (7509) in his quest log');

DELETE FROM `dungeon_access_template` WHERE `id`=123;
INSERT INTO `dungeon_access_template` (`id`, `map_id`, `difficulty`, `min_level`, `max_level`, `min_avg_item_level`, `comment`) VALUES
(123, 249, 2, 50, 0, 0, 'Onyxia\'s Lair - 40man');

DELETE FROM `dungeon_access_requirements` WHERE `dungeon_access_id` = 123;
INSERT INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES
(123, 2, 16309, 'You must have the Drakefire Amulet in your inventory before entering Onyxia\'s Lair.', 2, NULL, 0, '');

DELETE FROM `mapdifficulty_dbc` WHERE `MapID` = 249;
INSERT INTO `mapdifficulty_dbc` (`ID`, `MapID`, `Difficulty`, `RaidDuration`, `MaxPlayers`, `Difficultystring`) VALUES
(755, 249, 2, 604800, 40, 'RAID_DIFFICULTY_40PLAYER');

DELETE FROM `dungeonencounter_dbc` WHERE `ID` = 895;
INSERT INTO `dungeonencounter_dbc` (`ID`, `MapID`, `Difficulty`, `OrderIndex`, `Bit`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `SpellIconID`) VALUES
(895, 249, 2, 0, 0, 'Onyxia', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 16712190, 0);

DELETE FROM `instance_encounters` WHERE `entry` = 895;
INSERT INTO `instance_encounters` (`entry`, `creditType`, `creditEntry`, `lastEncounterDungeon`, `comment`) VALUES
(895, 0, 301000, 0, 'Onyxia (Vanilla)');

DELETE FROM `lfgdungeons_dbc` WHERE `ID` = 1000;
INSERT INTO `lfgdungeons_dbc` VALUES
(1000,"Onyxia\\'s Lair (Vanilla)","","","","","","","","","","","","","","","",16712190,60,83,60,60,83,249,2,0,2,-1,"",2,0,9,"","","","","","","","","","","","","","","","",16712188);

-- Victory for the Alliance - Bolvar or Varian
DELETE FROM `creature_questender` WHERE `quest` = 7495;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(29611, 7495),
(1748, 7495);

-- Thrall
DELETE FROM `creature_questender` WHERE `quest` = 7490;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(4949, 7490); -- Victory for the Horde

DELETE FROM `creature_queststarter` WHERE `quest` = 7491;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(4949, 7491);

DELETE FROM `creature_queststarter` WHERE `quest` = 7493;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(14392, 7493);

DELETE FROM `creature_queststarter` WHERE `quest` = 7496;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(1748, 7496);

DELETE FROM `creature_questender` WHERE `quest` = 7491;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(14392, 7491);

DELETE FROM `creature_questender` WHERE `quest` = 7496;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(14394, 7496);

-- Cloak quest - A
DELETE FROM `creature_queststarter` WHERE `quest` = 7497;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(14394, 7497);

DELETE FROM `creature_questender` WHERE `quest` = 7497;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(14394, 7497);

UPDATE `quest_template_addon` SET `PrevQuestID` = 7496 WHERE `ID` = 7497; -- Previously 24428
UPDATE `quest_template_addon` SET `PrevQuestID` = 7490 WHERE `ID` = 7493; -- Previously 24429

-- Compendium
UPDATE `item_template` SET `startquest` = 7507 WHERE `entry` = 18401; -- Foror's Compendium of Dragonslaying
UPDATE `item_template` SET `startquest` = 7508 WHERE `entry` = 18513; -- Dull Elven Blade

-- The Forging of Quel'Serrar
UPDATE `quest_template` SET `Flags` = 0 WHERE `ID` IN (7507, 7508); -- these were flagged as unavailable
UPDATE `quest_template` SET `Flags` = 64 WHERE `ID` = 7509;

-- Unfired Ancient Blade
UPDATE `item_template` SET `Flags` = 32768, `spellid_1` = 0, `description` = 'Bring this blade with you to Onyxia\'s Lair.' WHERE `entry` = 18489; -- was flagged as depreciated item
    
DELETE FROM `creature_queststarter` WHERE `quest` = 7509;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(14368, 7509);

DELETE FROM `creature_questender` WHERE `quest` IN (7507, 7508, 7509); -- Lorekeeper Lydros, Foror's Compendium
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(14368, 7507),
(14368, 7508),
(14368, 7509);

DELETE FROM `gossip_menu` WHERE `TextId` = 60040 AND `MenuId` = 5747;
INSERT INTO `gossip_menu` (`MenuId`, `TextId`) VALUES
(5747, 60040);

DELETE FROM `gossip_menu` WHERE `TextId` IN (60041, 60042, 60043, 60044, 60045, 60046);
INSERT INTO `gossip_menu` (`MenuId`, `TextId`) VALUES
(60041, 60041),
(60042, 60042),
(60043, 60043),
(60044, 60044),
(60045, 60045),
(60046, 60046);

DELETE FROM `npc_text` WHERE `ID` IN (60040, 60041, 60042, 60043, 60044, 60045, 60046);
INSERT INTO `npc_text` (`ID`, `text0_0`,  `BroadcastTextID0`) VALUES
(60040, '<Lydros reaches into his robe and presents you with a dull, flat elven blade.>$b$BIn ages past, well before even the War of the Ancients, there existed this blade.', 0),
(60041, 'The blade itself had to be crafted IN ceremony with the children of the Aspects. A rare occurrence indeed... for not only would a dragon have TO willingly heat and mold the enchanted metal with their breath, they would also need to contain the fury of their own enchantment by using their blood as temper.', 0),
(60042, 'Over the course of 8,000 years, only a handful of these blades were created - each blade unique in both power and appearance. The blades of Quel\'Serrar would take ON the characteristics of their creator.', 0),
(60043, 'Rumors exist of a single legendary blade of Quel\'Serrar crafted for an unknown entity by the combined might of the five Aspects. Before the abominations of Nefarian and Deathwing were thrust into our world, such meetings of the Aspect were represented by the term \'Prismatic.\' I could only assume that the Prismatic Blade of Quel\'Serrar was a most glorious creation.', 0),
(60044, 'What I offer to you now is one such blade, unfired, unheated, untreated - the most raw and basic form.$b$bNow you merely need TO find a dragon that will willingly enchant the blade.$b$bIf you had an eternity to live,this might be a possibility; but since you are mortal and could very likely cease to exist at any moment, might I recommend trying to persuade one of the lesser dragons to do your bidding.', 0),
(60045, 'Have you heard of the brood mother of the Black Flight? I believe she is called Onyxia...', 0),
(60046, 'I have sensed your coming for quite some time, $n. It was written in the pattern of stars.', 0);

DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14, 15) AND `SourceGroup` = 5747;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14,5747,60040,0,0,8,0,7507,0,0,0,0,0,'','Lydros Pre Quel\'Serrar Gossip - Requires to have Foror\'s Compendium rewarded'),
(14,5747,60040,0,0,8,0,7508,0,0,1,0,0,'','Lydros Pre Quel\'Serrar Gossip - Requires to not have The Forging of Quel\'Serrar rewarded'),
(15,5747,0,0,0,8,0,7507,0,0,0,0,0,'','Lydros Pre Quel\'Serrar Gossip Option - Requires to have Foror\'s Compendium rewarded'),
(15,5747,0,0,0,8,0,7508,0,0,1,0,0,'','Lydros Pre Quel\'Serrar Gossip Option - Requires to not have The Forging of Quel\'Serrar rewarded');

DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (5747, 60040, 60041, 60042, 60043, 60044, 60045, 60046);
INSERT INTO `gossip_menu_option` (`menuID`, `optionid`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
(5747,0,0,'(Continue.)', 9519,1,3,60041,0,0,0,NULL,0,0),
(60041,0,0,'(Continue.)', 9519,1,3,60042,0,0,0,NULL,0,0),
(60042,0,0,'(Continue.)', 9519,1,3,60043,0,0,0,NULL,0,0),
(60043,0,0,'(Continue.)', 9519,1,3,60044,0,0,0,NULL,0,0),
(60044,0,0,'Eh?',0,1,3,60045,0,0,0,NULL,0,0),
(60045,0,0,'Maybe... What do I do now?',0,1,3,0,0,0,0,NULL,0,0);

DELETE FROM `smart_scripts` WHERE `entryorguid` = 14368 AND `source_type` = 0 AND `id` IN (1, 2);
insert into `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) values('14368','0','1','0','62','0','100','0','60045','0','0','0','56','18513','1','0','0','0','0','7','0','0','0','0','0','0','0','Lorekeeper Lydros - Giving A Dull and Flat Elven Blade after cliking on last gossip');
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('14368','0','2','0','62','0','100','0','60045','0','0','0','72','0','0','0','0','0','0','7','0','0','0','0','0','0','0','Lorekeeper Lydros - On Gossip Option 0 Selected - Close Gossip');



delete from `conditions` WHERE `SourceTypeOrReferenceId` = 17 AND  `SourceEntry` = 22905;
insert into `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) values('17','0','22905','0','0','29','0','10184','10','1','0','0','0','','Place Unfired Blade - near dead onyxia');

DELETE FROM spell_linked_spell where spell_trigger = 22905;
INSERT INTO spell_linked_spell (spell_trigger, spell_effect, TYPE, COMMENT) VALUES
(22905, 22906, 0, 'quelserrar');

UPDATE `quest_template_addon` SET `SpecialFlags` = 0 WHERE `id` = 7509;

DELETE FROM `areatrigger_scripts` WHERE `entry` = 2848;
INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES
(2848, 'onyxia_entrance_trigger');

UPDATE `gameobject` SET `spawnMask` = 7 WHERE `map` = 249;

/* Classic onyxia head quest locale fix for non EN langs */
/* Was set as Garrosh, correct warchief is Thrall */
UPDATE `quest_template_locale` SET `Objectives` = 'Bringt Onyxias Kopf zu Thrall in Orgrimmar.' WHERE `ID` = 7490 AND `locale` = 'deDE';
UPDATE `quest_template_locale` SET `Objectives` = 'LLeva la cabeza de Onyxia a Thrall a Orgrimmar.' WHERE `ID` = 7490 AND `locale` = 'esES';
UPDATE `quest_template_locale` SET `Objectives` = 'LLeva la cabeza de Onyxia a Thrall a Orgrimmar.' WHERE `ID` = 7490 AND `locale` = 'esMX';
UPDATE `quest_template_locale` SET `Objectives` = 'Apportez la tête de Onyxia à Thrall à Orgrimmar.' WHERE `ID` = 7490 AND `locale` = 'frFR';
