Advertisement
Guest User

Teszt

a guest
May 29th, 2010
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.21 KB | None | 0 0
  1. SET @id :=60000;
  2. SET @spell :=48932; -- Blessing of Might
  3. SET @spell2 :=41983; -- Fel Orc Illusion
  4. SET @spell3 :=48161; -- Power Word: Fortitude
  5. DELETE FROM `gossip_scripts` WHERE `id`=@id;
  6. INSERT INTO `gossip_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
  7. (@id,0,15,@spell,0,0,0,0,0,0),
  8. (@id,0,15,@spell2,0,0,0,0,0,0),
  9. (@id,0,15,@spell3,0,0,0,0,0,0);
  10.  
  11. DELETE FROM `npc_text` WHERE `id`=@id;
  12. INSERT INTO `npc_text` (`id`,`text0_0`) VALUES (@id,'Teszt');
  13.  
  14. DELETE FROM `gossip_menu` WHERE `entry`=@id;
  15. INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES (@id,@id);
  16.  
  17. SET @gossip :=(SELECT `menu_id` FROM `gossip_menu_option` ORDER BY `menu_id` DESC LIMIT 1)+1;
  18. DELETE FROM `gossip_menu_option` WHERE `menu_id`=(SELECT `menu_id` FROM `gossip_menu_option` ORDER BY `menu_id` DESC LIMIT 1);
  19. INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`,`action_poi_id`,`action_script_id`,`box_coded`,`box_money`,`box_text`) VALUES
  20. (@gossip,@gossip,10,'Please buff me!',1,3,0,0,@id,0,0,'Really?');
  21.  
  22. UPDATE `creature_template` SET `gossip_menu_id`=@gossip,`faction_A`=35,`faction_H`=35,`npcflag`=3 WHERE `entry`=80000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement