Consegui, mas tipo, so da pra usar com item movel.
local CAR_ID = {ID, ID, ID, ID}
function onStepIn(cid, item, pos, frompos)
if isPlayer(cid) == TRUE then
local oldPos = getThingPos(item.uid)
addEvent(carMove, 100, cid, oldPos)
end
end
function carMove(cid, oldPos)
local car = getThingfromPos(oldPos)
local newPos = getCreatureLookPosition(cid)
if getDistanceBetween(getThingPos(cid), oldPos) == 0 then
if isInArray(CAR_ID, car.itemid) == TRUE then
local tmp = newPos
tmp.stackpos = 253
if getTileThingByPos({x=newPos.x, y=newPos.y, z=newPos.z}).uid ~= 0 and doTileQueryAdd(car.uid, newPos) == 1
and getTilePzInfo(newPos) == FALSE and isCreature(getThingFromPos(tmp).uid) == FALSE then
local carId = CAR_ID[getCreatureLookDirection(cid)+1]
doTransformItem(car.uid, carId)
doTeleportThing(car.uid, newPos, false)
doTeleportThing(cid, newPos, false)
doSendMagicEffect(oldPos, CONST_ME_GROUNDSHAKER)
end
end
end
end
ONDE ESTA ID E SO COLOCAR O ID DO SEU ITEM NAS POSIÇOES ( ROTAÇOES )





info
Grupo: Campones
Registrado: 19/01/09
Posts: 13
Reputação: +7
po alguem me ajuda a colocar ele no meu ot?
ele é dakeles de versao 8.54~8.57.
ele ta dando o seguinte erro:
quando o char sobe emcima do squi ele cria um squi na frente e o char fica parado.
alguem me ajuda aii plx!