Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('76666', "Taxi", "Teleporter NPC", '', '0', '7', '0', '3', '0', '0', '27545', '0', '0', '0', '1', '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 ('76666', '80', '80', '7', '9000000', '9000000', '100000', '1', '1', '1000', '0', '99999', '99999', '0', '0', '0', '0', '3600', '20000', '9999', '9999', '9999', '9999', '9999', '9999', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 999) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
unit:GossipSendMenu(player)
end
if(intid == 1) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Dalaran", 300, 0)
unit:GossipMenuAddItem(1, "Shattrath", 309, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Stormwind", 301, 0)
unit:GossipMenuAddItem(1, "Ironforge", 302, 0)
unit:GossipMenuAddItem(1, "Darnassus", 303, 0)
unit:GossipMenuAddItem(1, "Exodar", 304, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
unit:GossipMenuAddItem(1, "Undercity", 306, 0)
unit:GossipMenuAddItem(1, "Thunder Bluff", 307, 0)
unit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 300) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 301) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 302) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 303) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 304) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 305) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 306) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 307) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 308) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
if(intid == 309) then
player:Teleport(MapID, X, Y, Z)
unit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")