Advertisement
_Stuff_

Leave No Man Behind! (Quest=25809)

Apr 12th, 2020
952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.86 KB | None | 0 0
  1. UPDATE creature_template SET npcflag = 16777216, unit_flags = unit_flags&~33554432 WHERE entry = 41283;
  2.  
  3. DELETE FROM npc_spellclick_spells WHERE npc_entry = 41283;
  4. INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`) VALUES
  5. (41283, 77412, 2);
  6.  
  7. DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`= 18 AND `ConditionTypeOrReference` = 9 AND `SourceGroup` = 41283 AND `SourceEntry` = 77412;
  8. INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`, `ErrorType`, `ErrorTextId`,`ScriptName`,`Comment`) VALUES
  9. (18, 41283, 77412, 0, 0, 9, 0, 25809, 0, 0, 0, 0, 0, '', 'On SpellClick Eent - Only if quest accepted');
  10.  
  11. UPDATE creature_template SET AIName = 'SmartAI' WHERE entry = 41283;
  12. DELETE FROM `smart_scripts` WHERE entryorguid = 41283 AND source_type = 0;
  13. 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
  14. (41283, 0, 0, 1, 73, 0, 100, 0, 0, 0, 0, 0, 11, 77408, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On SpellClick - cast spell - Target Invoker'),
  15. (41283, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Say Text'),
  16. (41283, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Link - Set Orientation - Target Invoker'),
  17. (41283, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Clear emote state - Target Self'),
  18. (41283, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 41, 4500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - despawn'),
  19. (41283, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Link - Clear npcflag'),
  20. (41283, 0, 6, 0, 25, 0, 100, 0, 0, 0, 0, 0, 81, 16777216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset/Spawn - set npcflag');
  21.  
  22. DELETE FROM creature_text WHERE creatureId = 41283;
  23. INSERT INTO `creature_text` (`creatureId`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
  24. (41283, 0, 0, 'Are... Are they dead? The assassins?', 12, 0, 100, 1, 0, 0, ''),
  25. (41283, 0, 1, 'Is it safe?', 12, 0, 100, 1, 0, 0, ''),
  26. (41283, 0, 2, 'Thank the Light! I\'m saved!', 12, 0, 100, 1, 0, 0, '');
  27.  
  28. DELETE FROM creature_template_addon WHERE entry = 41283;
  29. INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
  30. (41283, 0, 0, 0, 1, 431, NULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement