Ir para conteúdo

muriloot1

Campones
  • Total de itens

    10
  • Registro em

  • Última visita

Posts postados por muriloot1

    1. Versão do Ot: 8.6

     

    • Preciso de um script/mod que quando o player der use na alavanca o barco/objeto/trem siga uma rota ou algum npc que teletransporte para o destino do barco/objeto/trem igual a essa imagem:

     

    Spoiler

    Sem_t_tulo.png

    ou essa:

    vik50n.gif

     

    Ja tenho o trem no server so falta criar o script

     

    existe esse script porem o char se transforma em um railway cart script do Mock:

     

    Spoiler

    --Script by mock the bear
    --Config
    local SPEED = 200
    local PLAYERSPEED = 250
    --End
    local RAILS = {7121, 7122, 7123, 7124, 7125, 7126, 7127, 7128, 7129, 7130} --Thxy rails itemid by nord 
    local CART = {[0] = 7132, [2] = 7132, [3] =7131, [1] =7131}
    local CONFIG = {
    [7121] = 0,[7122] = 0,
    [7123] = {EAST, SOUTH},
    [7124] = {WEST, SOUTH},
    [7125] = {EAST, NORTH},
    [7126] = {WEST, NORTH},
    [7127] = 0,[7128] = 0,
    [7129] = 0,[7130] = 0,
    --Random
    }
    local reverse = {[0] = 2, 3, 0, 1} -- All that table was made by nord.
    local function moveTrain(cid, frompos, direc)
    local tab
    if not isPlayer(cid) then
    return
    end
    local pos = getCreaturePosition(cid)
    local rar = findRail(pos)
    if not rar then
    doPlayerSetNoMove(cid, false)
    doRemoveCondition(cid, CONDITION_OUTFIT)
    doChangeSpeed(cid, -PLAYERSPEED)
    doMoveCreature(cid, direc)
    else
    tab = CONFIG[rar]
    if tab and type(tab) == 'table' then
    direc = tab[tab[1] == reverse[direc] and 2 or 1] -- by nord here
    end

    doMoveCreature(cid, direc)
    addEvent(moveTrain, SPEED, cid, pos,direc)
    end
    end
    function findRail(p)
    local p_ = {x=p.x, y=p.y, z=p.z}
    for i=0,10 do
    p_.stackpos = i
    local t = getTileThingByPos(p_)
    if isInArray(RAILS, t.itemid) then
    return t.itemid,t.uid
    end
    end
    end
    function onUse(cid, item, frompos) --Script by mock the bear
    if hasCondition(cid, CONDITION_OUTFIT) or (item.actionid < 500 and item.actionid > 503) then
    return false
    end
    doTeleportThing(cid, frompos, false)
    doPlayerSetNoMove(cid, true)
    doChangeSpeed(cid, PLAYERSPEED)
    addEvent(moveTrain, SPEED, cid, frompos, item.actionid-500)
    return true
    end

  1. Estou Apresentado um Projeto que esta em andamento...

     

     

    Warmen Otserver

     

    [Perguntas Frequentes]

    Tem algo online? R: No momento não temos nada online, mas estou Fazendo o Mas rápido Possível para que eu possa Lançar um Beta em Janeiro de 2012

     

    Como Será o Projeto? R: Terão Cassas, Cidades, Demônios, Dragões, Espadas, Armas, céu, inferno etc...

     

     

    Andamento

     



    Mapa = 43%

    Scripts = 10%

    npcs = 0%

    Spells = 0%

    Sistema Vip = 0%

     

     

    [Obs.: Ao ficar tudo 100% iremos Fazer um beta para que possamos achar bugs e concerta-los]

     

     



    Imagens

     

     

    Em breve mais fotos...

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...