Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET @NPC = 54611; -- Jaomin Ro
- SET @QUEST = 29409; -- The Disciple's Challenge
- UPDATE creature_template SET AIName = 'SmartAI' , ScriptName = '', faction = 2357 WHERE entry = @NPC;
- DELETE FROM `smart_scripts` WHERE entryorguid = @NPC AND source_type = 0;
- DELETE FROM `smart_scripts` WHERE entryorguid = @NPC*100 AND source_type = 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`, `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_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
- (@NPC, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Combat - Say text - Target Self'),
- (@NPC, 0, 1, 2, 11, 0, 100, 0, 0, 0, 0, 0, 0, 2, 2357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Respawn - Set faction - Target Self'),
- (@NPC, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set Phase - Target Self'),
- -- (@NPC, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 42, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set Invicible health pct - Target Self'),
- (@NPC, 0, 4, 5, 25, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 39755, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set displayId - Target Self'),
- (@NPC, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set phase - Target Self'),
- (@NPC, 0, 6, 0, 0, 1, 100, 0, 1000, 1000, 30000, 30000, 0, 11, 108938, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC - Cast spell - Target Victim'),
- (@NPC, 0, 7, 0, 0, 1, 100, 0, 2000, 2000, 10000, 20000, 0, 11, 119301, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC - Cast spell - Target Victim'),
- (@NPC, 0, 8, 9, 2, 0, 100, 1, 0, 30, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Health - Set phase - Target Self'),
- (@NPC, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 39796, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set display Id - Target Self'),
- (@NPC, 0, 10, 0, 0, 2, 100, 0, 2000, 4000, 4000, 8000, 0, 11, 108935, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC - Cast spell - Target Victim'),
- (@NPC, 0, 11, 12, 2, 2, 100, 0, 0, 10, 0, 0, 0, 33, @NPC, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 'On Health - KillCredit - Target Threat List'),
- (@NPC, 0, 12, 13, 61, 2, 100, 0, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set faction - Target Self'),
- (@NPC, 0, 13, 14, 61, 2, 100, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Say text - Target Self'),
- (@NPC, 0, 14, 15, 61, 2, 100, 0, 0, 0, 0, 0, 0, 3, 0, 39755, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set Display Id - Target Self'),
- (@NPC, 0, 15, 16, 61, 2, 100, 0, 0, 0, 0, 0, 0, 5, 66, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Play emote - Target Self'),
- (@NPC, 0, 16, 0, 61, 2, 100, 0, 0, 0, 0, 0, 0, 80, @NPC*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Start script - Target Self'),
- (@NPC*100, 9, 0, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 2, 2357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Script - Set faction - Target Self');
- DELETE FROM creature_text WHERE creatureId = @NPC;
- INSERT INTO `creature_text` (`creatureId`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
- (@NPC, 0, 0, 'A challenger approaches.', 12, 0, 100, 1, 0, 0, 'Jaomin Ro'),
- (@NPC, 1, 0, 'I bow to your skill. You bested me fairly.', 12, 0, 100, 1, 0, 0, 'Jaomin Ro'),
- (@NPC, 1, 1, 'It was an honor to be defeated by you.', 12, 0, 100, 1, 0, 0, 'Jaomin Ro'),
- (@NPC, 1, 2, 'Amazing! You\'re much stronger than you look.', 12, 0, 100, 1, 0, 0, 'Jaomin Ro'),
- (@NPC, 1, 3, 'It seems I have more training to do. Thank you for the lesson.', 12, 0, 100, 1, 0, 0, 'Jaomin Ro');
- DELETE FROM `creature_queststarter` WHERE `id` = 54943 AND `quest` = 29419;
- DELETE FROM `creature_queststarter` WHERE `id` = 54943 AND `quest` = 29424;
- INSERT INTO `creature_queststarter` VALUES
- ( '54943', '29419'), -- The Missing Driver
- ( '54943', '29424'); -- Items of Utmost Importance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement