Advertisement
gecko32

Coren Direbrew

Sep 20th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 4.00 KB | None | 0 0
  1. SET @Entry := 23872;
  2. SET @Gossip := 30000;
  3. SET @GossipSub :=@Gossip +1;
  4. SET @GosOption1 :=0;
  5. SET @GosOption2 :=1;
  6. SET @CorenGuid :=213141;
  7. -- Spawn Coren Direbrew
  8. DELETE FROM `creature` WHERE `guid`=@CorenGuid;
  9. 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
  10. (@CorenGuid, 23872, 230, 1, 1, 0, 0, 894.145, -129.226, -49.7446, 5.23982, 300, 0, 0, 302400, 0, 0, 0, 0, 0); -- Coren Direbrew
  11. -- Add Dialog options
  12. UPDATE `creature_template` SET `gossip_menu_id`=@Gossip, `faction_A`=735, `faction_H`=735, `npcflag`=1 WHERE `entry`=23872 LIMIT 1;
  13. -- Bulk Gossip Text Main
  14. DELETE FROM `gossip_menu` WHERE `entry`=@Gossip;
  15. INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (@Gossip, 15858);
  16. -- Main menu Options
  17. DELETE FROM `gossip_menu_option` WHERE `menu_id`=@Gossip;
  18. 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
  19. (@Gossip, 0, 0, 'Insult Coren Direbrew\'s brew', 1, 1, @GossipSub, 1, 0, 0, NULL);
  20. -- Bulk Gossip Text Sub
  21. DELETE FROM `gossip_menu` WHERE `entry`=@GossipSub;
  22. INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (@GossipSub, 15859);
  23. -- Submenu Options
  24. DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GossipSub;
  25. 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
  26. (@GossipSub, @GosOption1, 0, 'Fight!', 1, 1, 0, 0, 0, 0, NULL),
  27. (@GossipSub, @GosOption2, 0, 'Apoligize', 1, 1, 0, 0, 0, 0, NULL);
  28. -- Add creature text for Coren
  29. DELETE FROM `creature_text` WHERE `entry`=@Entry;
  30. INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
  31. (@Entry, 0, 0, 'This is an insult! An affront! They deny us participation in time-honored dwarven traditions!', 12, 0, 0, 0, 0, 0, 'Coren_Direbrew_To_Troops'),
  32. (@Entry, 1, 0, 'Are We Going to hide in our mountain and let those swill-peddlers have their little shindig without us?!', 12, 0, 0, 0, 0, 0, 'Coren_Direbrew_To_Troops_2'),
  33. (@Entry, 2, 0, 'DAMN RIGHT! We\'ll show \'em why you don\'t cross the Dark iron dwarves!', 12, 0, 0, 0, 0, 0, 'Coren_Direbrew_To_Troops_3'),
  34. (@Entry, 3, 0, 'You\'ll pay for this insult, $C!', 12, 0, 0, 0, 0, 0, 'Coren_Direbrew_Start');
  35. -- Coren Dire brew Script
  36. UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry`=@Entry;
  37. DELETE FROM `smart_scripts` WHERE `entryorguid`=@Entry;
  38. 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
  39. (@Entry,0,0,0,1,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - phase 1 - gossip'),
  40. (@Entry,0,1,0,62,1,100,0,@GossipSub,@GosOption2,0,0,72,0,0,0,0,0,0,7,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - Select Apoligize - Close gossip'),
  41. (@Entry,0,2,3,62,1,100,0,@GossipSub,@GosOption1,0,0,81,0,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - Select Fight - remove npc flag'),
  42. (@Entry,0,3,4,61,1,100,0,0,0,0,0,72,2,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - close gossip'),
  43. (@Entry,0,4,5,61,1,100,0,0,0,0,0,2,736,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - change faction'),
  44. (@Entry,0,5,6,61,1,100,0,0,0,0,0,1,3,1,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - Say Start'),
  45. (@Entry,0,6,0,61,1,100,0,0,0,0,0,18,524288,7,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Coren Direbrew - Enter combat');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement