Creator: Unknown



Quote Originally Posted by remamakiller

I provide an NPC teleport to the class headquarters, to improve the artifact weapon


Improved by remamakiller
here is the code (below)

Code:
DELETE FROM `gossip_menu` WHERE `menuid`=65020 AND `textid`=1000020;
INSERT INTO `gossip_menu` (`menuid`,`textid`) VALUES
(65020,1000020);
DELETE FROM `gossip_menu_option` WHERE `menuid`=65020;
INSERT INTO `gossip_menu_option` (`menuid`,`optionIndex`,`optionicon`,`optiontext`,`optionbroadcasttextid`,`optiontype`,`optionnpcflag`,`verifiedbuild`) VALUES
(65020,1,0,'!On the way to Hall Mage!',0,1,1,0),
(65020,2,0,'!On the way to Hall Monk!',0,1,1,0),
(65020,3,0,'!On the way to Hall Warrior!',0,1,1,0),
(65020,4,0,'!On the way to Hall DK!',0,1,1,0),
(65020,5,0,'!On the way to Hall Rogue!',0,1,1,0),
(65020,6,0,'!On the way to Hall Paladin!',0,1,1,0),
(65020,7,0,'!On the way to Hall Hunter!',0,1,1,0),
(65020,8,0,'!On the way to Hall Druid!',0,1,1,0),
(65020,9,0,'!On the way to Hall Shaman!',0,1,1,0),
(65020,10,0,'!On the way to Hall Demon!',0,1,1,0),
(65020,11,0,'!On the way to Hall Warlock!',0,1,1,0);


-- Kayn Furia del Sol 94902
UPDATE `creature_template` SET `npcflag`=1,`gossip_menu_id`=65020,`AIName`='SmartAI' WHERE `entry`=94902;


-- Kayn Furia del Sol 94902 SAI
DELETE FROM `smart_scripts` WHERE `entryorguid`=94902;
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
(94902,0,0,0,62,0,100,0,65020,1,0,0,62, 1513, 0, 0, 0, 0, 0, 7, 0, 0, 0,-844,4759,918,0.586009, 'Kayn-Furia-del-Sol- On click gossip option 1 - On the way to Hall Mage!'),
(94902,0,1,0,62,0,100,0,65020,1,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 1 select - Close gossip'),
(94902,0,2,0,62,0,100,0,65020,2,0,0,62, 1514, 5, 0, 0, 0, 0, 7, 0, 0, 0,885.306,3605.37,192.23,6.26366, 'Kayn-Furia-del-Sol- On click gossip option 2 - On the way to Hall Monk!'),
(94902,0,3,0,62,0,100,0,65020,2,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 2 select - Close gossip'),
(94902,0,4,0,62,0,100,0,65020,3,0,0,62, 1479, 5, 0, 0, 0, 0, 7, 0, 0, 0,1028.47,7225.17,100.181,1.53734, 'Kayn-Furia-del-Sol- On click gossip option 3 - On the way to Hall Warrior!'),
(94902,0,5,0,62,0,100,0,65020,3,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 3 select - Close gossip'),
(94902,0,6,0,62,0,100,0,65020,4,0,0,62, 1220, 5, 0, 0, 0, 0, 7, 0, 0, 0,-1502.45,1060.68,260.416,4.14701, 'Kayn-Furia-del-Sol- On click gossip option 4 - On the way to Hall DK!'),
(94902,0,7,0,62,0,100,0,65020,4,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 4 select - Close gossip'),
(94902,0,8,0,62,0,100,0,65020,5,0,0,62, 1220, 5, 0, 0, 0, 0, 7, 0, 0, 0,-927.239,4501.06,700.75,3.98971, 'Kayn-Furia-del-Sol- On click gossip option 5 - On the way to Hall Rogue!'),
(94902,0,9,0,62,0,100,0,65020,5,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 5 select - Close gossip'),
(94902,0,10,0,62,0,100,0,65020,6,0,0,62, 0, 5, 0, 0, 0, 0, 7, 0, 0, 0,2373.48,-5356.95,52.5833,2.45032, 'Kayn-Furia-del-Sol- On click gossip option 6 - On the way to Hall Paladin!'),
(94902,0,11,0,62,0,100,0,65020,6,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 6 select - Close gossip'),
(94902,0,12,0,62,0,100,0,65020,7,0,0,62, 1220, 5, 0, 0, 0, 0, 7, 0, 0, 0,4529.88,5246.98,862.193,3.05573, 'Kayn-Furia-del-Sol- On click gossip option 7 - On the way to Hall Hunter!'),
(94902,0,13,0,62,0,100,0,65020,7,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 7 select - Close gossip'),
(94902,0,14,0,62,0,100,0,65020,8,0,0,62, 1220, 5, 0, 0, 0, 0, 7, 0, 0, 0,4113.75,7459.81,48.2315,0.907679, 'Kayn-Furia-del-Sol- On click gossip option 8 - On the way to Hall Druid!'),
(94902,0,15,0,62,0,100,0,65020,8,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 8 select - Close gossip'),
(94902,0,16,0,62,0,100,0,65020,9,0,0,62, 1469, 5, 0, 0, 0, 0, 7, 0, 0, 0,1126.24,1069.48,3.55888,6.11568, 'Kayn-Furia-del-Sol- On click gossip option 9 - On the way to Hall Shaman!'),
(94902,0,17,0,62,0,100,0,65020,9,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 9 select - Close gossip'),
(94902,0,18,0,62,0,100,0,65020,10,0,0,62, 1519, 5, 0, 0, 0, 0, 7, 0, 0, 0,1561.02,1399.94,237.108,1.69284, 'Kayn-Furia-del-Sol- On click gossip option 10 - On the way to Hall Demon!'),
(94902,0,19,0,62,0,100,0,65020,10,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 10 select - Close gossip'),
(94902,0,20,0,62,0,100,0,65020,11,0,0,62, 1107, 5, 0, 0, 0, 0, 7, 0, 0, 0,3094.91,1062.63,242.58,4.91188, 'Kayn-Furia-del-Sol- On click gossip option 11 - On the way to Hall Warlock!'),
(94902,0,21,0,62,0,100,0,65020,11,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Kayn-Furia-del-Sol - On gossip option 11 select - Close gossip');



› See More: 7.3.5 Class NPC teleporter