Advertisement
Guest User

Untitled

a guest
Sep 7th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 3.34 KB | None | 0 0
  1. SET @Entry := NPC_ENTRYT_IRD_IDE;
  2. -- creature_template
  3. DELETE FROM `creature_template` WHERE `entry`=@Entry;
  4. INSERT INTO `world`.`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`,`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`,`Health_mod`,`Mana_mod`,`Armor_mod`,`RacialLeader`,`questItem1`,`questItem2`,`questItem3`,`questItem4`,`questItem5`,`questItem6`,`movementId`,`RegenHealth`,`mechanic_immune_mask`,`flags_extra`,`ScriptName`,`WDBVerified`) VALUES
  5. (@Entry,0,0,0,0,0,31030,0,0,0, 'TEST_SAI', 'TELEPORTER', 'Directions',50000,80,80,2,35,35,1,1,1.14286,0.6,1,0,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'SmartAI',0,1,1,1,1,1,0,0,0,0,0,0,0,1,2147483647,0, '',1);
  6. -- creature_text
  7. -- DELETE FROM `world`.`creature_text` WHERE `entry` = '50000' AND `groupid` = '0';
  8. -- DELETE FROM `world`.`creature_text` WHERE `entry` = '50000' AND `groupid` = '1';
  9. INSERT INTO `world`.`creature_text` (`entry`, `groupid`, `text`, `type`, `probability`, `comment`) VALUES ('50000', '0', 'See ya!', '15', '100', 'For Smart AI'),
  10. ('50000', '1', 'Teleportation costs 1 Badge of Justice!', '15', '100', 'For Smart AI');
  11. -- gossip_menu
  12. -- DELETE FROM `world`.`gossip_menu` WHERE `entry` = '50000' AND `text_id` = '50000';
  13. INSERT INTO `world`.`gossip_menu` (`entry`, `text_id`) VALUES ('50000', '50000');
  14. -- gossip_menu_option
  15. -- DELETE FROM `world`.`gossip_menu_option` WHERE `menu_id` = '50000' AND `id` = '0';
  16. -- DELETE FROM `world`.`gossip_menu_option` WHERE `menu_id` = '50000' AND `id` = '1';
  17. INSERT INTO `world`.`gossip_menu_option` (`menu_id`, `id`,`option_text`, `option_id`, `npc_option_npcflag`, `box_text`) VALUES
  18. ('50000', 0, 'GM Island (1 Badge of Justice)', '1', '1', 'Teleport to GM Island (costs 1 Badge of Justice)'),
  19. ('50000', 1, 'GM Island', '1', '1', 'Teleport to GM Island');
  20. -- npc_text
  21. -- DELETE FROM `world`.`npc_text` WHERE `ID`=50000;
  22. INSERT INTO `world`.`npc_text` (`ID`, `text0_0`) VALUES ('50000', 'Where?');
  23. -- smart_scipts
  24. -- DELETE FROM `world`.`smart_scripts` WHERE `entryorguid` = '50000' AND `source_type` = '0' AND `id` = '1' AND `link` = '0';
  25. INSERT INTO `world`.`smart_scripts` (`entryorguid`, `id`, `event_type`, `event_param1`, `event_param2`, `event_param3`,`event_param4`, `event_param5`, `action_type`, `action_param1`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  26. ('50000', '0', '62', '50000', '0', '0', '29434', '1', '62', '1', '16226', '16257', '13', '3.48', 'SCRIPT - Teleport to GM Island (token)'),
  27. ('50000', '1', '62', '50000', '1', '0', '0', '0', '62', '1', '16226', '16257', '13', '3.48', 'SCRIPT - Teleport to GM Island');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement