Ir para conteúdo

Featured Replies

Postado
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
  • Respostas 10
  • Visualizações 413
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Jamison Collins
    Jamison Collins

    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(o

  • luanluciano93
    luanluciano93

    local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) doTeleportThin

Postado

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" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

Postado
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" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo