- -- A Chip Off the Ulduar Block
- UPDATE `creature_template` SET `npcflag`=`npcflag`|2 WHERE `entry`=33435;
- DELETE FROM `creature_questrelation` WHERE `quest`=13681;
- INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES
- (33435, 13681);
- DELETE FROM `creature_involvedrelation` WHERE `quest`=13681;
- INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES
- (33435, 13681);
- SET @GO_SBLOCK := 900101;
- DELETE FROM `gameobject` WHERE `id`=194461;
- INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
- (@GO_SBLOCK, 194461, 571, 1, 1, 7652.58, -1007.84, 910.189, 1.52205, 0, 0, 0.689663, 0.72413, 300, 0, 1),
- (@GO_SBLOCK+1, 194461, 571, 1, 1, 7787.41, -1041.7, 962.852, 2.77736, 0, 0, 0.983463, 0.18111, 300, 0, 1),
- (@GO_SBLOCK+2, 194461, 571, 1, 1, 7277.52, -853.137, 927.42, 0.443636, 0, 0, 0.220003, 0.975499, 300, 0, 1),
- (@GO_SBLOCK+3, 194461, 571, 1, 1, 7716.48, -1072.21, 919.808, 0.430193, 0, 0, 0.213442, 0.976956, 300, 0, 1),
- (@GO_SBLOCK+4, 194461, 571, 1, 1, 7403.1, -854.007, 920.523, 2.54684, 0, 0, 0.956108, 0.293013, 300, 0, 1),
- (@GO_SBLOCK+5, 194461, 571, 1, 1, 8102.84, -1020.1, 936.523, 5.45407, 0, 0, 0.402785, -0.915295, 300, 0, 1),
- (@GO_SBLOCK+6, 194461, 571, 1, 1, 8204.35, -1139.17, 928.227, 5.80531, 0, 0, 0.236668, -0.97159, 300, 0, 1),
- (@GO_SBLOCK+7, 194461, 571, 1, 1, 8229.81, -1044.96, 923.874, 5.04234, 0, 0, 0.581379, -0.813633, 300, 0, 1),
- (@GO_SBLOCK+8, 194461, 571, 1, 1, 8309.5, -1057.97, 923.874, 2.47823, 0, 0, 0.945497, 0.325632, 300, 0, 1),
- (@GO_SBLOCK+9, 194461, 571, 1, 1, 8113.47, -1090.97, 928.014, 0.0838518, 0, 0, 0.0419136, 0.999121, 300, 0, 1),
- (@GO_SBLOCK+10, 194461, 571, 1, 1, 8225.12, -908.638, 924.89, 1.17446, 0, 0, 0.554058, 0.832478, 300, 0, 1),
- (@GO_SBLOCK+11, 194461, 571, 1, 1, 8145.76, -938.17, 956.536, 0.0998165, 0, 0, 0.0498875, 0.998755, 300, 0, 1),
- (@GO_SBLOCK+12, 194461, 571, 1, 1, 8112.04, -830.939, 957.941, 3.88413, 0, 0, 0.931868, -0.362796, 300, 0, 1),
- (@GO_SBLOCK+13, 194461, 571, 1, 1, 8176.38, -749.3, 928.853, 5.07335, 0, 0, 0.568695, -0.822549, 300, 0, 1),
- (@GO_SBLOCK+14, 194461, 571, 1, 1, 8223.27, -812.829, 926.654, 5.58167, 0, 0, 0.343608, -0.939113, 300, 0, 1),
- (@GO_SBLOCK+15, 194461, 571, 1, 1, 8382.91, -975.986, 909.193, 3.87475, 0, 0, 0.933559, -0.358423, 300, 0, 1),
- (@GO_SBLOCK+16, 194461, 571, 1, 1, 7989.92, -1082.12, 1046.78, 0.559582, 0, 0, 0.276155, 0.961113, 300, 0, 1);
- -- Stone Block Bunny
- DELETE FROM `creature_template` WHERE `entry` IN (900106, 900107);
- INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `inhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES
- (900106, 0, 0, 0, 0, 0, 19725, 13069, 0, 0, 'Stone Block Bunny', '', '', 0, 1, 1, 0, 35, 35, 0, 1, 1.14286, 1, 0, 2, 2, 0, 24, 1, 2000, 0, 1, 0, 8, 0, 0, 0, 0, 0, 1, 1, 0, 10, 1024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 128, '', 12340),
- (900107, 0, 0, 0, 0, 0, 19725, 13069, 0, 0, 'Stone Block Bunny 2', '', '', 0, 1, 1, 0, 35, 35, 0, 1, 1.14286, 1, 0, 2, 2, 0, 24, 1, 2000, 0, 1, 0, 8, 0, 0, 0, 0, 0, 1, 1, 0, 10, 1024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 128, '', 12340);
- -- SAI
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (33660, 900106);
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (33660, 900106) AND `source_type` IN (0, 9);
- 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
- -- Goblin Chisel
- (33660, 0, 0, 0, 1, 0, 100, 1, 0, 0, 0, 0, 12, 900106, 3, 60000, 0, 0, 0, 15, 194461, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - cast Bunny'),
- (33660, 0, 1, 0, 1, 0, 100, 1, 0, 0, 0, 0, 12, 900106, 3, 60000, 0, 0, 0, 15, 194461, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - cast Bunny'),
- (33660, 0, 2, 0, 1, 0, 100, 1, 0, 0, 0, 0, 12, 900106, 3, 60000, 0, 0, 0, 15, 194461, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - cast Bunny'),
- (33660, 0, 3, 0, 1, 0, 100, 1, 0, 0, 0, 0, 12, 900106, 3, 60000, 0, 0, 0, 15, 194461, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - cast Bunny'),
- (33660, 0, 4, 0, 1, 0, 100, 1, 0, 0, 0, 0, 255, 60, 0, 0, 0, 0, 0, 11, 900107, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - kill bunny'),
- (33660, 0, 5, 0, 1, 0, 100, 1, 5500, 5500, 0, 0, 11, 20476, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - cast exploze'),
- (33660, 0, 6, 0, 1, 0, 100, 1, 5500, 5500, 0, 0, 255, 60, 0, 0, 0, 0, 0, 15, 194461, 30, 0, 0, 0, 0, 0, 'Goblin Chisel - OOC - despawn Stone Block'),
- -- Stone Block Bunny
- (900106, 0, 0, 0, 1, 0, 100, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bunny - OOC - switch run'),
- (900106, 0, 1, 0, 1, 0, 100, 1, 100, 100, 0, 0, 89, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bunny - OOC - random move'),
- (900106, 0, 2, 0, 1, 0, 100, 1, 5500, 5500, 0, 0, 50, 194463, 60, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bunny - OOC - summon Small Stone Block');
- -- loot
- UPDATE `gameobject_template` SET `data1`=90000 WHERE `entry`=194463;
- DELETE FROM `gameobject_loot_template` WHERE `entry`=90000;
- INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
- (90000, 45278, -100, 1, 0, 1, 1);
- -- Jack Me Some Lumber
- UPDATE `creature_template` SET `npcflag`=`npcflag`|2 WHERE `entry`=33434;
- DELETE FROM `creature_questrelation` WHERE `quest`=13627;
- INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES
- (33434, 13627);
- DELETE FROM `creature_involvedrelation` WHERE `quest`=13627;
- INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES
- (33434, 13627);
- -- The Blastbolt Brothers
- DELETE FROM `creature_questrelation` WHERE `quest`=13820;
- INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES
- (33817, 13820);
- DELETE FROM `creature_involvedrelation` WHERE `quest`=13820;
- INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES
- (33434, 13820);
- UPDATE `quest_template` SET `NextQuestId`=13681 WHERE `Id`=13820;
- UPDATE `quest_template` SET `PrevQuestId`=13820 WHERE `Id`=13627;
- -- Mastery of Melee/Charge/Shield Breaker
- -- Argent Tournament trainers part
- -- variables
- SET @SPELL_ON_ARGENT_MOUNT := 63034;
- SET @NPC_JAERAN_LOCKWOOD := 33973;
- SET @QUEST_MASTERY_OF_MELEE_A := 13828;
- SET @QUEST_MASTERY_OF_MELEE_H := 13829;
- SET @GOSSIP_MENU_JERAN_MOUNTED := 10398;
- SET @GOSSIP_MENU_JERAN_EXPLANATION := 10397;
- SET @GOSSIP_TEXT_JERAN_MOUNTED := 14431;
- SET @GOSSIP_TEXT_JERAN_EXPLANATION := 14434;
- SET @SPELL_CREDIT_JERAN := 64113;
- SET @NPC_RUGAN_STEELBELLY := 33972;
- SET @QUEST_MASTERY_OF_CHARGE_A := 13837;
- SET @QUEST_MASTERY_OF_CHARGE_H := 13839;
- SET @GOSSIP_MENU_RUGAN_MOUNTED := 10400;
- SET @GOSSIP_MENU_RUGAN_EXPLANATION := 10399;
- SET @GOSSIP_TEXT_RUGAN_MOUNTED := 14436;
- SET @GOSSIP_TEXT_RUGAN_EXPLANATION := 14437;
- SET @SPELL_CREDIT_RUGAN := 64114;
- SET @NPC_VALIS_WINDCHASER := 33974;
- SET @QUEST_MASTERY_OF_SH_BREAKER_A := 13835;
- SET @QUEST_MASTERY_OF_SH_BREAKER_H := 13838;
- SET @GOSSIP_MENU_VALIS_MOUNTED := 10402;
- SET @GOSSIP_MENU_VALIS_EXPLANATION := 10401;
- SET @GOSSIP_TEXT_VALIS_MOUNTED := 14438;
- SET @GOSSIP_TEXT_VALIS_EXPLANATION := 14439;
- SET @SPELL_CREDIT_VALIS := 64115;
- -- SAI
- UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry` IN (@NPC_JAERAN_LOCKWOOD, @NPC_RUGAN_STEELBELLY, @NPC_VALIS_WINDCHASER);
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@NPC_JAERAN_LOCKWOOD, @NPC_RUGAN_STEELBELLY, @NPC_VALIS_WINDCHASER) 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
- (@NPC_JAERAN_LOCKWOOD, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 98, @GOSSIP_MENU_JERAN_MOUNTED, @GOSSIP_TEXT_JERAN_MOUNTED, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Jeran Lockwood - Send different gossip when mounted (Requires conditions)'),
- (@NPC_JAERAN_LOCKWOOD, 0, 1, 3, 62, 0, 100, 0, @GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Jeran Lockwood - Send text when option clicked'),
- (@NPC_JAERAN_LOCKWOOD, 0, 2, 3, 62, 0, 100, 0, @GOSSIP_MENU_JERAN_EXPLANATION, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Jeran Lockwood - Send text when option clicked'),
- (@NPC_JAERAN_LOCKWOOD, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_CREDIT_JERAN, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Jeran Lockwood - Give Credit'),
- (@NPC_JAERAN_LOCKWOOD, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Jeran Lockwood - Close Gossip'),
- (@NPC_RUGAN_STEELBELLY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 98, @GOSSIP_MENU_RUGAN_MOUNTED, @GOSSIP_TEXT_RUGAN_MOUNTED, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rugan Steelbelly - Send different gossip when mounted (Requires conditions)'),
- (@NPC_RUGAN_STEELBELLY, 0, 1, 3, 62, 0, 100, 0, @GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rugan Steelbelly - Send text when option clicked'),
- (@NPC_RUGAN_STEELBELLY, 0, 2, 3, 62, 0, 100, 0, @GOSSIP_MENU_RUGAN_EXPLANATION, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rugan Steelbelly - Send text when option clicked'),
- (@NPC_RUGAN_STEELBELLY, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_CREDIT_RUGAN, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rugan Steelbelly - Give Credit'),
- (@NPC_RUGAN_STEELBELLY, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rugan Steelbelly - Close Gossip'),
- (@NPC_VALIS_WINDCHASER, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 98, @GOSSIP_MENU_VALIS_MOUNTED, @GOSSIP_TEXT_VALIS_MOUNTED, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valis Windchaser - Send different gossip when mounted (Requires conditions)'),
- (@NPC_VALIS_WINDCHASER, 0, 1, 3, 62, 0, 100, 0, @GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valis Windchaser - Send text when option clicked'),
- (@NPC_VALIS_WINDCHASER, 0, 2, 3, 62, 0, 100, 0, @GOSSIP_TEXT_VALIS_EXPLANATION, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valis Windchaser - Send text when option clicked'),
- (@NPC_VALIS_WINDCHASER, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_CREDIT_VALIS, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valis Windchaser - Give Credit'),
- (@NPC_VALIS_WINDCHASER, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valis Windchaser - Close Gossip');
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` IN (@NPC_JAERAN_LOCKWOOD, @NPC_RUGAN_STEELBELLY, @NPC_VALIS_WINDCHASER);
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup` IN (@GOSSIP_MENU_JERAN_MOUNTED, @GOSSIP_MENU_RUGAN_MOUNTED, @GOSSIP_MENU_VALIS_MOUNTED);
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (22, 1, @NPC_JAERAN_LOCKWOOD, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'SAI - Jeran Lockwood show different menu if player mounted'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 0, 9, 0, @QUEST_MASTERY_OF_MELEE_A, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 1, 9, 0, @QUEST_MASTERY_OF_MELEE_H, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 1, 0, 0, 9, 0, @QUEST_MASTERY_OF_MELEE_A, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 1, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 1, 0, 1, 9, 0, @QUEST_MASTERY_OF_MELEE_H, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_JERAN_MOUNTED, 1, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Jeran Lockwood - Show gossip if player has aura'),
- (22, 1, @NPC_RUGAN_STEELBELLY, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'SAI - Rugan Steelbelly show different menu if player mounted'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 0, 9, 0, @QUEST_MASTERY_OF_CHARGE_A, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 1, 9, 0, @QUEST_MASTERY_OF_CHARGE_H, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 1, 0, 0, 9, 0, @QUEST_MASTERY_OF_CHARGE_A, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 1, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 1, 0, 1, 9, 0, @QUEST_MASTERY_OF_CHARGE_H, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_RUGAN_MOUNTED, 1, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Rugan Steelbelly - Show gossip if player has aura'),
- (22, 1, @NPC_VALIS_WINDCHASER, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'SAI - Valis Windchaser show different menu if player mounted'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 0, 9, 0, @QUEST_MASTERY_OF_SH_BREAKER_A, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 1, 9, 0, @QUEST_MASTERY_OF_SH_BREAKER_H, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 1, 0, 0, 9, 0, @QUEST_MASTERY_OF_SH_BREAKER_A, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 1, 0, 0, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has aura'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 1, 0, 1, 9, 0, @QUEST_MASTERY_OF_SH_BREAKER_H, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has quest'),
- (15, @GOSSIP_MENU_VALIS_MOUNTED, 1, 0, 1, 1, 0, @SPELL_ON_ARGENT_MOUNT, 0, 0, 0, '', 'Valis Windchaser - Show gossip if player has aura');
- DELETE FROM `gossip_menu` WHERE `entry` IN (@GOSSIP_MENU_JERAN_EXPLANATION, @GOSSIP_MENU_RUGAN_EXPLANATION, @GOSSIP_MENU_VALIS_EXPLANATION);
- INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES
- (@GOSSIP_MENU_JERAN_EXPLANATION, @GOSSIP_TEXT_JERAN_EXPLANATION),
- (@GOSSIP_MENU_RUGAN_EXPLANATION, @GOSSIP_TEXT_RUGAN_EXPLANATION),
- (@GOSSIP_MENU_VALIS_EXPLANATION, @GOSSIP_TEXT_VALIS_EXPLANATION);
- DELETE FROM `gossip_menu_option` WHERE `menu_id` IN (@GOSSIP_MENU_JERAN_MOUNTED, @GOSSIP_MENU_JERAN_EXPLANATION, @GOSSIP_MENU_RUGAN_MOUNTED, @GOSSIP_MENU_RUGAN_EXPLANATION, @GOSSIP_MENU_VALIS_MOUNTED, @GOSSIP_MENU_VALIS_EXPLANATION);
- INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`) VALUES
- (@GOSSIP_MENU_JERAN_MOUNTED, 0, 0, 'Show me how to train with a Melee Target.', 1, 1, 0, 0, 0, 0, ''),
- (@GOSSIP_MENU_JERAN_MOUNTED, 1, 0, 'Tell me more about Defend and Thrust!', 1, 1, @GOSSIP_MENU_JERAN_EXPLANATION, 0, 0, 0, ''),
- (@GOSSIP_MENU_JERAN_EXPLANATION, 0, 0, 'Show me how to train with a Melee Target.', 1, 1, 0, 0, 0, 0, ''),
- (@GOSSIP_MENU_RUGAN_MOUNTED, 0, 0, 'Show me how to train with a Charge Target.', 1, 1, 0, 0, 0, 0, ''),
- (@GOSSIP_MENU_RUGAN_MOUNTED, 1, 0, 'Tell me more about the Charge!', 1, 1, @GOSSIP_MENU_RUGAN_EXPLANATION, 0, 0, 0, ''),
- (@GOSSIP_MENU_RUGAN_EXPLANATION, 0, 0, 'Show me how to train with a Charge Target.', 1, 1, 0, 0, 0, 0, ''),
- (@GOSSIP_MENU_VALIS_MOUNTED, 0, 0, 'Show me how to train with a Ranged Target.', 1, 1, 0, 0, 0, 0, ''),
- (@GOSSIP_MENU_VALIS_MOUNTED, 1, 0, 'Tell me more about the Shield-Breaker!', 1, 1, @GOSSIP_MENU_VALIS_EXPLANATION, 0, 0, 0, ''),
- (@GOSSIP_MENU_VALIS_EXPLANATION, 0, 0, 'Show me how to train with a Ranged Target.', 1, 1, 0, 0, 0, 0, '');
- DELETE FROM `creature_text` WHERE `entry` IN (@NPC_JAERAN_LOCKWOOD, @NPC_RUGAN_STEELBELLY, @NPC_VALIS_WINDCHASER);
- INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
- (@NPC_JAERAN_LOCKWOOD, 0, 0, 'Put up defend$B|TInterface\\Icons\\ability_warrior_shieldmastery.blp:32|t$BThen use Thrust on a Melee Target$B|TInterface\\Icons\\inv_sword_65.blp:32|t', 42, 0, 0, 0, 0, 0, 'Argent Tournament - Melee Tutorial'),
- (@NPC_RUGAN_STEELBELLY, 0, 0, 'Use Shield-Breaker on a Charge Target$B|TInterface\\Icons\\ability_warrior_shieldbreak.blp:32|t$BFollow up with Charge while the target is vulnerable$B|TInterface\\Icons\\ability_mount_charger.blp:32|t', 42, 0, 0, 0, 0, 0, 'Argent Tournament - Charge Tutorial'),
- (@NPC_VALIS_WINDCHASER, 0, 0, 'Use Shield-Breaker on a Ranged Target$B|TInterface\\Icons\\ability_warrior_shieldbreak.blp:32|t$BThen use Shield-Breaker while the target is defenseless$B|TInterface\\Icons\\ability_warrior_shieldbreak.blp:32|t', 42, 0, 0, 0, 0, 0, 'Argent Tournament - Ranged Tutorial');
- -- Training Dummies Part
- UPDATE `creature_template` SET `ScriptName`='npc_tournament_training_dummy' WHERE `entry` IN (33272, 33229, 33243);
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=62709;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (13, 3, 62709, 0, 0, 18, 1, 33845, 0, 0, '', 'Counterattack! (Argent Tournament) - Target near aspirant mounts'),
- (13, 3, 62709, 0, 1, 18, 1, 33323, 0, 0, '', 'Counterattack! (Argent Tournament) - Target near aspirant mounts');
- DELETE FROM `spell_script_names` WHERE `spell_id`=62709;
- INSERT INTO `spell_script_names` VALUES (62709, 'spell_gen_tournament_counterattack');
- -- vehicle
- DELETE FROM `mq_vehicle_data` WHERE `entry`=349;
- INSERT INTO `mq_vehicle_data` (`entry`, `flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `spell9`, `spell10`, `linked_auras`, `speed_walk`, `speed_run`, `speed_run_back`, `speed_swim`, `speed_swim_back`, `speed_turn_rate`, `speed_flight`, `speed_flight_back`, `speed_pitch_rate`) values
- (349, 0, 62544, 62575, 62960, 62552, 64077, 62863, 63034, 0, 0, 0, '', 1.2, 1, 1, 1, 1, 1, 1, 1, 1);
- UPDATE `creature_template` SET `spell1`=0, `spell2`=0, `spell3`=0, `spell4`=0, `spell5`=0, `spell6`=0, `spell7`=0 WHERE `entry`=33845;
- -- A Blade Fit For A Champion (all versions)
- SET @MAIDEN := 33220; -- Maiden of Ashwood Lake
- SET @FROG := 33224; -- Lake Frog
- SET @FROG_BAD := 33211; -- Lake Frog
- SET @SPELL_TRANSFORM := 62550; -- Maiden of Ashwood Lake Transform
- SET @SPELL_SWORD := 62554; -- Summon Ashwood Brand
- SET @SPELL_KISS := 62536; -- Frog Kiss (removes potion)
- SET @SPELL_FROG_LOVE := 62537; -- Frog Love
- SET @SPELL_WARTS := 62581; -- Warts!
- SET @SPELL_BALM := 62574; -- Warts-B-Gone Lip Balm
- UPDATE `creature_template` SET `AIName`='SmartAI', `npcflag`=0, `ScriptName`='' WHERE `entry`=@FROG;
- UPDATE `creature_template` SET `AIName`='SmartAI', `npcflag`=0, `ScriptName`='' WHERE `entry`=@FROG_BAD;
- UPDATE `creature` SET `spawndist`=3, `MovementType`=1 WHERE `id` IN (@FROG, @FROG_BAD);
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@FROG, @FROG_BAD) 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
- (@FROG, 0, 0, 1, 22, 0, 100, 1, 58, 0, 0, 0, 11, @SPELL_WARTS, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On emote - Cast spell - Invoker'),
- (@FROG, 0, 1, 2, 61, 0, 100, 1, 0, 0, 0, 0, 11, @SPELL_KISS, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On link - Cast spell - Invoker'),
- (@FROG, 0, 2, 3, 61, 0, 100, 1, 0, 0, 0, 0, 11, @SPELL_FROG_LOVE, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Cast spell - Self'),
- (@FROG, 0, 3, 4, 61, 0, 100, 1, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Link - Follow - Invoker'),
- (@FROG, 0, 4, 0, 61, 0, 100, 1, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Force despawn 1 min - Self'),
- (@FROG, 0, 5, 6, 22, 0, 100, 1, 58, 0, 0, 0, 11, @SPELL_TRANSFORM, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On emote - Cast spell - Self'),
- (@FROG, 0, 6, 0, 61, 0, 100, 1, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On link - Set phase 1 - Self'),
- (@FROG, 0, 7, 8, 23, 1, 100, 1, @SPELL_TRANSFORM, 1, 0, 0, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On aura - Set flag - Self'),
- (@FROG, 0, 8, 0, 61, 1, 100, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On link - Say - Self'),
- (@FROG, 0, 9, 0, 62, 1, 100, 0, 10316, 0, 0, 0, 11, @SPELL_SWORD, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Gossip select - Cast spel - Invoker'),
- (@FROG, 0, 10, 0, 60, 1, 100, 1, 55000, 55000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On update 1 min - Say - Self'),
- (@FROG, 0, 11, 12, 60, 1, 100, 1, 60000, 60000, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On update 1 min - Set flag - Self'),
- (@FROG, 0, 12, 13, 61, 1, 100, 1, 0, 0, 0, 0, 28, @SPELL_TRANSFORM, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On link - Remove aura - Self'),
- (@FROG, 0, 13, 0, 61, 1, 100, 1, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On link - Force despawn - Self'),
- (@FROG_BAD, 0, 0, 1, 22, 0, 100, 1, 58, 0, 0, 0, 11, @SPELL_WARTS, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On emote - Cast spell - Invoker'),
- (@FROG_BAD, 0, 1, 2, 61, 0, 100, 1, 0, 0, 0, 0, 11, @SPELL_KISS, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On link - Cast spell - Invoker'),
- (@FROG_BAD, 0, 2, 3, 61, 0, 100, 1, 0, 0, 0, 0, 11, @SPELL_FROG_LOVE, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Cast spell - Self'),
- (@FROG_BAD, 0, 3, 4, 61, 0, 100, 1, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Link - Follow - Invoker'),
- (@FROG_BAD, 0, 4, 0, 61, 0, 100, 1, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Force despawn 1 min - Self');
- DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (@SPELL_KISS, @SPELL_BALM);
- INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
- (@SPELL_KISS, -@SPELL_BALM, 1, 'Frog Kiss spellhit removes Warts-B-Gone Lip Balm'), -- using this instead of scripting the dummy effect of spell to remove
- (@SPELL_BALM, -@SPELL_WARTS, 2, 'Warts-B-Gone Lip Balm makes caster immune to Warts!');
- DELETE FROM `creature_text` WHERE `entry`=@FROG;
- INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
- (@FROG, 0, 0, 'Can it really be? Free after all these years?', 12, 0, 100, 1, 0, 0, 'say text and emote talk'),
- (@FROG, 1, 0, 'And now, I must return to the waters of the lake.', 12, 0, 100, 2, 0, 0, 'say text and emote talk');
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=@FROG;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (22, 1, @FROG, 0, 0, 14, 0, 13666, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13603, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13741, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13746, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13752, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13757, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13673, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13762, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13768, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13773, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13778, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 1, @FROG, 0, 0, 14, 0, 13783, 0, 0, 0, 0, '', 'execute sai only if player doesn''t have quest taken'),
- (22, 6, @FROG, 0, 0, 9, 0, 13666, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 1, 9, 0, 13603, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 2, 9, 0, 13741, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 3, 9, 0, 13746, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 4, 9, 0, 13752, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 5, 9, 0, 13757, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 6, 9, 0, 13673, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 7, 9, 0, 13762, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 8, 9, 0, 13768, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 9, 9, 0, 13773, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 10, 9, 0, 13778, 0, 0, 0, 0, '', 'execute sai only if player has quest taken'),
- (22, 6, @FROG, 0, 11, 9, 0, 13783, 0, 0, 0, 0, '', 'execute sai only if player has quest taken');
- DELETE FROM `creature` WHERE `id`=33211;
- INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES
- (820051, 33211, 571, 1, 1, 0, 0, 3714.92, -4303.66, 182.632, 5.09898, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820052, 33211, 571, 1, 1, 0, 0, 3727.9, -4302.24, 182.257, 3.08221, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820053, 33211, 571, 1, 1, 0, 0, 3745.24, -4297.1, 182.39, 2.71587, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820054, 33211, 571, 1, 1, 0, 0, 3756.48, -4301.29, 182.095, 2.80784, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820055, 33211, 571, 1, 1, 0, 0, 3771.69, -4302.97, 185.325, 2.31953, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820056, 33211, 571, 1, 1, 0, 0, 3772.79, -4310.51, 181.825, 0.84316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820057, 33211, 571, 1, 1, 0, 0, 3775.22, -4321.11, 180.2, 3.22583, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820058, 33211, 571, 1, 1, 0, 0, 3788.88, -4324.48, 183.075, 5.38701, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820059, 33211, 571, 1, 1, 0, 0, 3794.86, -4332.32, 181.45, 1.17659, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820060, 33211, 571, 1, 1, 0, 0, 3802.85, -4337.22, 182.431, 6.15077, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820061, 33211, 571, 1, 1, 0, 0, 3806.7, -4355.51, 181.681, 1.17746, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820062, 33211, 571, 1, 1, 0, 0, 3809.69, -4349.24, 182.556, 5.63714, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820063, 33211, 571, 1, 1, 0, 0, 3813.42, -4361.89, 181.931, 2.17209, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (820064, 33211, 571, 1, 1, 0, 0, 3814.98, -4356.1, 183.181, 2.89564, 120, 0, 0, 1, 0, 0, 0, 0, 0);
- -- Black Knight Chain
- -- The Stories Dead Men Tell
- DELETE FROM `creature_template_addon` WHERE `entry`=33439;
- INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33439, '', 0, 7, 0, 65, '49132');
- DELETE FROM `event_scripts` WHERE `id`=21077;
- INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
- (21077, 0, 10, 33439, 10000, '', 8461.674, 468.795, 596.072, 4.770);
- UPDATE `creature_template` SET `dynamicflags`=40 WHERE `entry`=33439;
- DELETE FROM `creature_template_addon` WHERE `entry`=33455;
- INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33455, '', 0, 7, 0, 65, '12881 1');
- DELETE FROM `event_scripts` WHERE `id`=21075;
- INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
- (21075, 0, 10, 33455, 10000, '', 8441.304, 452.848, 596.072, 1.432);
- UPDATE `creature_template` SET `dynamicflags`=40 WHERE `entry` IN (33457, 33439);
- DELETE FROM `event_scripts` WHERE `id`=21076;
- INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
- (21076, 0, 10, 33457, 10000, '', 8471.503, 452.309, 596.072, 4.673);
- DELETE FROM `creature_template_addon` WHERE `entry`=33457;
- INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33457, '', 0, 7, 0, 65, '');
- -- There's Something About the Squire
- SET @ENTRY := 33499; -- Skeletal Woodcutter
- SET @QUEST_LOOT := 45080; -- Large Femur
- SET @QUEST := 13654; -- There's Something About the Squire
- SET @SPELL1 := 63124; -- Incapacitate Maloric
- SET @SPELL2 := 63126; -- Search Maloric
- -- add quest item to Skeletal Woodcutter
- UPDATE `creature_template` SET `lootid`=`entry` WHERE `entry`=@ENTRY;
- DELETE FROM `creature_loot_template` WHERE `entry`=@ENTRY;
- INSERT INTO `creature_loot_template` VALUES
- (@ENTRY, @QUEST_LOOT, -100, 1, 0, 1, 1);
- -- set visual effects on the skeletons
- DELETE FROM `creature_template_addon` WHERE `entry`=@ENTRY;
- INSERT INTO `creature_template_addon` (`entry`, `emote`) VALUES
- (@ENTRY, 234); -- chopping wood
- SET @ENTRY := 33498; -- Maloric
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=33498 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
- (33498, 0, 0, 1, 23, 0, 100, 0, 63124, 1, 0, 0, 81, 16777216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - on Aura: Incapacitate Maloric - set npcflag: Spellclick'),
- (33498, 0, 1, 0, 23, 0, 100, 0, 63124, 1, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - on Aura: Incapacitate Maloric - set npcflag: Spellclick'),
- (33498, 0, 2, 3, 23, 0, 100, 0, 63124, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - on NoAura: Incapacitate Maloric - set npcflag: none'),
- (33498, 0, 3, 0, 23, 0, 100, 0, 63124, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - on NoAura: Incapacitate Maloric - set npcflag: none');
- -- conditions for Large Femur and Maloric
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry` IN (@SPELL1, @SPELL2);
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (17, 0, @SPELL1, 0, 31, 3, @ENTRY, 0, 0, '', 'Incapacitate Maloric only target Maloric'),
- (17, 0, @SPELL2, 0, 9, @QUEST, 0, 0, 0, '', 'Needs taken Quest 13654 to perform Spell Search Maloric');
- -- cast search Maloric, get quest item, quest completed
- DELETE FROM `npc_spellclick_spells` WHERE `npc_entry`=@ENTRY;
- INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
- (@ENTRY, @SPELL2, 3, 1);
- -- The Black Knight's Orders
- -- Black Knights Camp Spawns
- SET @OGUID := 100489; -- Need 10
- SET @CGUID := 152277; -- Need 3
- DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+9;
- INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
- (@OGUID+0, 194357, 571, 1, 1, 9070.324, 2050.733, 67.21755, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+1, 194357, 571, 1, 1, 9073.764, 2050.120, 68.15718, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+2, 194357, 571, 1, 1, 9074.699, 2050.709, 68.17049, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+3, 194357, 571, 1, 1, 9069.595, 2050.349, 67.21755, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+4, 194357, 571, 1, 1, 9069.961, 2050.538, 67.21755, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+5, 194357, 571, 1, 1, 9072.077, 2049.292, 67.78963, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+6, 194357, 571, 1, 1, 9065.680, 2052.618, 67.28638, 0, 0, 0, 0, 1, 0, 0, 0), -- Poison Vial
- (@OGUID+7, 194394, 571, 1, 1, 9083.578, 2041.696, 67.81812, 0, 0, 0, 0, 1, 0, 0, 0), -- Cult Rune Circle
- (@OGUID+8, 195011, 571, 1, 1, 9078.471, 2057.547, 67.21606, 0, 0, 0, 0.9981346, 0.06105176, 0, 0, 0), -- Bonfire
- (@OGUID+9, 300007, 571, 1, 1, 8523.51, 566.994, 552.841, 2.1518, 0, 0, 0.880019, 0.474938, 300, 0, 1); -- Spell Focus GO?
- DELETE FROM `creature` WHERE `id`=33537;
- INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES
- (@CGUID+0, 33537, 571, 1, 1, 0, 0, 9071.043, 2075.388, 67.21542, 4.935980, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (@CGUID+1, 33537, 571, 1, 1, 0, 0, 9074.414, 2049.259, 67.34636, 2.181662, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- (@CGUID+2, 33537, 571, 1, 1, 0, 0, 9081.280, 2058.925, 67.38979, 3.612832, 120, 0, 0, 1, 0, 0, 0, 0, 0);
- -- template updates
- UPDATE `creature_template` SET `unit_flags`=`unit_flags`|8, `speed_run`=8, `InhabitType`=5 WHERE `entry`=33519; -- Black Knight''s Gryphon
- UPDATE `creature_template` SET `faction_A`=2080, `faction_H`=2080, `unit_flags`=`unit_flags`|32768, `equipment_id`=823 WHERE `entry`=33537; -- Cult Conspirator
- -- see black knight's invisibility while on quest The Black Knight's Orders
- DELETE FROM `spell_area` WHERE `spell`=67471 AND `area`=4658;
- INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_start_active`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`) VALUES
- (67471, 4658, 13663, 1, 13663, 0, 0, 2, 1);
- -- addon data
- DELETE FROM `creature_template_addon` WHERE `entry` IN (33519, 33537);
- INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33519, 0, 0, 2049, 0, NULL), -- Black Knight''s Gryphon
- (33537, 0, 1, 1, 0, NULL); -- Cult Conspirator
- -- SAI for Black Knight's Gryphon
- SET @ENTRY := 33519;
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
- 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, 27, 0, 100, 0, 0, 0, 0, 0, 53, 0, @ENTRY, 0, 13663, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On passenger - Start WP movement'),
- (@ENTRY, 0, 1, 0, 40, 0, 100, 0, 40, @ENTRY, 0, 0, 33, 33519, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 40 - Quest Credit'),
- (@ENTRY, 0, 2, 0, 40, 0, 100, 0, 43, @ENTRY, 0, 0, 11, 50630, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 43 - Dismount Spell'),
- (@ENTRY, 0, 3, 0, 40, 0, 100, 0, 44, @ENTRY, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 44 - Despawn');
- DELETE FROM `waypoints` WHERE `entry`=33519;
- INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
- (33519, 1, 8521.271, 569.5960, 552.8375, 'Black Knight''s Gryphon'),
- (33519, 2, 8517.864, 579.1095, 553.2125, 'Black Knight''s Gryphon'),
- (33519, 3, 8513.146, 594.6724, 551.2125, 'Black Knight''s Gryphon'),
- (33519, 4, 8505.263, 606.5569, 550.4177, 'Black Knight''s Gryphon'),
- (33519, 5, 8503.017, 628.4188, 547.4177, 'Black Knight''s Gryphon'),
- (33519, 6, 8480.271, 652.7083, 547.4177, 'Black Knight''s Gryphon'),
- (33519, 7, 8459.121, 686.1427, 547.4177, 'Black Knight''s Gryphon'),
- (33519, 8, 8436.802, 713.8687, 547.3428, 'Black Knight''s Gryphon'),
- (33519, 9, 8405.380, 740.0045, 547.4177, 'Black Knight''s Gryphon'),
- (33519, 10, 8386.139, 770.6009, 547.5881, 'Black Knight''s Gryphon'),
- (33519, 11, 8374.297, 802.2525, 547.9304, 'Black Knight''s Gryphon'),
- (33519, 12, 8374.271, 847.0363, 548.0427, 'Black Knight''s Gryphon'),
- (33519, 13, 8385.988, 868.9881, 548.0491, 'Black Knight''s Gryphon'),
- (33519, 14, 8413.027, 867.8573, 547.2991, 'Black Knight''s Gryphon'),
- (33519, 15, 8452.552, 869.0339, 547.2991, 'Black Knight''s Gryphon'),
- (33519, 16, 8473.058, 875.2012, 547.2955, 'Black Knight''s Gryphon'),
- (33519, 17, 8472.278, 912.3134, 547.4169, 'Black Knight''s Gryphon'),
- (33519, 18, 8479.666, 954.1650, 547.3298, 'Black Knight''s Gryphon'),
- (33519, 19, 8477.349, 1001.368, 547.3372, 'Black Knight''s Gryphon'),
- (33519, 20, 8484.538, 1025.797, 547.4622, 'Black Knight''s Gryphon'),
- (33519, 21, 8525.363, 1029.284, 547.4177, 'Black Knight''s Gryphon'),
- (33519, 22, 8532.808, 1052.904, 548.1677, 'Black Knight''s Gryphon'),
- (33519, 23, 8537.356, 1077.927, 554.5791, 'Black Knight''s Gryphon'),
- (33519, 24, 8540.528, 1083.379, 569.6827, 'Black Knight''s Gryphon'),
- (33519, 25, 8563.641, 1140.965, 569.6827, 'Black Knight''s Gryphon'),
- (33519, 26, 8594.897, 1205.458, 569.6827, 'Black Knight''s Gryphon'),
- (33519, 27, 8617.104, 1257.399, 566.1833, 'Black Knight''s Gryphon'),
- (33519, 28, 8648.496, 1329.349, 558.0187, 'Black Knight''s Gryphon'),
- (33519, 29, 8667.723, 1388.411, 546.1880, 'Black Knight''s Gryphon'),
- (33519, 30, 8699.145, 1474.898, 528.2197, 'Black Knight''s Gryphon'),
- (33519, 31, 8726.869, 1546.006, 501.7741, 'Black Knight''s Gryphon'),
- (33519, 32, 8739.058, 1592.157, 478.5511, 'Black Knight''s Gryphon'),
- (33519, 33, 8750.799, 1636.771, 455.0797, 'Black Knight''s Gryphon'),
- (33519, 34, 8760.006, 1669.482, 423.2208, 'Black Knight''s Gryphon'),
- (33519, 35, 8783.310, 1701.852, 375.8872, 'Black Knight''s Gryphon'),
- (33519, 36, 8817.336, 1735.731, 343.3323, 'Black Knight''s Gryphon'),
- (33519, 37, 8882.320, 1789.754, 301.5807, 'Black Knight''s Gryphon'),
- (33519, 38, 8958.597, 1841.807, 259.9141, 'Black Knight''s Gryphon'),
- (33519, 39, 9045.891, 1908.076, 233.4143, 'Black Knight''s Gryphon'),
- (33519, 40, 9107.177, 1964.594, 215.9704, 'Black Knight''s Gryphon'),
- (33519, 41, 9134.763, 2036.925, 175.1925, 'Black Knight''s Gryphon'),
- (33519, 42, 9128.608, 2089.091, 141.3593, 'Black Knight''s Gryphon'),
- (33519, 43, 9093.364, 2128.384, 99.38685, 'Black Knight''s Gryphon'),
- (33519, 44, 9050.709, 2123.656, 60.24802, 'Black Knight''s Gryphon');
- /*
- case 63163: // Apply Enchanted Bridle (Argent Tournament)
- spellInfo->EffectDieSides[0]=0; // was 1, that should probably mean seat 0, but instead it's treated as spell 1
- spellInfo->EffectBasePoints[0]=52391; // Ride Vehicle (forces seat 0)
- break;
- */
- -- The Black Knight's Fall
- SET @QUEST := 13664;
- SET @NPC_BLACK_KNIGHT := 33785;
- SET @NPC_BLACK_KNIGHT_GRYPHON := 33513;
- SET @NPC_CAVIN := 33522;
- SET @SPELL_CHARGE := 63003;
- SET @SPELL_SHIELD_BREAKER := 65147;
- SET @SPELL_DARK_SHIELD := 64505;
- SET @SPELL_BLACK_NIGHT_TRANSFORM := 64490; -- Apply Aura: Change Model (34104)
- SET @SPELL_BLACK_NIGHT_TRANSFORM_2 := 64498; -- Apply Aura: Increase Max Health
- SET @SPELL_FULL_HEAL := 25840;
- SET @GOSSIP := 10383;
- -- add Gossip to NPC Cavin
- DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GOSSIP AND `id`=1;
- INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `action_script_id`, `box_coded`, `box_money`, `box_text`) VALUES
- (@GOSSIP, 1, 0, 'Ask Cavin to summon the Black Knight.', 1, 1, 0, 0, 0, 0, 0, NULL);
- -- add gossip_menu_option condition for 13664
- DELETE FROM `conditions` WHERE `SourceGroup`=@GOSSIP AND `SourceTypeOrReferenceId`=15;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (15, @GOSSIP, 1, 0, 9, @QUEST, 0, 0, 0, '', 'Only show gossip when player is on quest The Black Knight\'s Fall');
- -- SAI for NPC Cavin
- UPDATE `creature_template` SET AIName='SmartAI' WHERE `entry`=@NPC_CAVIN;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@NPC_CAVIN;
- DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@NPC_CAVIN*100;
- 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
- (@NPC_CAVIN, 0, 0, 1, 62, 0, 100, 0, @GOSSIP, 1, 0, 0, 80, @NPC_CAVIN*100, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cavin - On gossip option select - Run script'),
- (@NPC_CAVIN, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 12, @NPC_BLACK_KNIGHT, 1, 120000, 0, 0, 0, 8, 0, 0, 0, 8436.9, 970.9, 544.7, 0, 'Cavin - On gossip option select - Summon the Black Knight'),
- (@NPC_CAVIN, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cavin - On gossip option select - Close gossip'),
- (@NPC_CAVIN*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cavin - On Script - Turn off Gossip & Gossip flags'),
- (@NPC_CAVIN*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cavin - On Script - Say text 0'),
- (@NPC_CAVIN*100, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cavin - On Script - Say text 1');
- -- add text for NPC Cavin
- DELETE FROM `creature_text` WHERE `entry`=@NPC_CAVIN;
- INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
- (@NPC_CAVIN, 0, 0, '$N challenges the Black Knight to trial by combat!', 14, 0, 0, 0, 0, 0, 'yell'),
- (@NPC_CAVIN, 1, 0, 'Good luck, $N.', 12, 0, 0, 0, 0, 0, 'say');
- -- SAI for NPC The Black Knight
- UPDATE `creature_template` SET AIName='SmartAI' WHERE `entry`=@NPC_BLACK_KNIGHT;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@NPC_BLACK_KNIGHT;
- DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@NPC_BLACK_KNIGHT*100;
- 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
- (@NPC_BLACK_KNIGHT, 0, 0, 0, 54, 0, 100, 1, 0, 0, 0, 0, 43, @NPC_BLACK_KNIGHT_GRYPHON, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - Just Summoned - Mount to entry'),
- (@NPC_BLACK_KNIGHT, 0, 1, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, @SPELL_CHARGE, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Aggro - Cast Charge'),
- (@NPC_BLACK_KNIGHT, 0, 2, 3, 0, 0, 100, 0, 15000, 20000, 15000, 20000, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Aggro - Set Phase 1'),
- (@NPC_BLACK_KNIGHT, 0, 3, 0, 61, 1, 100, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - In Phase 1 - Flee for assist'),
- (@NPC_BLACK_KNIGHT, 0, 4, 0, 9, 1, 100, 0, 5, 30, 1000, 1000, 11, @SPELL_CHARGE, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - In Phase 1 - Cast Charge'),
- (@NPC_BLACK_KNIGHT, 0, 5, 0, 9, 1, 100, 0, 3, 30, 1500, 2000, 11, @SPELL_SHIELD_BREAKER, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - In Phase 1 & On Range - Cast Shield Breaker'),
- (@NPC_BLACK_KNIGHT, 0, 6, 0, 6, 0, 100, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 9, @NPC_CAVIN, 0, 200, 0, 0, 0, 0, 'Blackknight - On Death - Turn on Gossip & Gossip flags on Cavin'),
- (@NPC_BLACK_KNIGHT, 0, 7, 8, 1, 0, 100, 0, 60000, 60000, 80000, 80000, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - Out Of Combat after 60s - Despawn'),
- (@NPC_BLACK_KNIGHT, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 9, @NPC_CAVIN, 0, 200, 0, 0, 0, 0, 'Blackknight - Out Of Combat after 60s - Turn on Gossip & Gossip flags on Cavin'),
- (@NPC_BLACK_KNIGHT, 0, 9, 0, 2, 1, 100, 1, 0, 25, 0, 0, 80, @NPC_BLACK_KNIGHT*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On 25% health - Run script'),
- (@NPC_BLACK_KNIGHT*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Evade'),
- (@NPC_BLACK_KNIGHT*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - State passive'),
- (@NPC_BLACK_KNIGHT*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Say text 0'),
- (@NPC_BLACK_KNIGHT*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Unmount'),
- (@NPC_BLACK_KNIGHT*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_DARK_SHIELD, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Cast Dark Shield'),
- (@NPC_BLACK_KNIGHT*100, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 11, @SPELL_BLACK_NIGHT_TRANSFORM, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Apply Aura'),
- (@NPC_BLACK_KNIGHT*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_FULL_HEAL, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Full hp'),
- (@NPC_BLACK_KNIGHT*100, 9, 7, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, @SPELL_BLACK_NIGHT_TRANSFORM_2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Increase Max Health'),
- (@NPC_BLACK_KNIGHT*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Unmount player'),
- (@NPC_BLACK_KNIGHT*100, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - State Aggresive'),
- (@NPC_BLACK_KNIGHT*100, 9, 10, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Say text 1'),
- (@NPC_BLACK_KNIGHT*100, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Blackknight - On Script - Start Attack');
- -- add text for NPC The Black Knight
- DELETE FROM `creature_text` WHERE `entry`=@NPC_BLACK_KNIGHT;
- INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
- (@NPC_BLACK_KNIGHT, 0, 0, 'Get off that horse and fight me man-to-man!', 14, 0, 0, 0, 0, 0, 'yell'),
- (@NPC_BLACK_KNIGHT, 1, 0, 'I will not fail you, master!', 14, 0, 0, 0, 0, 0, 'yell');
- -- Argent Tournament mounts implementation
- SET @GUID := 200000;
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33870; -- Stabled Argent Warhorse
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33790; -- Stabled Exodar Elekk
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33791; -- Stabled Silvermoon Hawkstrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33792; -- Stabled Thunder Bluff Kodo
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33793; -- Stabled Gnomeregan Mechanostrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33794; -- Stabled Darnassian Nightsaber
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33795; -- Stabled Ironforge Ram
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33796; -- Stabled Darkspear Raptor
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33798; -- Stabled Forsaken Warhorse
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33799; -- Stabled Orgrimmar Wolf
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33800; -- Stabled Stormwind Steed
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33842; -- Stabled Sunreaver Hawkstrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `speed_run`=1.5714285714286 WHERE `entry`=33843; -- Stabled Quel'dorei Steed
- UPDATE `creature_model_info` SET `bounding_radius`=1, `combat_reach`=1, `gender`=0 WHERE `modelid`=29255; -- Stabled Exodar Elekk
- UPDATE `creature_model_info` SET `bounding_radius`=1.185, `combat_reach`=2.25, `gender`=0 WHERE `modelid`=29256; -- Stabled Darnassian Nightsaber
- UPDATE `creature_model_info` SET `bounding_radius`=0.818, `combat_reach`=2, `gender`=0 WHERE `modelid`=29258; -- Stabled Ironforge Ram
- UPDATE `creature_model_info` SET `bounding_radius`=0.35, `combat_reach`=1.5, `gender`=0 WHERE `modelid`=29261; -- Stabled Darkspear Raptor
- UPDATE `creature_model_info` SET `bounding_radius`=0, `combat_reach`=1, `gender`=2 WHERE `modelid`=28918; -- Stabled Argent Warhorse
- DELETE FROM `creature_template_addon` WHERE `entry` IN (33870, 33790, 33791, 33792, 33793, 33794, 33795, 33796, 33798, 33799, 33800, 33842, 33843);
- INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33870, 0, 0, 1, 0, NULL), -- Stabled Argent Warhorse
- (33790, 0, 0, 1, 0, NULL), -- Stabled Exodar Elekk
- (33791, 0, 0, 1, 0, NULL), -- Stabled Silvermoon Hawkstrider
- (33792, 0, 0, 1, 0, NULL), -- Stabled Thunder Bluff Kodo
- (33793, 0, 0, 1, 0, NULL), -- Stabled Gnomeregan Mechanostrider
- (33794, 0, 0, 1, 0, NULL), -- Stabled Darnassian Nightsaber
- (33795, 0, 0, 1, 0, NULL), -- Stabled Ironforge Ram
- (33796, 0, 0, 1, 0, NULL), -- Stabled Darkspear Raptor
- (33798, 0, 0, 1, 0, NULL), -- Stabled Forsaken Warhorse
- (33799, 0, 0, 1, 0, NULL), -- Stabled Orgrimmar Wolf
- (33800, 0, 0, 1, 0, NULL), -- Stabled Stormwind Steed
- (33842, 0, 0, 1, 0, NULL), -- Stabled Sunreaver Hawkstrider
- (33843, 0, 0, 1, 0, NULL); -- Stabled Quel'dorei Steed
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33782; -- Argent Warhorse
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `faction_A`=35, `faction_H`=35, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33318; -- Exodar Elekk
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33323; -- Silvermoon Hawkstrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33322; -- Thunder Bluff Kodo
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `faction_A`=35, `faction_H`=35, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33317; -- Gnomeregan Mechanostrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `faction_A`=35, `faction_H`=35, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33319; -- Darnassian Nightsaber
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33316; -- Ironforge Ram
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33321; -- Darkspear Raptor
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33324; -- Forsaken Warhorse
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33320; -- Orgrimmar Wolf
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `faction_A`=35, `faction_H`=35, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33845; -- Quel'dorei Steed
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33844; -- Sunreaver Hawkstrider
- UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216, `unit_flags`=0, `speed_run`=1.5714285714286, `vehicleid`=349 WHERE `entry`=33217; -- Stormwind Steed
- UPDATE `creature_template` SET
- `spell1`=62544, -- Thurst
- `spell2`=62575, -- Shield-Breaker
- `spell3`=62960, -- Charge
- `spell4`=62552, -- Defend
- `spell5`=64077, -- Refresh Mount
- `spell6`=62863, -- Duel
- `spell7`=63034 -- Player On Tournament Mount (aura)
- WHERE `vehicleid`=349;
- DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (33870, 33790, 33791, 33792, 33793, 33794, 33795, 33796, 33798, 33799, 33800, 33842, 33843);
- INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
- (33870, 63663, 1, 0), -- Stabled Argent Warhorse - Summon Tournament Argent Charger - requires quest The Black Knight's Fall (shall not be completed nor rewarded)
- (33790, 62781, 1, 0), -- Stabled Exodar Elekk - Summon Tournament Elekk - requires quest A Valiant Of The Exodar
- (33791, 62786, 1, 0), -- Stabled Silvermoon Hawkstrider - Summon Tournament Hawkstrider - requires quest A Valiant Of Silvermoon
- (33792, 62785, 1, 0), -- Stabled Thunder Bluff Kodo - Summon Tournament Kodo - requires quest A Valiant Of Thunder Bluff
- (33793, 62780, 1, 0), -- Stabled Gnomeregan Mechanostrider - Summon Tournament Mechanostrider - requires quest A Valiant Of Gnomeregan
- (33794, 62782, 1, 0), -- Stabled Darnassian Nightsaber - Summon Tournament Nightsaber - requires quest A Valiant Of Darnassus
- (33795, 62779, 1, 0), -- Stabled Ironforge Ram - Summon Tournament Ram - requires quest A Valiant Of Ironforge
- (33796, 62784, 1, 0), -- Stabled Darkspear Raptor - Summon Tournament Raptor - requires quest A Valiant Of Sen'jin
- (33798, 62787, 1, 0), -- Stabled Forsaken Warhorse - Summon Tournament Warhorse - requires quest A Valiant Of Undercity
- (33799, 62783, 1, 0), -- Stabled Orgrimmar Wolf - Summon Tournament Wolf - requires quest A Valiant Of Orgrimmar
- (33800, 62774, 1, 0), -- Stabled Stormwind Steed - Summon Tournament Charger - requires quest A Valiant Of Stormwind
- (33842, 63791, 1, 0), -- Stabled Sunreaver Hawkstrider - Summon Tournament Hawkstrider (Aspirant) - requires quest The Argent Tournament (H/Argent Aspiration)
- (33843, 63792, 1, 0); -- Stabled Quel'dorei Steed - Summon Tournament Steed (Aspirant) - requires quest The Argent Tournament (A/Argent Aspiration)
- -- Note: spell 62853 (Lance Equipped) is required for all vehicles.
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=16 AND `ConditionTypeOrReference`=1 AND `ConditionValue1`=64373;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- -- dismount in wrong zones condition
- (16, 0, 33782, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Argent Warhorse requires aura Armistice'),
- (16, 0, 33318, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Exodar Elekk requires aura Armistice'),
- (16, 0, 33323, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Silvermoon Hawkstrider requires aura Armistice'),
- (16, 0, 33322, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Thunder Bluff Kodo requires aura Armistice'),
- (16, 0, 33317, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Gnomeregan Mechanostrider requires aura Armistice'),
- (16, 0, 33319, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Darnassian Nightsaber requires aura Armistice'),
- (16, 0, 33316, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Ironforge Ram requires aura Armistice'),
- (16, 0, 33321, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Darkspear Raptor requires aura Armistice'),
- (16, 0, 33324, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Forsaken Warhorse requires aura Armistice'),
- (16, 0, 33320, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Orgrimmar Wolf requires aura Armistice'),
- (16, 0, 33845, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Quel''dorei Steed requires aura Armistice'),
- (16, 0, 33844, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Sunreaver Hawkstrider requires aura Armistice'),
- (16, 0, 33217, 0, 1, 64373, 0, 0, 0, '', 'Vehicle Stormwind Steed requires aura Armistice');
- DELETE FROM `creature_template_addon` WHERE `entry` IN (33782, 33318, 33323, 33322, 33317, 33319, 33316, 33321, 33324, 33320, 33845, 33844, 33217);
- INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
- (33782, 0, 0, 2305, 0, NULL), -- Argent Warhorse
- (33318, 0, 0, 2305, 0, NULL), -- Exodar Elekk
- (33323, 0, 0, 2305, 0, NULL), -- Silvermoon Hawkstrider
- (33322, 0, 0, 2305, 0, NULL), -- Thunder Bluff Kodo
- (33317, 0, 0, 2305, 0, NULL), -- Gnomeregan Mechanostrider
- (33319, 0, 0, 2305, 0, NULL), -- Darnassian Nightsaber
- (33316, 0, 0, 2305, 0, NULL), -- Ironforge Ram
- (33321, 0, 0, 2305, 0, NULL), -- Darkspear Raptor
- (33324, 0, 0, 2305, 0, NULL), -- Forsaken Warhorse
- (33320, 0, 0, 2305, 0, NULL), -- Orgrimmar Wolf
- (33845, 0, 0, 2305, 0, NULL), -- Quel''dorei Steed
- (33844, 0, 0, 2305, 0, NULL), -- Sunreaver Hawkstrider
- (33217, 0, 0, 2305, 0, NULL); -- Stormwind Steed
- UPDATE `creature_model_info` SET `bounding_radius`=1, `combat_reach`=1, `gender`=0 WHERE `modelid`=29255; -- Exodar Elekk
- UPDATE `creature_model_info` SET `bounding_radius`=1.185, `combat_reach`=2.25, `gender`=0 WHERE `modelid`=29256; -- Darnassian Nightsaber
- UPDATE `creature_model_info` SET `bounding_radius`=2, `combat_reach`=0, `gender`=0 WHERE `modelid`=29258; -- Ironforge Ram
- UPDATE `creature_model_info` SET `bounding_radius`=0.35, `combat_reach`=1.5, `gender`=0 WHERE `modelid`=29261; -- Darkspear Raptor
- UPDATE `gameobject` SET `rotation0`=0, `rotation1`=0, `rotation2`=0, `rotation3`=0, `spawntimesecs`=300, `animprogress`=0 WHERE `id`=300008; -- equal field values for all the entries
- -- Disables
- -- Up To The Challenge - quest po jehoz splneni hrac muze sbirat dalsi rank sealu - zatim neni doopravene, takze nepujde odevzdat
- DELETE FROM `creature_involvedrelation` WHERE `quest` IN (13672, 13678);
- -- The Black Knight's Curse - prvni 3.2.0 quest z chainu na Black Knighta
- DELETE FROM `disables` WHERE `sourceType`=1 AND `entry`=14016;
- INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`, `comment`) VALUES
- (1, 14016, 0, '', '', '3.2.0 quest - The Black Knight''s Curse');