Projekt

Allgemein

Profil

Fehler #3354 » ahune.sql

Ottowayne, 11.06.2012 20:06

 
1
SET @GUID                            := 303059;
2

    
3
/* NPCs */
4
-- Ahune
5
SET @NPC_AHUNE                       := 25740;
6
SET @NPC_FROZENCORE                  := 25865;
7
-- Bunnys
8
SET @NPC_SPANKTARGETBUNNY            := 26190;
9
SET @NPC_SLIPPERYFLOORBUNNY          := 25952;
10
SET @NPC_ICESPEARBUNNY               := 25985;
11
-- Ahunite Adds
12
SET @NPC_AHUNITE_FROSTWIND           := 25757;
13
SET @NPC_AHUNITE_COLD_WIND           := 25756;
14
SET @NPC_AHUNITE_HAILSTONE           := 25755;
15

    
16
/* Spells */
17
-- Ahune
18
SET @SPELL_SLIPPERY_FLOOR            := 46320;
19
SET @SPELL_BUNNY_KNOCK_OUT           := 46735;
20
SET @SPELL_COLD_SLAP                 := 46145;
21
SET @SPELL_SPANK_KNOCK_TO            := 46734;
22
-- Ahunite Adds
23
SET @SPELL_LIGHTNING_SHIELD          := 51620;
24
SET @SPELL_WIND_BUFFET               := 46568;
25
SET @SPELL_BITTER_BLAST              := 46406;
26
SET @SPELL_CHILLING_AURA             := 46542;
27
SET @SPELL_PULVERIZE                 := 2676;
28

    
29
/* Gameobjects */
30
SET @GO_ICE_SPEAR                    := 188077;
31
SET @GO_ICE_STONE                    := 187882;
32

    
33
/* Items */
34
SET @ITEM_POCKET_FULL_OF_SNOW        := 35512;
35
-- DF Reward
36
SET @ITEM_SATCHEL_OF_CHILLED_GOODS   := 54536;
37
-- Satchel of Chilled Goods Loot
38
SET @ITEM_ICE_CHIP                   := 53641;
39
SET @ITEM_FROSTSCYTHE                := 35514; -- Level 80: 54806
40
-- Chest Loot
41
SET @ITEM_ICEBOUND_CLOAK             := 35496; -- Level 80: 54801
42
SET @ITEM_FROST_LORDS_WAR_CLOAK      := 35495; -- Level 80: 54802
43
-- SET @ITEM_FROST_LORDS_BATTLE_SHROUD  := 54803;
44
SET @ITEM_SHROUD_OF_WINTERS_CHILL    := 35494; -- Level 80: 54804
45
SET @ITEM_CLOAK_OF_THE_FRIGID_WINDS  := 35497; -- Level 80: 54805
46
SET @ITEM_SHARDS_OF_AHUNE            := 35723;
47
SET @ITEM_HUGE_SNOWBALL              := 35557;
48
SET @ITEM_LORDS_PRIVATE_LABEL        := 35720;
49
SET @ITEM_FORMULA_DEATHFROST         := 35498;
50
-- Pocket Full of Snow
51
SET @ITEM_SNOWBALL                   := 17202;
52

    
53
/* Quests */
54
SET @QUEST_WORLD_EVENT_DUNGEON_AHUNE := 25484;
55

    
56
-- ToDo: Move some Earthen Ring Npc
57
/*
58
UPDATE `creature` SET `orientation`=4.5618 WHERE `guid`=202734;
59
UPDATE `creature` SET `position_x`=-127.463, `position_y`=-130.762, `position_z`=-2.06541, `orientation`=4.90899 WHERE `guid`=202735;
60
UPDATE `creature` SET `position_x`=-141.138, `position_y`=-136.834, `position_z`=-1.59055, `orientation`=5.24279 WHERE `guid`=202736;
61
UPDATE `creature` SET `position_x`=-136.327, `position_y`=-132.425, `position_z`=-1.80894, `orientation`=5.06608 WHERE `guid`=202737;
62
UPDATE `creature` SET `position_x`=-138.054, `position_y`=-139.024, `position_z`=-1.67183, `orientation`=5.04643 WHERE `guid`=202738;
63
UPDATE `creature` SET `position_x`=-131.929, `position_y`=-135.194, `position_z`=-1.94897, `orientation`=4.99538 WHERE `guid`=202739;
64
*/
65

    
66
-- Spawn Ahune + Bunnies
67
DELETE FROM `creature` WHERE `id` IN (@NPC_AHUNE,@NPC_SPANKTARGETBUNNY);
68
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
69
(@GUID,@NPC_AHUNE,547,1,1,0,0,-97.407,-238.3,-1.26481,1.43332,10,0,0,539000,0,0,0,0,0),
70
(@GUID+1,@NPC_SPANKTARGETBUNNY,547,1,1,0,0,-85.6774,-197.35,25.3171,4.4867,30,0,0,57,0,0,0,33554432,0),
71
(@GUID+2,@NPC_SPANKTARGETBUNNY,547,1,1,0,0,-121.318,-199.329,26.6837,5.17001,30,0,0,57,0,0,0,33554432,0),
72
(@GUID+3,@NPC_SPANKTARGETBUNNY,547,1,1,0,0,-105.895,-194.285,26.6837,4.98152,30,0,0,57,0,0,0,33554432,0),
73
(@GUID+4,@NPC_SPANKTARGETBUNNY,547,1,1,0,0,-96.5971,-195.524,26.6837,4.46316,30,0,0,57,0,0,0,33554432,0);
74

    
75

    
76
DELETE FROM `game_event_creature` WHERE `guid` BETWEEN @GUID AND @GUID+4;
77
INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES
78
(1,@GUID),
79
(1,@GUID+1),
80
(1,@GUID+2),
81
(1,@GUID+3),
82
(1,@GUID+4);
83

    
84
-- ToDo: Update Templates
85
/*
86
UPDATE `creature_template` SET `minlevel`=82, `maxlevel`=82, `exp`=2, `faction_A`=14, `faction_H`=14 WHERE `entry` IN (@NPC_AHUNE,@NPC_FROZENCORE);
87
UPDATE `creature_template` SET `minlevel`=82, `maxlevel`=82 WHERE `entry`=@NPC_SLIPPERYFLOORBUNNY;
88
UPDATE `creature_template` SET `minlevel`=82, `maxlevel`=82, `flags_extra`=128 WHERE `entry`=@NPC_ICESPEARBUNNY;
89
UPDATE `creature_template` SET `minlevel`=80, `maxlevel`=80, `exp`=2, `faction_A`=14, `faction_H`=14 WHERE `entry` IN (@NPC_AHUNITE_HAILSTONE,@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_FROSTWIND);
90
UPDATE `creature_template` SET `mindmg`=417, `maxdmg`=582, `dmg_multiplier`=2 WHERE `entry` IN (@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_FROSTWIND);
91
UPDATE `creature_template` SET `mindmg`=417, `maxdmg`=582, `dmg_multiplier`=5 WHERE `entry`=@NPC_AHUNITE_HAILSTONE;
92
*/
93
-- Factions & HP
94
UPDATE `creature_template` SET `exp`=2, `faction_A`=14, `faction_H`=14 WHERE `entry` IN (@NPC_AHUNE,@NPC_FROZENCORE);
95
UPDATE `creature_template` SET `exp`=2, `faction_A`=14, `faction_H`=14 WHERE `entry` IN (@NPC_AHUNITE_HAILSTONE,@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_FROSTWIND);
96
-- Damage
97
UPDATE `creature_template` SET `mindmg`=417, `maxdmg`=582, `dmg_multiplier`=2 WHERE `entry` IN (@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_FROSTWIND);
98
UPDATE `creature_template` SET `mindmg`=417, `maxdmg`=582, `dmg_multiplier`=5 WHERE `entry`=@NPC_AHUNITE_HAILSTONE;
99
-- Bunny Flags
100
UPDATE `creature_template` SET `flags_extra`=128 WHERE `entry`=@NPC_ICESPEARBUNNY;
101
-- InhabitType: Air Only and flags_extra CREATURE_FLAG_EXTRA_TRIGGER
102
UPDATE `creature_template` SET `InhabitType`=4, `flags_extra`=128 WHERE `entry`=@NPC_SPANKTARGETBUNNY;
103
-- Mechanic Immune Mask and Frost Immunity
104
UPDATE `creature_template` SET `mechanic_immune_mask`=650854239 WHERE `entry` IN (@NPC_AHUNE,@NPC_FROZENCORE);
105
-- Quest 'Summon Ahune': Add Flags DungeonFinder & Repeatable
106
UPDATE `quest_template` SET `SpecialFlags`=9 WHERE `entry`=@QUEST_WORLD_EVENT_DUNGEON_AHUNE;
107
-- Set Ice Spear GO Flag GO_FLAG_NOT_SELECTABLE
108
UPDATE `gameobject_template` SET `flags`=16 WHERE `entry`=@GO_ICE_SPEAR;
109
-- Root Frozen Core
110
UPDATE `creature_template` SET `unit_flags`=4 WHERE `entry`=@NPC_FROZENCORE;
111
-- Scriptnames
112
UPDATE `creature_template` SET `ScriptName`='npc_frostlord_ahune' WHERE `entry`=@NPC_AHUNE;
113
UPDATE `creature_template` SET `ScriptName`='npc_ahune_ice_spear' WHERE `entry`=@NPC_ICESPEARBUNNY;
114
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (@NPC_AHUNITE_FROSTWIND,@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_HAILSTONE);
115
UPDATE `gameobject_template` SET `ScriptName`='go_ahune_ice_stone' WHERE `entry`=@GO_ICE_STONE;
116

    
117
-- Frozen Core Hitbox
118
UPDATE `creature_model_info` SET `bounding_radius`=0.45, `combat_reach`=10 WHERE `modelid`=23447;
119

    
120
-- Cold Slap targets
121
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN (@SPELL_SLIPPERY_FLOOR,@SPELL_BUNNY_KNOCK_OUT);
122
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`) VALUES
123
(13,@SPELL_SLIPPERY_FLOOR,18,1,0),
124
(13,@SPELL_BUNNY_KNOCK_OUT,18,1,@NPC_SPANKTARGETBUNNY);
125

    
126
-- Cold Slap related Script Effects
127
DELETE FROM `spell_scripts` WHERE `id` IN (@SPELL_SLIPPERY_FLOOR,@SPELL_BUNNY_KNOCK_OUT);
128
INSERT INTO `spell_scripts` (`id`, `effIndex`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
129
(@SPELL_SLIPPERY_FLOOR,0,0,15,@SPELL_COLD_SLAP,0,0,0,0,0,0),
130
(@SPELL_BUNNY_KNOCK_OUT,0,0,15,@SPELL_SPANK_KNOCK_TO,3,0,0,0,0,0);
131

    
132
-- Ice Chest - Loot
133
DELETE FROM `gameobject_loot_template` WHERE `entry`=28682;
134
INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
135
-- Cloaks
136
(28682,@ITEM_ICEBOUND_CLOAK,0,1,1,1,1),
137
(28682,@ITEM_FROST_LORDS_WAR_CLOAK,0,1,1,1,1),
138
-- (28682,@ITEM_FROST_LORDS_BATTLE_SHROUD,0,1,1,1,1),
139
(28682,@ITEM_SHROUD_OF_WINTERS_CHILL,0,1,1,1,1),
140
(28682,@ITEM_CLOAK_OF_THE_FRIGID_WINDS,0,1,1,1,1),
141
-- Shards of Ahune
142
(28682,@ITEM_SHARDS_OF_AHUNE,100,1,0,1,1),
143
-- Huge Snowball
144
(28682,@ITEM_HUGE_SNOWBALL,28,1,0,2,2),
145
-- Lord of Frost Private Label
146
(28682,@ITEM_LORDS_PRIVATE_LABEL,3,1,0,6,6),
147
-- Formula: Enchant Weapon - Deathfrost
148
(28682,@ITEM_FORMULA_DEATHFROST,3,1,0,1,1);
149

    
150
-- Pocket Full of Snow - Loot
151
DELETE FROM `item_loot_template` WHERE `entry`=@ITEM_POCKET_FULL_OF_SNOW;
152
INSERT INTO `item_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
153
(@ITEM_POCKET_FULL_OF_SNOW,@ITEM_SNOWBALL,100,1,0,2,5);
154

    
155
-- Ahnuite Adds SAI
156
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@NPC_AHUNITE_FROSTWIND,@NPC_AHUNITE_COLD_WIND,@NPC_AHUNITE_HAILSTONE) AND `source_type`=0;
157
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
158
(@NPC_AHUNITE_FROSTWIND,0,0,0,25,0,100,0,0,0,0,0,75,@SPELL_LIGHTNING_SHIELD,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Ahunite Frostwind - Add Lightning Shield on Reset'),
159
(@NPC_AHUNITE_FROSTWIND,0,1,0,0,0,100,0,5000,5000,7000,7000,11,@SPELL_WIND_BUFFET,0,0,0,0,0,17,8,25,0,0,0,0,0, 'Ahunite Frostwind - Cast Wind Buffet'),
160
(@NPC_AHUNITE_COLD_WIND,0,0,0,0,0,100,0,1000,5000,4000,5000,11,@SPELL_BITTER_BLAST,0,0,0,0,0,5,0,0,0,0,0,0,0,'Ahunite Coldwave - Cast Bitter Blast'),
161
(@NPC_AHUNITE_HAILSTONE,0,0,0,25,0,100,0,0,0,0,0,75,@SPELL_CHILLING_AURA,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Ahunite Hailstone - Add Chilling Aura on Reset'),
162
(@NPC_AHUNITE_HAILSTONE,0,1,0,0,0,100,0,2500,5000,6000,7000,11,@SPELL_PULVERIZE,2,0,0,0,0,1,0,0,0,0,0,0,0, 'Ahunite Hailstone - Cast Pulverize');
163

    
164
-- Satchel of Chilled Goods - loot
165
DELETE FROM `item_loot_template` WHERE `entry`=@ITEM_SATCHEL_OF_CHILLED_GOODS;
166
INSERT INTO `item_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
167
-- Ice Chip
168
(@ITEM_SATCHEL_OF_CHILLED_GOODS,@ITEM_ICE_CHIP,3,1,0,1,1),
169
-- Frostscythe of Lord Ahune (Level 70 Version)
170
(@ITEM_SATCHEL_OF_CHILLED_GOODS,@ITEM_FROSTSCYTHE,6,1,0,1,1);
171

    
172
-- Ice Stone gossip menu
173
DELETE FROM `gossip_menu` WHERE `entry`=11389;
174
INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES
175
(11389,15864);
    (1-1/1)