• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    ayudenme muchachos porfavor

    Compartir:

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

    1ayudenme muchachos porfavor  Empty ayudenme muchachos porfavor Mar Sep 15, 2020 5:29 pm

    notriz_10

    notriz_10
    Miembro
    Miembro
    hola cabros me sale en consola este siguiente error
    Lua Script Error: [Main Interface]
    in a timer event called from:
    (Unknown scriptfile)
    data/actions/scripts/warzona custom/newlottery.lua:181: attempt to index a nil value
    stack traceback:
           [C]: in function '__index'
           data/actions/scripts/warzona custom/newlottery.lua:181: in function <data/actions/scripts/warzona custom/newlottery.lua:161>






    y en mi scrip warzona custom tengo esto


    linea 161 local function exec(cid)
         --calcular uma chance e atribuir um item
         local player = Player(cid)
         local rand = math.random(1, 100)
         local aux, memo = 0, 0
         if rand >= 1 then
    for i = 1, #itemtable do
    local randitemid = itemtable[i].id
    local randitemchance = itemtable[i].chance
    if rand > 40 then
    aux = math.random(21, 39)
    memo = randitemchance
           end
    if rand <= 40 then
    aux = math.random(1, 20)
    memo = randitemchance
    end
    end
    end
        -- Passo um: Criar um item no primeiro SLOT, e deletar se houver o item do ultimo slot.
    linea 181   Game.createItem(itemtable[aux].id, 1, slots[1])
            local item = Tile(slots[#slots]):getTopDownItem()
            if item then
     item:remove()
    end
    --Passo dois: Mover itens para o proximo slot em todos os slots de 1 a 12 para o 2 > 13
    local maxslot = #slots-1
    local lastloop = 0
    for i = 1, maxslot do

    addEvent(delay, 1, slots[i], i)
    end
    end

    2 participantes

    2ayudenme muchachos porfavor  Empty Re: ayudenme muchachos porfavor Mar Sep 15, 2020 5:48 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    ese scripts no se nada de war zone



    ayudenme muchachos porfavor  YNU5B25
    2 participantes
    http://www.tibiaface.com

    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).