Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Flexing for Nougat (Alliance)
- SET @INNKEEPER=6740;
- SET @QUEST=8356;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=2;
- 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
- (@INNKEEPER, 0, 2, 0, 22, 0, 100, 0, 41, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Allison - on /flex credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Chicken Clucking for a Mint (Alliance)
- SET @INNKEEPER=5111;
- SET @QUEST=8353;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=2;
- 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
- (@INNKEEPER, 0, 2, 0, 22, 0, 100, 0, 22, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Firebrew - on /chicken credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Dancing for Marzipan (Alliance)
- SET @INNKEEPER=6735;
- SET @QUEST=8357;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=2;
- 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
- (@INNKEEPER, 0, 2, 0, 22, 0, 100, 0, 34, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Saelienne - on /dance credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Incoming Gumdrop (Alliance)
- SET @INNKEEPER=6826;
- SET @QUEST=8355;
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@INNKEEPER;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER;
- 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
- (@INNKEEPER, 0, 0, 0, 22, 0, 100, 0, 264, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Talvash del Kissel - on /train credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Flexing for Nougat (Horde)
- SET @INNKEEPER=6929;
- SET @QUEST=8359;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=2;
- 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
- (@INNKEEPER, 0, 2, 0, 22, 0, 100, 0, 41, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Gryshka - on /flex credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Chicken Clucking for a Mint (Horde)
- SET @INNKEEPER=6741;
- SET @QUEST=8354;
- -- remove special flag changed from 2 to 0
- UPDATE `quest_template` SET `SpecialFlags`=0 WHERE `entry`=8354 LIMIT 1;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=2;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER AND `id`=3;
- 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
- (@INNKEEPER, 0, 2, 3, 22, 0, 100, 0, 22, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Norman - on /chicken credit for quest'),
- (@INNKEEPER, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 15, @QUEST, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Norman - on /chicken credit exploreded for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
- -- Dancing for Marzipan (Horde)
- SET @INNKEEPER=6746;
- SET @QUEST=8360;
- SET @GOSSIP=21215;
- UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=@INNKEEPER;
- -- Add trick or treat SAI since the .cpp script was removed
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER;
- 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
- (@INNKEEPER, 0, 0, 1, 62, 0, 100, 0, @GOSSIP, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Pala - On gossip option 0 select - Close gossip'),
- (@INNKEEPER, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 85, 24751, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Pala - On gossip option 0 select - Player cast Trick or Treat on self'),
- (@INNKEEPER, 0, 2, 0, 22, 0, 100, 0, 34, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Innkeeper Pala - on /dance credit for quest');
- -- Add gossip menu option for trick or treat
- DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GOSSIP;
- 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, 1, 5, 'Make this inn your home.', 8, 65536, 0, 0, 0, 0, ''),
- (@GOSSIP, 2, 1, 'I want to browse your goods', 3, 128, 0, 0, 0, 0, ''),
- (@GOSSIP, 0, 0, 'Trick or Treat!', 1, 1, 0, 0, 0, 0, '');
- -- Add conditions must be hallows end for Dancing for Marzipan quest and trick or treat option
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- DELETE FROM `conditions` WHERE `SourceGroup`=@GOSSIP;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL),
- (15, @GOSSIP, 0, 0, 12, 12, 0, 0, 0, '', NULL),
- (15, @GOSSIP, 0, 0, 11, 24755, 0, 0, 0, '', NULL);
- -- Incoming Gumdrop (Horde)
- SET @INNKEEPER=11814;
- SET @QUEST=8358;
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@INNKEEPER;
- DELETE FROM `smart_scripts` WHERE `entryorguid`=@INNKEEPER;
- 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
- (@INNKEEPER, 0, 0, 0, 22, 0, 100, 0, 264, 0, 0, 0, 33, @INNKEEPER, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kali Remik - on /train credit for quest');
- DELETE FROM `conditions` WHERE `SourceEntry`=@QUEST;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
- (19, 0, @QUEST, 0, 12, 12, 0, 0, 0, '', NULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement