So yea i want to make an Telport but not the Blue Portal i want an other Item thats moveble thats Teleports me to an exact POS.
I tried it with citzen.lua with uniqueid 1125 but it just Ports to Town POS and i want an exact POS.
I don't know the new Functions because last time i coded was 5 years ago xD
My citzen.lua
Movements.xml
I tried it with citzen.lua with uniqueid 1125 but it just Ports to Town POS and i want an exact POS.
I don't know the new Functions because last time i coded was 5 years ago xD
My citzen.lua
Code:
local t = {
[1125] = {id = 2},
}
function onStepIn(cid, item, position, fromPosition)
local town = t[item.uid]
if Player(cid) then
if town then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
end
end
return true
end
Movements.xml
Code:
<movevent event="StepIn" uniqueid="1125" script="tp.lua"/>