SectorSeven, you are realy good in LUA it seems like this script, can i talk to you through MSN? you need to learn me some stuff and i want to ask you some stuff to
EDIT : i made a small version of this myself, i dont know if it works or not but :
Code:
function WarpNPC_On_Gossip (pUnit, event, player)
pUnit:GossipCreateMenu(100, player)
pUnit:GossipMenuAddItem(player, 0, "Horde Locations", 1, 0)
pUnit:GossipMenuAddItem(player, 0, "Alliance Locations", 2, 0)
pUnit:GossipSendMenu(player)
end
function WarpNPC_Submenus (pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipGossipMenuAddItem(99, player)
pUnit:GossipMenuAddItem(player, 5, "Mall", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Leveling Road", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Custom Instances", 12, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 2) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Mall", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Leveling Road", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Custom Instances", 12, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:MenuSendToPlayer(player)
end
if(intid == 10) then
player:Teleport(1, -1657.646973, 3096.333008, 32.558029)
end
if(intid == 11) then
player:Teleport(580, 1713.559937, 600.632690, 29.677027)
end
function WarpNPC_Submenus2 (pUnit, event, player, id, intid, code)
if(intid == 12) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Malygos' Lair(10-15Man)", 13, 0)
pUnit:GossipMenuAddItem(player, 5, "Scarlet Monastery(5-10Man)", 14, 0)
pUnit:GossipMenuAddItem(player, 5, "The Deadmines(10Man)", 15, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 13) then
player:Teleport(530, 3099.646729, 1513.975342, 192.195267)
end
if(intid == 14) then
player:Teleport(0, 2888.867188, -810.674438, 162.649765)
end
if(intid == 15) then
player:Teleport(0, -11211.107422, 1661.814087, 26.746098)
end
RegisterGossipEvent(32000 , 1, "WarpNPC_On_Gossip")(32000 , 2,"WarpNPC_Submenus")(32000 , 2,"WarpNPC_Submenus2")
Should this work or? and also is there any way to test the LUA's on if they work or not without hosting an actual server?