• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    ESTATUA QUE AL DARLE LOOK DIGA EL TOP LEVEL DEL SERVER... TFS 0.4 OTX

    Compartir:

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

    vicma.09

    vicma.09
    Nuevo Miembro
    Nuevo Miembro
    Descripcion escribió:ESTATUA QUE AL DARLE LOOK DIGA EL TOP LEVEL DEL SERVER... TFS 0.4 OTX

    No lo he podido encontrar.. saludos espero ayuda
    Imagen Explicativa escribió:Imagen Explicativa: ESTATUA QUE AL DARLE LOOK DIGA EL TOP LEVEL DEL SERVER... TFS 0.4 OTX Tibiaf10
    Version del Scripts: TFs 0.4.0

    3 participantes

    *God Alex*

    *God Alex*
    Nuevo Miembro
    Nuevo Miembro
    Tendrías que crear un npc con forma de estatua

    3 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    aqui tienes

    Código:

    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true



    ESTATUA QUE AL DARLE LOOK DIGA EL TOP LEVEL DEL SERVER... TFS 0.4 OTX YNU5B25
    3 participantes
    http://www.tibiaface.com

    vicma.09

    vicma.09
    Nuevo Miembro
    Nuevo Miembro
    [Admin] God Maya escribió:aqui tienes

    Código:

    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true

    Disculpa mi desconocimiento donde se instala? creaturescripts?



    vicma.09 escribió:
    [Admin] God Maya escribió:aqui tienes

    Código:

    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true

    Disculpa mi desconocimiento donde se instala? creaturescripts?

    ERROR DE CONSOLA:

    > Loading creaturescripts... [Error - LuaInterface::loadFile] data/creaturescripts/scripts/estatuatop.lua:12: 'end' expected (to close 'function' at line 2) near '<eof>'
    [14/3/2023 23:51:50] [Error - Event::checkScript] Cannot load script (data/creaturescripts/scripts/estatuatop.lua)
    [14/3/2023 23:51:50] data/creaturescripts/scripts/estatuatop.lua:12: 'end' expected (to close 'function' at line 2) near '<eof>'
    [14/3/2023 23:51:51] (done).

    3 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    vicma.09 escribió:
    [Admin] God Maya escribió:aqui tienes

    Código:

    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true

    Disculpa mi desconocimiento donde se instala? creaturescripts?



    vicma.09 escribió:
    [Admin] God Maya escribió:aqui tienes

    Código:

    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true

    Disculpa mi desconocimiento donde se instala? creaturescripts?

    ERROR DE CONSOLA:

    > Loading creaturescripts... [Error - LuaInterfaceFile] data/creaturescripts/scripts/estatuatop.lua:12: 'end' expected (to close 'function' at line 2) near '<eof>'
    [14/3/2023 23:51:50] [Error - EventScript] Cannot load script (data/creaturescripts/scripts/estatuatop.lua)
    [14/3/2023 23:51:50] data/creaturescripts/scripts/estatuatop.lua:12: 'end' expected (to close 'function' at line 2) near '<eof>'
    [14/3/2023 23:51:51] (done).


    le falta un end aqui tienes corregido

    Código:


    local GROUP_FILTER = 3 -- this is the highscore cutoff (it's usually 3 for gods and 2 for tutors, so we start at 3)
    function onLook(cid, thing, position, lookDistance)
    if(thing.itemid)then -- yay it's an item, we won't get a nil error!
    if(thing.itemid == 9751)then -- now that we know its safe to index this value, we can check the itemid
    local player = db.getResult("SELECT name, level FROM `players` WHERE group_id < " .. GROUP_FILTER .. " ORDER BY `level` DESC LIMIT 1;")
    local name, level = player:getDataString("name"), player:getDataInt("level")
    player:free()
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You see a statue of " .. name .. " (" .. level .. ").\nHighest level on the server.")
    return false
    end
    end
    return true

    end



    ESTATUA QUE AL DARLE LOOK DIGA EL TOP LEVEL DEL SERVER... TFS 0.4 OTX YNU5B25
    3 participantes
    http://www.tibiaface.com

    Contenido patrocinado


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