Postado Maio 9, 2014 11 anos local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2125 then --Carlin setPlayerStorageValue(cid,100110, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2126 then --Darashia setPlayerStorageValue(cid,100111, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2127 then --Edron setPlayerStorageValue(cid,100112, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2128 then --Kazordoon setPlayerStorageValue(cid,100113, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2129 then --Liberty Bay setPlayerStorageValue(cid,100114, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2130 then --Port Hope setPlayerStorageValue(cid,100115, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2131 then --Svargrond setPlayerStorageValue(cid,100116, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2132 then --Thais setPlayerStorageValue(cid,100117, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2133 then --Venore setPlayerStorageValue(cid,100118, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2134 then --Yalahar setPlayerStorageValue(cid,100119, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) end return true end STYLLER OT 2022
Postado Maio 9, 2014 11 anos Bem, teste esse: local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) pos.stackpos = 255 local object = getThingFromPos(pos) if isMovable(object.uid) then doTeleportThing(object.uid,train) doSendMagicEffect(getThingPos(object.uid),CONST_ME_TELEPORT) return true end if isPlayer(cid) then doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) elseif item.actionid == 2125 then --Carlin setPlayerStorageValue(cid,100110, 1) elseif item.actionid == 2126 then --Darashia setPlayerStorageValue(cid,100111, 1) elseif item.actionid == 2127 then --Edron setPlayerStorageValue(cid,100112, 1) elseif item.actionid == 2128 then --Kazordoon setPlayerStorageValue(cid,100113, 1) elseif item.actionid == 2129 then --Liberty Bay setPlayerStorageValue(cid,100114, 1) elseif item.actionid == 2130 then --Port Hope setPlayerStorageValue(cid,100115, 1) elseif item.actionid == 2131 then --Svargrond setPlayerStorageValue(cid,100116, 1) elseif item.actionid == 2132 then --Thais setPlayerStorageValue(cid,100117, 1) elseif item.actionid == 2133 then --Venore setPlayerStorageValue(cid,100118, 1) elseif item.actionid == 2134 then --Yalahar setPlayerStorageValue(cid,100119, 1) end end end 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Maio 9, 2014 11 anos Autor @Luciano Player passa mas item nao. @Jamison Collins Nao passa player nem item
Postado Maio 9, 2014 11 anos local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) pos.stackpos = 255 local object = getThingFromPos(pos) if isMovable(object.uid) then doTeleportThing(object.uid,train) doSendMagicEffect(getThingPos(object.uid),CONST_ME_TELEPORT) return true end if isPlayer(cid) then doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) elseif item.actionid == 2125 then --Carlin setPlayerStorageValue(cid,100110, 1) elseif item.actionid == 2126 then --Darashia setPlayerStorageValue(cid,100111, 1) elseif item.actionid == 2127 then --Edron setPlayerStorageValue(cid,100112, 1) elseif item.actionid == 2128 then --Kazordoon setPlayerStorageValue(cid,100113, 1) elseif item.actionid == 2129 then --Liberty Bay setPlayerStorageValue(cid,100114, 1) elseif item.actionid == 2130 then --Port Hope setPlayerStorageValue(cid,100115, 1) elseif item.actionid == 2131 then --Svargrond setPlayerStorageValue(cid,100116, 1) elseif item.actionid == 2132 then --Thais setPlayerStorageValue(cid,100117, 1) elseif item.actionid == 2133 then --Venore setPlayerStorageValue(cid,100118, 1) elseif item.actionid == 2134 then --Yalahar setPlayerStorageValue(cid,100119, 1) end end return true end Verifique se há algum erro no distro após a tentativa do uso do script. 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Maio 10, 2014 11 anos Autor Solução Gente, obrigado por ajudar, mas resolvi tirando a action e adicionando apenas o position mesmo, Vlw!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.