Advertisement
Guest User

Untitled

a guest
Jun 25th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. DELETE FROM `creature_template` WHERE `entry`=1000000;
  2. INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES
  3. (1000000, 0, 0, 0, 0, 0, 1126, 11686, 0, 0, 'Puddle Stalker', '', '', 0, 1, 1, 0, 14, 14, 0, 1, 1.14286, 1, 0, 2, 2, 0, 24, 1, 0, 0, 1, 0, 2048, 8, 0, 0, 0, 0, 0, 1, 1, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 4, 1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 128, '', 12340);
  4. UPDATE `creature_template` SET `ScriptName`='npc_trigger' WHERE `entry`=37013;
  5.  
  6. class npc_trigger : public CreatureScript
  7. {
  8. public:
  9. npc_trigger() : CreatureScript("npc_trigger") { }
  10.  
  11. struct npc_triggerAI: public ScriptedAI
  12. {
  13. npc_triggerAI(Creature* creature) : ScriptedAI(creature)
  14. {
  15. me->ApplySpellImmune(0, IMMUNITY_ID, 69785, true);
  16. me->ApplySpellImmune(0, IMMUNITY_ID, 69788, true);
  17. }
  18.  
  19. };
  20.  
  21. CreatureAI* GetAI(Creature* creature) const
  22. {
  23. return new npc_triggerAI(creature);
  24. }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement