bucur35

Untitled

Dec 25th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 3.80 KB | None | 0 0
  1. -- "See to the Survivors"
  2.  
  3. UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=46268;
  4.  
  5. DELETE FROM `smart_scripts` WHERE  `entryorguid`=46268;
  6. 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
  7. (46268, 0, 0, 0, 8, 0, 100, 0, 86264, 0, 0, 0, 33, 46268, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cast spell - give credit'),
  8. (46268, 0, 1, 0, 8, 0, 100, 0, 86264, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cast spell - despawn');
  9.  
  10. DELETE FROM `conditions` WHERE  `SourceEntry`=86264;
  11. INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
  12. (17, 0, 86264, 0, 0, 31, 1, 3, 46268, 0, 0, 0, "", "cast spell doar pentru npc 46258");
  13.  
  14. -- "What's Left Behind"
  15.  
  16. UPDATE `creature_template` SET `exp`=2, `Health_mod`=110 WHERE  `entry`=42184;
  17. UPDATE `creature_template` SET `lootid`=42184, `questItem1`=57987 WHERE  `entry`=42184;
  18.  
  19. DELETE FROM `creature_loot_template` WHERE  `entry`=42184 AND `item`=57987;
  20. INSERT INTO `creature_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
  21. (42184, 57987, 89, 1, 0, 1, 1);
  22.  
  23. -- "No Tanks!"
  24.  
  25. UPDATE `creature_template` SET `npcflag`=0, `AIName`='SmartAI' WHERE `entry`=42224;
  26.  
  27. DELETE FROM `smart_scripts` WHERE  `entryorguid`=42224;
  28. 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
  29. (42224, 0, 0, 1, 8, 0, 100, 1, 79751, 0, 100, 120, 33, 42224, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Give Kill Credit'),
  30. (42224, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Die');
  31.  
  32. DELETE FROM `conditions` WHERE  `SourceEntry`=79751;
  33. INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
  34. (17, 0, 79751, 0, 0, 31, 1, 3, 42224, 0, 0, 0, "", "cast spell doar pentru npc 42224");
  35.  
  36. -- "Paint it Black"
  37.  
  38. UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=42291;
  39.  
  40. DELETE FROM `smart_scripts` WHERE  `entryorguid`=42291;
  41. 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
  42. (42291, 0, 0, 1, 8, 0, 100, 0, 79781, 0, 0, 0, 33, 42796, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Give Kill Credit'),
  43. (42291, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Despawn');
Advertisement
Add Comment
Please, Sign In to add comment