• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    [Actions] [Actions] script

    Compartir:

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

    1Cảnh báo [Actions] [Actions] script el Lun Jun 24, 2019 1:00 am

    ivansho92

    ivansho92
    Nuevo Miembro
    Nuevo Miembro
    Descripcion escribió:
    Descripcion escribió:Hoala buenas noches, necesito un script o modificar el que tengo, uso Global12, pero todos los items que se compran en la store, unicamente los items que se acomodan en la casa, cuando las compras te aparecen unas cajas grises, pero cuando le das click se convierten a algo invisible y no se convierte en el item que se compra, se esfuma.
    [Actions] [Actions] script M6GTrZI
    [Actions] [Actions] script WLKGOou
    [Actions] [Actions] script UPIy0Nr
    Imagen Explicativa escribió:Imagen Explicativa: [Actions] [Actions] script <img src=qwdasf" />
    Version del Scripts: TFs 1.x
    Imagen Explicativa escribió:Imagen Explicativa: [Tienes que estar registrado y conectado para ver este vínculo]
    Version del Scripts: TFs 1.x

    Ver perfil de usuario

    2Cảnh báo Re: [Actions] [Actions] script el Lun Jun 24, 2019 2:10 am

    omargc

    omargc
    Miembro
    Miembro
    cm hiciste para q apareciera las imagenes??

    Ver perfil de usuario

    3Cảnh báo Re: [Actions] [Actions] script el Lun Jun 24, 2019 1:17 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    data/actions/scripts/others/carpets.lua

    mas que seguramente tiene un problema su scripts o no esta tomando bien la funciones



    [Actions] [Actions] script YNU5B25
    Ver perfil de usuario https://www.tibiaface.com

    4Cảnh báo Re: [Actions] [Actions] script el Lun Jun 24, 2019 6:10 pm

    ivansho92

    ivansho92
    Nuevo Miembro
    Nuevo Miembro
    este vendría siendo el script de Carpets.lua

    local foldedCarpet = {
    [25393] = 25392, [25392] = 25393, --rift carpet
    [26192] = 26193, [26193] = 26192, --void carpet
    [26087] = 26109, --yalahahari carpet
    [26109] = 26087, --yalahahari carpet
    [26088] = 26110, --white fur carpet
    [26110] = 26088, --white fur carpet
    [26089] = 26111, --bamboo mat carpet
    [26111] = 26089, --bamboo matr carpet
    [26371] = 26363, --crimson carpet
    [26363] = 26371, --crimson carpet
    [26366] = 26372, --azure carpet
    [26372] = 26366, --azure carpet
    [26367] = 26373, --emerald carpet
    [26373] = 26367, --emerald carpet
    [26368] = 26374, --light parquet carpet
    [26374] = 26368, --light parquet carpet
    [26369] = 26375, --dark parquet carpet
    [26375] = 26369, --dark parquet carpet
    [26370] = 26376, --mable floor
    [26376] = 26370, --marble floor
    [27084] = 27092, --flowery carpet
    [27092] = 27084, --flowery carpet
    [27085] = 27093, --Colourful Carpet
    [27093] = 27085, --Colourful Carpet
    [27086] = 27094, --striped carpet
    [27094] = 27086, --striped carpet
    [27087] = 27095, --fur carpet
    [27095] = 27087, --fur carpet
    [27088] = 27096, --diamond carpet
    [27096] = 27088, --diamond carpet
    [27089] = 27097, --patterned carpet
    [27097] = 27089, --patterned carpet
    [27090] = 27098, --night sky carpet
    [27098] = 27090, --night sky carpet
    [27091] = 27099, --star carpet
    [27099] = 27091, --star carpet
    [29349] = 29350, --verdant carpet
    [29350] = 29349, --verdant carpet
    [29351] = 29352, --shaggy carpet
    [29352] = 29351, --shaggy carpet
    [29353] = 29354, --mystic carpet
    [29354] = 29353, --mystic carpet
    [29355] = 29356, --stone tile
    [29356] = 29355, --stone tile
    [29357] = 29358, --wooden plank
    [29358] = 29357, --wooden plank
    [26054] = ??

    }

    function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local carpet = foldedCarpet[item.itemid]
    if not carpet then
    return false
    end

    if fromPosition.x == CONTAINER_POSITION then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "Put the item on the floor first.")
    elseif not fromPosition:getTile():getHouse() then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "You may use this only inside a house.")
    else
    item:transform(carpet)
    end

    return true
    end




    y este el store_constructionkits.lua

    function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local kit = item.actionid
    print(item.actionid)
    if not kit then
    return false
    end

    if fromPosition.x == CONTAINER_POSITION then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "Put the construction kit on the floor first.")
    elseif not fromPosition:getTile():getHouse() then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "You may construct this only inside a house.")
    else
    item:transform(kit)
    fromPosition:sendMagicEffect(CONST_ME_POFF)
    player:addAchievementProgress('Interior Decorator', 1000)
    end

    return true
    end

    Ver perfil de usuario

    5Cảnh báo Re: [Actions] [Actions] script el Lun Jun 24, 2019 6:16 pm

    Psycho

    Psycho
    Moderador
    Moderador
    [29358] = 29357, --wooden plank
    [26054] = ?? <-------

    esa ultima parte ya probaste poniendo un numero?



    AFC By Psycho & Alfa Server
    [Tienes que estar registrado y conectado para ver este vínculo]
    Ver perfil de usuario http://dio-pcl.ddns.net

    6Cảnh báo Re: [Actions] [Actions] script el Lun Jun 24, 2019 10:27 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:este vendría siendo el script de Carpets.lua

    local foldedCarpet = {
    [25393] = 25392, [25392] = 25393, --rift carpet
    [26192] = 26193, [26193] = 26192, --void carpet
    [26087] = 26109, --yalahahari carpet
    [26109] = 26087, --yalahahari carpet
    [26088] = 26110, --white fur carpet
    [26110] = 26088, --white fur carpet
    [26089] = 26111, --bamboo mat carpet
    [26111] = 26089, --bamboo matr carpet
    [26371] = 26363, --crimson carpet
    [26363] = 26371, --crimson carpet
    [26366] = 26372, --azure carpet
    [26372] = 26366, --azure carpet
    [26367] = 26373, --emerald carpet
    [26373] = 26367, --emerald carpet
    [26368] = 26374, --light parquet carpet
    [26374] = 26368, --light parquet carpet
    [26369] = 26375, --dark parquet carpet
    [26375] = 26369, --dark parquet carpet
    [26370] = 26376, --mable floor
    [26376] = 26370, --marble floor
    [27084] = 27092, --flowery carpet
    [27092] = 27084, --flowery carpet
    [27085] = 27093, --Colourful Carpet
    [27093] = 27085, --Colourful Carpet
    [27086] = 27094, --striped carpet
    [27094] = 27086, --striped carpet
    [27087] = 27095, --fur carpet
    [27095] = 27087, --fur carpet
    [27088] = 27096, --diamond carpet
    [27096] = 27088, --diamond carpet
    [27089] = 27097, --patterned carpet
    [27097] = 27089, --patterned carpet
    [27090] = 27098, --night sky carpet
    [27098] = 27090, --night sky carpet
    [27091] = 27099, --star carpet
    [27099] = 27091, --star carpet
    [29349] = 29350, --verdant carpet
    [29350] = 29349, --verdant carpet
    [29351] = 29352, --shaggy carpet
    [29352] = 29351, --shaggy carpet
    [29353] = 29354, --mystic carpet
    [29354] = 29353, --mystic carpet
    [29355] = 29356, --stone tile
    [29356] = 29355, --stone tile
    [29357] = 29358, --wooden plank
    [29358] = 29357, --wooden plank
    [26054] = ??

    }

    function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local carpet = foldedCarpet[item.itemid]
    if not carpet then
    return false
    end

    if fromPosition.x == CONTAINER_POSITION then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "Put the item on the floor first.")
    elseif not fromPosition:getTile():getHouse() then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "You may use this only inside a house.")
    else
    item:transform(carpet)
    end

    return true
    end




    y este el store_constructionkits.lua

    function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local kit = item.actionid
    print(item.actionid)
    if not kit then
    return false
    end

    if fromPosition.x == CONTAINER_POSITION then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "Put the construction kit on the floor first.")
    elseif not fromPosition:getTile():getHouse() then
    player:sendTextMessage(MESSAGE_STATUS_SMALL, "You may construct this only inside a house.")
    else
    item:transform(kit)
    fromPosition:sendMagicEffect(CONST_ME_POFF)
    player:addAchievementProgress('Interior Decorator', 1000)
    end

    return true
    end

    si se fija usted en el item con el god tiene un actions id usted tiene que diseñar un scripts que reconosca es actons y agrega el objeto correspondiente



    [Actions] [Actions] script YNU5B25
    Ver perfil de usuario https://www.tibiaface.com

    Contenido patrocinado


    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.

    Temas Recomendados×+

       

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