Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, GM Locations!,1,0)
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 1) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, GM Island,2,0)
unit:GossipMenuAddItem(2, Hyjal,3,0)
unit:GossipMenuAddItem(2, Second GM Island,4,0)
unit:GossipMenuAddItem(2, Atlantis,5,0)
unit:GossipMenuAddItem(2, Old Ironforge,6,0)
unit:GossipMenuAddItem(2, Emerald Dream,7,0)
unit:GossipMenuAddItem(2, Staircase Mall,8,0)
if(intid ==2) then
player:Teleport(1,16215,16269,14)
unit:GossipComplete(player)
end
if(intid ==3) then
player:Teleport(1,4654,-3772,944)
unit:GossipComplete(player)
end
if(intid ==4) then
player:Teleport(1,10735,2467,7)
unit:GossipComplete(player)
end
if(intid ==5) then
player:Teleport(1,-9619,-5594,-496)
unit:GossipComplete(player)
end
if(intid ==6) then
player:Teleport(0,-4818,-973,465)
unit:GossipComplete(player)
end
if(intid ==7) then
player:Teleport(169,2732.93,-3319.63,101.284)
unit:GossipComplete(player)
end
if(intid ==8) then
player:Teleport(0,-1852,-4145,11)
unit:GossipComplete(player)
end
RegisterUnitGossipEvent(400036,1,On_Gossip)
RegisterUnitGossipEvent(400036,2,Gossip_Submenus)
Any errors in that?
Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`)
values ('400036', "Cool Places", "Teleporter", '', '0', '7', '0', '0', '25754', '0', '0', '0', '1', '1', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('400036', '255', '255', '35', '1337', '1337', '1337', '1', '1', '1337', '0', '1337', '1337', '0', '0', '0', '0', '0', '1337', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Thank You!