Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Sparkless
- Ticket: 206
- Descr.: Quest Free at Last (GrizzlyHills) - New SmartScript
- */
- /* Change Faction and SmartScript for Giants */
- UPDATE creature_template SET exp = 2, faction_A = 1771, faction_H = 1771, AIName = 'SmartAI', ScriptName = '' WHERE entry = 26417; -- Runed Giant
- UPDATE creature_template SET exp = 2, faction_A = 35, faction_H = 35, speed_run = 0.99206, unit_class = 2, AIName = '', ScriptName = '' WHERE entry = 26783; -- Freed Giant
- UPDATE creature_template SET exp = 2, minlevel = 74, maxlevel = 75, faction_A = 1771, faction_H = 1771, mindmg = 249, maxdmg = 304, attackpower = 280, dmg_multiplier = 4, unit_class = 2, AIName = 'SmartAI', ScriptName = '' WHERE entry = 26872; -- Weakened Giant
- /* Add Spell Condition */
- DELETE FROM conditions WHERE SourceEntry = 47604 AND SourceTypeOrReferenceId = 17; -- Gavrocks Runebreaker
- INSERT INTO conditions (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorType, ErrorTextId, ScriptName, Comment) VALUES
- (17, 0, 47604, 0, 0, 31, 1, 3, 26417, 0, 0, 173, 0, '', 'Gavrocks Runebreaker - Target must be entry 26417'), -- Runed Giant
- (17, 0, 47604, 0, 1, 31, 1, 3, 26872, 0, 0, 173, 0, '', 'Gavrocks Runebreaker - Target must be entry 26872'); -- Weakened Giant
- /* SmartScript for Runed Giants */
- DELETE FROM smart_scripts WHERE entryorguid = 26417; -- Runed Giants
- 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
- (26417, 0, 0, 0, 8, 0, 100, 0, 47604, 0, 0, 0, 87, 2641700, 2641701, 2641701, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Runed Giant - On spellhit - Call random timed actionlist'); -- Either killcredit or attack
- /* SmartScript for Runed Giants */
- DELETE FROM smart_scripts WHERE entryorguid = 26872; -- Weakened Giants
- 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
- (26872, 0, 0, 0, 8, 0, 33, 0, 47604, 0, 0, 0, 87, 2641700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Weakened Giant - On spellhit - Call random timed actionlist'); -- Either killcredit or attack
- /* Actionlist for Killcredit */
- DELETE FROM smart_scripts WHERE entryorguid = 2641700; -- Killcredit Actionlist
- 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
- (2641700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 26783, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Update template'), -- Change template
- (2641700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Stop attack'), -- Stop attack
- (2641700, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 33, 26783, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Give quest credit'), -- Killcredit
- (2641700, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Say lines'), -- Speak
- (2641700, 9, 5, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 36, 26417, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Reset template'), -- Reset template
- (2641700, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Giant - Action list - Despawn'); -- Despawn
- /* Actionlist for Attack */
- DELETE FROM smart_scripts WHERE entryorguid = 2641701; -- Attack Actionlist
- 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
- (2641701, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 26872, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Weakened Giant - Action list - Update template'), -- Change template
- (2641701, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Weakened Giant - Action list - Attack start'); -- Start attack
- /* Delete Text from wrong template */
- DELETE FROM creature_text WHERE entry = 26417; -- Runed Giant
- /* Add Text to Freed Giant */
- DELETE FROM creature_text WHERE entry = 26783; -- Freed Giant
- INSERT INTO creature_text (entry, groupid, id, text, type, language, probability, emote, duration, sound, comment) VALUES
- (26783, 0, 0, 'I thought I was doomed. Thank you for freeing me.', 12, 0, 100, 0, 0, 0, 'Freed Giant'),
- (26783, 0, 1, 'You have my gratitude.', 12, 0, 100, 0, 0, 0, 'Freed Giant'),
- (26783, 0, 2, 'I never thought I\'d be free from that terrible spell!', 12, 0, 100, 0, 0, 0, 'Freed Giant'),
- (26783, 0, 3, 'Thank you, small one.', 12, 0, 100, 0, 0, 0, 'Freed Giant');
- /* Add German Text to Freed Giant */
- DELETE FROM locales_creature_text WHERE entry = 26783; -- Freed Giant
- INSERT INTO locales_creature_text (entry, groupid, id, text_loc3) VALUES
- (26783, 0, 0, 'Ich dachte, ich sei verdammt. Danke, dass Ihr mich befreit habt'),
- (26783, 0, 1, 'Ihr habt meine Dankbarkeit'),
- (26783, 0, 2, 'Ich dachte, ich würde nie von diesem Zauber befreit werden!'),
- (26783, 0, 3, 'Habt Dank, kleines Wesen');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement