Advertisement
bucur35

qwerty

Sep 2nd, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.40 KB | None | 0 0
  1. /*******************
  2.   Uther's Blessing
  3. *******************/
  4.  
  5. -- NPC Spawn
  6.  
  7. SET @guid := 15455380;
  8.  
  9. DELETE FROM `creature` WHERE  `id`=1854 LIMIT 1;
  10. INSERT INTO `creature` (`guid`,  `id`,  `map`,  `spawnMask`,  `phaseMask`,  `modelid`,  `equipment_id`,  `position_x`,
  11. `position_y`,  `position_z`,  `orientation`,  `spawntimesecs`,  `spawndist`,  `currentwaypoint`,  `curhealth`,  `curmana`,  
  12. `MovementType`,  `npcflag`,  `unit_flags`,  `dynamicflags`) VALUES
  13. (@Guid+0, 1854, 0, 1, 1, 11395, 330, 986.847290, -1819.901611, 80.487434, 3.479811, 300, 0, 0, 3101, 0, 0, 3, 4096, 8);
  14.  
  15. -- NPC smart script
  16.  
  17. DELETE FROM `smart_scripts` WHERE  `entryorguid`=1854 AND `source_type`=0 AND `id`=0 AND `link`=0 LIMIT 1;
  18. INSERT INTO `smart_scripts` (`entryorguid`,  `source_type`,  `id`,  `link`,  `event_type`,  `event_phase_mask`,  
  19. `event_chance`,  `event_flags`,  `event_param1`,  `event_param2`,  `event_param3`,  `event_param4`,  `action_type`,  
  20. `action_param1`,  `action_param2`,  `action_param3`,  `action_param4`,  `action_param5`,  `action_param6`,  `target_type`,  
  21. `target_param1`,  `target_param2`,  `target_param3`,  `target_x`,  `target_y`,  `target_z`,  `target_o`,  `comment`) VALUES
  22. (1854, 0, 2, 0, 8, 0, 100, 0, 61920, 0, 0, 0, 12, 1854, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 986.847290, -1819.901611, 80.487434, 'On cast - summon npc');
  23.  
  24. UPDATE `creature_template` SET `AIName`='SmartAI' WHERE  `entry`=1854;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement