
Results 1 to 4 of 4
Thread: NEED HELP with tele npc
Threaded View
-
09-09-09, 11:24 AM #4
I know the problem
Code:function Teleporter_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(571, 5798.553711, 645.019287, 647.477783) unit:GossipComplete(player) end if(intid == 301) then player:Teleport(0, -8913.230469, 554.632996, 93.794830) unit:GossipComplete(player) end if(intid == 302) then player:Teleport(0, -4982.447266, -880.969604, 501.659882) unit:GossipComplete(player) end if(intid == 303) then player:Teleport(1, 9946.639648, 2610.149414, 1316.256348) unit:GossipComplete(player) end if(intid == 304) then player:Teleport(530, -4008.085205, -11885.257813, -1.419589) unit:GossipComplete(player) end if(intid == 305) then player:Teleport(1, 1505.377319, -4414.602539, 20.598469) unit:GossipComplete(player) end if(intid == 306) then player:Teleport(0, 1831.750854, 238.543503, 60.478447) unit:GossipComplete(player) end if(intid == 307) then player:Teleport(1, -1282.347534, 133.302917, 131.218323) unit:GossipComplete(player) end if(intid == 308) then player:Teleport(530, 9381.675781, -7277.671387, 14.241373) unit:GossipComplete(player) end if(intid == 309) then player:Teleport(530, -1704.053589, 5376.160156, 3.416441) unit:GossipComplete(player) end end RegisterUnitGossipEvent(76666, 1, "On_Gossip") RegisterUnitGossipEvent(76666, 2, "Gossip_Submenus")
and then call your npc forTeleporterteleporter
Last edited by Lbniese; 09-09-09 at 11:26 AM.
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog