• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    [Pedido] [Pedido] BOSES

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1heart [Pedido] [Pedido] BOSES Miér Ago 11, 2021 6:15 pm

    Dfsuno

    Dfsuno
    Miembro
    Miembro
    Descripcion escribió:
    Descripcion escribió:Buena tarde comunidad, e estado buscando algun script que me ayude en mi ot 8.6, como boses de rl que puedes intentar hacer el boss cada 24 hrs.

    Espero y me pueden ayudar, Smile
    Imagen Explicativa escribió:Imagen Explicativa: [Pedido] [Pedido] BOSES Tibiaf10
    Version del Scripts: OTx Old Version(0.3.7)

    2 participantes

    2heart Re: [Pedido] [Pedido] BOSES Miér Ago 11, 2021 7:34 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    usa en tu script sun os.time en la entrada de cada sqm de tu boss o teleport asignado



    [Pedido] [Pedido] BOSES YNU5B25
    2 participantes
    http://www.tibiaface.com

    3heart Re: [Pedido] [Pedido] BOSES Miér Ago 11, 2021 8:14 pm

    Dfsuno

    Dfsuno
    Miembro
    Miembro
    A ya no capte ala primera, tendrás algún script?

    2 participantes

    4heart Re: [Pedido] [Pedido] BOSES Miér Ago 11, 2021 9:37 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    aqui tienes

    Código:

    function onUse(cid, item, fromPosition, itemEx, toPosition)
        local pos = {x=999, y=999, z=7}
        local daily = getPlayerStorageValue(cid, 13545)
        local dias = 24

        if (daily == -1) then
                daily = 0
        end
        if getPlayerStorageValue(cid, 13544) - os.time() <= 0 then
            doPlayerAddItem(cid, 8306, 1)
            setPlayerStorageValue(cid, 13544, os.time() + dias * 60 * 60)
            doTeleportThing(cid,pos)
            setPlayerStorageValue(cid, 13545, daily+1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You done your " .. getPlayerStorageValue(cid, 13545) .. " Low level daily. You got 1 chance upgrade stone.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must wait 2 hours to get your daily quest. Next available will be at: " .. os.date("%H:%M:%S", getPlayerStorageValue(cid, 13542)) .. ".")
        end
    return true
    end




    [Pedido] [Pedido] BOSES YNU5B25
    2 participantes
    http://www.tibiaface.com

    5heart Re: [Pedido] [Pedido] BOSES Miér Ago 11, 2021 11:42 pm

    Dfsuno

    Dfsuno
    Miembro
    Miembro
    ya lo probé maya no me da errores de consola ni nada pero no funciona ;S

    Estaba usando este pero igual no me da error en consola solo me aprece que no puedo volver a intentarlo hasta cierto tiempo, pero no me da tp ni invoca algun mosnter.

    Código:
    local config = {
        monster = "demon",
        spawn = {
     { x = 429, y = 495, z = 7, stackpos = 1 },    --------> donde los moustro seran creados
     { x = 429, y = 496, z = 7, stackpos = 1 },
     { x = 429, y = 497, z = 7, stackpos = 1 },
     { x = 429, y = 898, z = 7, stackpos = 1 }
        },
     storage = 1010
     
    }
     
     
    local tpt = {x=428, y=495, z=7}  ------> donde el player sera teleportado
     
     
     
     local topLeft = {x = 428, y = 494, z = 7} -- posicion esquina superior izquierda del room
    local bottomRight = {x = 431, y = 497, z = 7} -- esquina inferior derecha del room

    local count = 0 -- no cambiar
    local maxPlayers = 1 --cantidad de player para entrar
     
     
     
     
    function onStepIn(cid, item, frompos, item2, topos)



    local remaining = getPlayerStorageValue(cid, config.storage) - os.time()


    for z = topLeft.z, bottomRight.z do
        for x = topLeft.x, bottomRight.x do
            for y = topLeft.y, bottomRight.x do
                for f = 1, maxPlayers do
                    local whatisit = getTopCreature({x=x,y=y,z=z, stackpos = f+1}).uid
                    if isPlayer(whatisit) == TRUE then
                        count=count+1
                    end
                end
            end
        end
    end

    if count >= 1 then
        doPlayerSendCancel(cid, "esta ocupado!")
    return false
    end
      

    if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then


                             doPlayerSendCancel(cid,"You must wait another " .. remaining .. " seconds to summon a monster.")
       else
                        for i = 1, table.maxn(config.spawn) do
                                    doSummonCreature(config.monster, config.spawn[i])
     
                        end
           doTeleportThing(cid, tpt, false)
      
       setPlayerStorageValue(cid, config.storage, os.time() + (24 * 60 * 60))  ----> aqui son 24 horas
      
      
       end
      
        return TRUE
    end

    2 participantes

    6heart Re: [Pedido] [Pedido] BOSES Jue Ago 12, 2021 8:16 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    estabaa lo volcado prueba ahora


    Código:

    local config = {
        monster = "demon",
        spawn = {
     { x = 429, y = 495, z = 7, stackpos = 1 },    --------> donde los moustro seran creados
     { x = 429, y = 496, z = 7, stackpos = 1 },
     { x = 429, y = 497, z = 7, stackpos = 1 },
     { x = 429, y = 898, z = 7, stackpos = 1 }
        },
     storage = 1010
     
    }
     
     
    local tpt = {x=428, y=495, z=7}  ------> donde el player sera teleportado
     
     
     
     local topLeft = {x = 428, y = 494, z = 7} -- posicion esquina superior izquierda del room
    local bottomRight = {x = 431, y = 497, z = 7} -- esquina inferior derecha del room

    local count = 0 -- no cambiar
    local maxPlayers = 1 --cantidad de player para entrar
     
     
     
     
    function onStepIn(cid, item, frompos, item2, topos)



    local remaining = getPlayerStorageValue(cid, config.storage) - os.time()


    for z = topLeft.z, bottomRight.z do
        for x = topLeft.x, bottomRight.x do
            for y = topLeft.y, bottomRight.x do
                for f = 1, maxPlayers do
                    local whatisit = getTopCreature({x=x,y=y,z=z, stackpos = f+1}).uid
                    if isPlayer(whatisit) == TRUE then
                        count=count+1
                    end
                end
            end
        end
    end

    if count >= 1 then
        doPlayerSendCancel(cid, "esta ocupado!")
    return false
    end
     

    if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then




        for i = 1, table.maxn(config.spawn) do
        doSummonCreature(config.monster, config.spawn[i])
        end
       
       
        doTeleportThing(cid, tpt, false)
     
        setPlayerStorageValue(cid, config.storage, os.time() + (24 * 60 * 60))  ----> aqui son 24 horas


                           
      else
                 
        doPlayerSendCancel(cid,"You must wait another " .. remaining .. " seconds to summon a monster.")
     
      end
     
        return TRUE
    end



    [Pedido] [Pedido] BOSES YNU5B25
    2 participantes
    http://www.tibiaface.com

    7heart Re: [Pedido] [Pedido] BOSES Jue Ago 12, 2021 2:17 pm

    Dfsuno

    Dfsuno
    Miembro
    Miembro
    Very Happy Resuelto Gracias Very Happy

    Gracias maya

    2 participantes

    8heart Re: [Pedido] [Pedido] BOSES Jue Ago 12, 2021 2:25 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Tema Resuelto



    [Pedido] [Pedido] BOSES YNU5B25
    2 participantes
    http://www.tibiaface.com

    Contenido patrocinado


    2 participantes

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).