• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

100% dynamic Teleporter

Foereaper

Founder
100% Dynamic Teleporter

Rewrote my old tabled teleporter, now made it 100% dynamic, so the only thing you would need to change/add is easy to use tables! :)

To add new menus, simply add another table section as shown below:

Code:
	[[COLOR="#FF0000"]X[/COLOR]] = { "Menu Name",  -- This is the Menu Name
		{"Tele Location Name 1", 0, -13229, 226, 33, 1}, -- Teleport location name and map, x, y, z, o coordinates
		{"Tele Location Name 2", 1, -3669, 1094, 160, 3},
	},

Change the red X to whatever menu object increment, pretty self explanatory and shown in the table structure.

https://github.com/ElunaLuaEngine/Scripts/blob/master/Custom/Dynamic teleporter.lua
 
Last edited:

uDev

Illustrious Member
Foereaper:
Please change:
Code:
RegisterGameObjectGossipEvent(UnitEntry, 1, Teleporter_Gossip)
RegisterGameObjectGossipEvent(UnitEntry, 2, Teleporter_Event)

To:
Code:
RegisterCreatureGossipEvent(UnitEntry, 1, Teleporter_Gossip)
RegisterCreatureGossipEvent(UnitEntry, 2, Teleporter_Event)
 

Foereaper

Founder
Why? It works with both, I released it as a game object gossip script :p If people want to use it for NPC's, items, whatever, they can change it themselves :)
 

Rochet2

Moderator / Eluna Dev
sorry for old post but when i add a tele to it it teleports me behind the npc i put for it

how do i fix this?

trying to add http://prntscr.com/94xi2w to it but when i do it goes behind the npc

Can you show the code you used?
Have you tried to use .go xyz
command with the coordinates you tried adding to the teleporter and verified that they go to the correct location?
 

Djundead

Foufos
yes i have and ill show the code sec

i copied this one
Code:
{"Blade's Edge Arena", 530, 2910, 5976, 2, 4},
and then added
[6] = { "Mall", 2,

- - - Updated - - -

sec ill copy the right code sorry

[6] = { "Mall", 2,
{"Mall", 1, -8498.697266, 2023.544312, 104.750580, 3.568702},
}
is the code i used
 
Last edited:

Rochet2

Moderator / Eluna Dev
So what happens when you try to use:
.go xyz -8498.697266 2023.544312 104.750580 1 3.568702
?

One thing you could have possibly done wrong is that when you used .gps you targeted the teleporter.
This causes you to get the gps of the teleporter and not yourself.
 
Last edited:

Djundead

Foufos
it tele's me to the same location
ill try without target once and see

ok i did that and it seemed to work thanks rochet :)
 
Last edited:
Top