1
[Actions] mission, lever tp el Dom Sep 09, 2018 11:48 am
Deget92

Miembro

segundo es en las palancas pero deja que nos mueva entonces cuando tenemos item id "2363"
Tengo un script así, pero se mueve sin item..;/
- Código:
local destination = {x=811, y=571, z=7} -- Change your destination here.
local stand = {x=809, y=568, z=7} -- tile where player must stand
function onUse(cid, item, fromPosition, itemEx, toPosition)
local creature = getTopCreature(stand).uid
if not creature or not isPlayer(creature) then
doPlayerSendCancel(cid, "Please stand on the tile first.")
return true
end
if getPlayerGUID(creature) ~= getPlayerGUID(cid) then
doPlayerSendCancel(cid, "Please stand on the tile first.")
return true
end
doTeleportThing(cid, destination, false)
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
return true
end