• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System)

    Compartir:

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

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    GLOBAL TIBIAFACE  V.25 Protocolo 10.93 mapa.otb update (10.91)

    fixes leer:


    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) Captur23

    cast system config.lua
    Código:

    enableLiveCasting = true
    liveCastPort = 7173

    Reward Chest añadida ya a los moustros no necesitan configurar nada






    NEW Rookgaard + tutorial system identico tibia Cipsoft
    NEW Ab'Dendriel!
    NEW Venore!
    NEW DERFIA!
    NEW Roshamuul!
    ORAMOND  10.76 100%
    Krailos 100%
    ferumbras QUet 100%
    Todas las ciudades, incluyendo Zao, Gray Beach y Base Gnome!
    Todos los NPCs + NPCs de Oramond
    100% misiones com misiones: Annihilator, Demon Helmet, Pits of Inferno, The Inquisition Quest, el servicio de Yalahar, Isle of Evil, The Djinn War, The Ancient Tombs, Desafio de Dreamer, Bright Sword, la busqueda Unnatural Selection, Banshee Quest, demon Oak, Svargrond Arena y mucho mas!
    Razachai & Quirefang.
    Warzones gnomos!
    100% Boats, Tapetes e etc!
    entrenamiento Offline!
    Tame Sistema!
    Kazordoon Sistema vagones!
    Sistema de banco!
    warsystem 100%

    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) MYUeUCD
    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) Bcgq86f

    npc de addon: no actualizado
    tame sistem!: no actualizado

    mount.xml fue actualizada completa con las mounts hasta  10.93
    addon.xml fue actualizado completo con los addon hasta 10.93

    mapa global: sufre de algunas errores en el agua tendran que solucionar con la simple paleta de agua que no es mucho.


    El npc Captain Bluebear del barco de thais los lleva a: roshamuul gray beach oramond


    especiales gracias a:

    hirako:  protocolo y Compilacion

    Godmaya - fixe sources and events

    datpack:

    Absolute

    Ciroc

    Agradecimentos generales:

    Theforgottenserver
    ORTS
    Ricker
    XWhiteWolf
    LNETWORKS SOLUTIONS




    nota: si decean que los outfits no sean por quest y esten activado todos solo modifican esta linea en cada addon en el archivo xml/outfits.xml

    Código:
    unlocked="no"

    por

    Código:
    unlocked="yes"






    AGRADECER NO CUESTA NADA

    global tibiaface v.25.link
    : [Tienes que estar registrado y conectado para ver este vínculo]





    link del tutorial para crear el cliente:

    [Tienes que estar registrado y conectado para ver este vínculo]



    base de datos OBLIGATORIA mysql v.25: [Tienes que estar registrado y conectado para ver este vínculo]








    [/color]
    se les ruega a todos los usuarios que no hagan un comentario ilógico como por ejemplo (XD, asdsdasdsa, 12345) porque serán baneados definitivo de la comunidad de tibiaface

    y listo cualquier duda o problema reportarla



    Última edición por [Admin] God Maya el Jue Mayo 26, 2016 3:58 pm, editado 1 vez



    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) YNU5B25
    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.tibiaface.com

    hirako

    hirako
    Miembro
    Miembro
    Que buen aporte +1 Very Happy respect Very Happy

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    Ketzzie

    Ketzzie
    Miembro
    Miembro
    we no tendras las source para linux?

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    Pedrynk

    Pedrynk
    Nuevo Miembro
    Nuevo Miembro
    Buen aporte

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://Tibia.com

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    test



    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) YNU5B25
    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.tibiaface.com

    hirako

    hirako
    Miembro
    Miembro
    trabajando en un v26 Razz

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    Chuymax

    Chuymax
    Nuevo Miembro
    Nuevo Miembro
    Maya, un gesior acc para este ot ?

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Chuymax escribió:Maya, un gesior acc para este ot ?

    gesior 2012



    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) YNU5B25
    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.tibiaface.com

    petardako

    petardako
    Miembro
    Miembro
    no estaria de menos que colocaseis una web (gesior 2012 + alguna cosa editada) compatible con el server y que lo subierais a un github para que la gente pudiese colaborar en bugs y demas.

    gracias por el aporte, muy buen trabajo.

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://as.com

    garygarcia

    garygarcia
    Nuevo Miembro
    Nuevo Miembro
    muy buen trabajo.

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    cree033

    cree033
    Miembro
    Miembro
    buenas noches el npc ... el que da las nuevas armors tiene un error ya lo he corregido y le he puesto el nombre que le corresponde Cledwyn creamos su script.lua y pegamos los siguiente:

    Código:
    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)

    function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
    function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
    function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
    function onThink() npcHandler:onThink() end

    local t = {}
    local renown = {}

    local config = {
     ['earthheart cuirass'] = {itemid = 25177, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthheart hauberk'] = {itemid = 25178, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthheart platemail'] = {itemid = 25179, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthmind raiment'] = {itemid = 25191, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthsoul tabard'] = {itemid = 25187, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart cuirass'] = {itemid = 25174, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart hauberk'] = {itemid = 25175, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart platemail'] = {itemid = 25176, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['firemind raiment'] = {itemid = 25190, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['firesoul tabard '] = {itemid = 25186, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart cuirass'] = {itemid = 18517, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart hauberk'] = {itemid = 25184, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart platemail'] = {itemid = 25185, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostmind raiment'] = {itemid = 25193, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostsoul tabard'] = {itemid = 25189, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart cuirass'] = {itemid = 25180, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart hauberk'] = {itemid = 25181, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart platemail'] = {itemid = 25182, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thundermind raiment'] = {itemid = 25192, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thundermind tabard'] = {itemid = 25188, token = {type = 'silver tokens', id = 25172, count = 100}},
     }


    local function getTable()
     local itemsList = {
     {name = "bell", id = 18343, buy = 50},
     {name = "gnomish crystal package", id = 18313, buy = 1000},
     {name = "gnomish extraction crystal", id = 18213, buy = 50},
     {name = "gnomish spore gatherer", id = 18328, buy = 50},
     {name = "little pig", id = 18339, buy = 150}
     }
     return itemsList
    end

    local function setNewTradeTable(table)
     local items, item = {}
     for i = 1, #table do
     item = table[i]
     items[item.id] = {itemId = item.id, buyPrice = item.buy, sellPrice = item.sell, subType = 0, realName = item.name}
     end
     return items
    end

    local function onBuy(cid, item, subType, amount, ignoreCap, inBackpacks)
     local player = Player(cid)
     local items = setNewTradeTable(getTable())
     local count = 0
     for i = 1, amount do
     local item = Game.createItem(items[item].itemId, subType)
     if player:addItemEx(item, false) ~= RETURNVALUE_NOERROR then
     npcHandler:say('First make sure you have enough space in your inventory.', cid)
     break
     end
     count = i
     end

     if count == 0 then
     return true
     end

     player:removeMoney(items[item].buyPrice * count)
     player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('Bought %dx %s for %d gold.', count, items[item].realName, items[item].buyPrice * count))
     return true
    end

    local function greetCallback(cid)
     npcHandler:setMessage(MESSAGE_GREET, 'Hola para adquirir un nueva {armors} necesita')
     return true
    end

    local function creatureSayCallback(cid, type, msg)
     if not npcHandler:isFocused(cid) then
     return false
     end

     if msgcontains(msg, 'armors') then
     npcHandler:say({
     'Solo se Venden las siguientes categorias armors Earth & Thunder y Frost & Fire a cambio de {silver tokens}...',
     }, cid)
     elseif msgcontains(msg, 'silver tokens') then
     npcHandler:say({
     'Por silver tokens usted puede tomar entre una {earthheart cuirass}, una {earthheart platemail}, una {earthmind Raiment}, una {earthsoul tabard} , una {earthheart hauberk}, una {thunderheart cuirass}, una {thunderheart hauberk}, una {thunderheart platemail}, una {thundermind raiment} y {thundersoul tabard} ...',
     'Por silver tokens usted puede tomar entre una {fireheart cuirass}, una {fireheart platemail}, una {firemind Raiment}, una {firesoul tabard} , una {fireheart hauberk}, una {frostheart cuirass}, una {frostheart hauberk}, una {frostheart platemail}, una {frostmind raiment} y {frostsoul tabard} ...',
     }, cid)
     elseif config[msg] then
     local itemType = ItemType(config[msg].itemid)
     npcHandler:say(string.format('Do you want to trade %s %s for %d %s tokens?', (itemType:getArticle() ~= "" and itemType:getArticle() or ""), itemType:getName(), config[msg].token.count, config[msg].token.type), cid)
     npcHandler.topic[cid] = 1
     t[cid] = msg
     elseif msgcontains(msg, 'relations') then
     local player = Player(cid)
     if player:getStorageValue(Storage.BigfootBurden.QuestLine) >= 14 then
     npcHandler:say('Our relations improve with every mission you undertake on our behalf. Another way to improve your relations with us gnomes is to trade in silver tokens. ...', cid)
     npcHandler:say('Your renown amongst us gnomes is currently {' .. math.max(0, player:getStorageValue(Storage.BigfootBurden.Rank)) .. '}. Do you want to improve your standing by sacrificing tokens? One token will raise your renown by 5 points. ', cid)
     npcHandler.topic[cid] = 2
     else
     npcHandler:say('You are not even a recruit of the Bigfoots. Sorry I can\'t help you.', cid)
     end
     elseif npcHandler.topic[cid] == 3 then
     local amount = getMoneyCount(msg)
     if amount > 0 then
     npcHandler:say('Do you really want to trade ' .. amount .. ' silver tokens for ' .. amount * 5 .. ' renown?', cid)
     renown[cid] = amount
     npcHandler.topic[cid] = 4
     end
     elseif msgcontains(msg, 'items') then
     npcHandler:say('Do you need to buy any mission items?', cid)
     npcHandler.topic[cid] = 5
     elseif msgcontains(msg, 'yes') then
     if npcHandler.topic[cid] == 1 then
     local player, targetTable = Player(cid), config[t[cid]]
     if player:getItemCount(targetTable.token.id) < targetTable.token.count then
     npcHandler:say('Sorry, you don\'t have enough ' .. targetTable.token.type .. ' tokens with you.', cid)
     npcHandler.topic[cid] = 0
     return true
     end

     local item = Game.createItem(targetTable.itemid, 1)
     local weight = 0
     weight = ItemType(item.itemid):getWeight(item:getCount())

     if player:addItemEx(item) ~= RETURNVALUE_NOERROR then
     if player:getFreeCapacity() < weight then
     npcHandler:say('First make sure you have enough capacity to hold it.', cid)
     else
     npcHandler:say('First make sure you have enough space in your inventory.', cid)
     end
     npcHandler.topic[cid] = 0
     return true
     end

     player:removeItem(targetTable.token.id, targetTable.token.count)
     npcHandler:say('Here have one of our ' .. item:getPluralName() .. '.', cid)
     npcHandler.topic[cid] = 0
     elseif npcHandler.topic[cid] == 2 then
     npcHandler:say("How many tokens do you want to trade?", cid)
     npcHandler.topic[cid] = 3
     elseif npcHandler.topic[cid] == 4 then
     local player = Player(cid)
     if player:removeItem(25172, renown[cid]) then
     player:setStorageValue(Storage.BigfootBurden.Rank, math.max(0, player:getStorageValue(Storage.BigfootBurden.Rank)) + renown[cid] * 5)
     npcHandler:say('As you wish! Your new renown is {' .. player:getStorageValue(Storage.BigfootBurden.Rank) .. '}.', cid)
     else
     npcHandler:say('You don\'t have these many tokens.', cid)
     end
     npcHandler.topic[cid] = 0
     elseif npcHandler.topic[cid] == 5 then
     openShopWindow(cid, getTable(), onBuy, onSell)
     npcHandler:say('Let us see if I have what you need.', cid)
     npcHandler.topic[cid] = 0
     end
     elseif msgcontains(msg, 'no') and isInArray({1, 3, 4, 5}, npcHandler.topic[cid]) then
     npcHandler:say('As you like.', cid)
     npcHandler.topic[cid] = 0
     end
     return true
    end

    local function onReleaseFocus(cid)
     t[cid], renown[cid] = nil, nil
    end

    npcHandler:setCallback(CALLBACK_GREET, greetCallback)
    npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
    npcHandler:setCallback(CALLBACK_ONRELEASEFOCUS, onReleaseFocus)
    npcHandler:addModule(FocusModule:new())

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.simpus.com.mx

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    genial cree033 +1



    Global TibiaFace V.25 (protocolo 10.93) (map update full 100%)(cast system and Reward System) YNU5B25
    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.tibiaface.com

    xxrichardx

    xxrichardx
    Nuevo Miembro
    Nuevo Miembro
    cree033 escribió:buenas noches el npc ... el que da las nuevas armors tiene un error ya lo he corregido y le he puesto el nombre que le corresponde Cledwyn creamos su script.lua y pegamos los siguiente:

    Código:
    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)

    function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
    function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
    function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
    function onThink() npcHandler:onThink() end

    local t = {}
    local renown = {}

    local config = {
     ['earthheart cuirass'] = {itemid = 25177, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthheart hauberk'] = {itemid = 25178, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthheart platemail'] = {itemid = 25179, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthmind raiment'] = {itemid = 25191, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['earthsoul tabard'] = {itemid = 25187, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart cuirass'] = {itemid = 25174, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart hauberk'] = {itemid = 25175, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['fireheart platemail'] = {itemid = 25176, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['firemind raiment'] = {itemid = 25190, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['firesoul tabard '] = {itemid = 25186, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart cuirass'] = {itemid = 18517, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart hauberk'] = {itemid = 25184, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostheart platemail'] = {itemid = 25185, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostmind raiment'] = {itemid = 25193, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['frostsoul tabard'] = {itemid = 25189, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart cuirass'] = {itemid = 25180, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart hauberk'] = {itemid = 25181, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thunderheart platemail'] = {itemid = 25182, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thundermind raiment'] = {itemid = 25192, token = {type = 'silver tokens', id = 25172, count = 100}},
     ['thundermind tabard'] = {itemid = 25188, token = {type = 'silver tokens', id = 25172, count = 100}},
     }


    local function getTable()
     local itemsList = {
     {name = "bell", id = 18343, buy = 50},
     {name = "gnomish crystal package", id = 18313, buy = 1000},
     {name = "gnomish extraction crystal", id = 18213, buy = 50},
     {name = "gnomish spore gatherer", id = 18328, buy = 50},
     {name = "little pig", id = 18339, buy = 150}
     }
     return itemsList
    end

    local function setNewTradeTable(table)
     local items, item = {}
     for i = 1, #table do
     item = table[i]
     items[item.id] = {itemId = item.id, buyPrice = item.buy, sellPrice = item.sell, subType = 0, realName = item.name}
     end
     return items
    end

    local function onBuy(cid, item, subType, amount, ignoreCap, inBackpacks)
     local player = Player(cid)
     local items = setNewTradeTable(getTable())
     local count = 0
     for i = 1, amount do
     local item = Game.createItem(items[item].itemId, subType)
     if player:addItemEx(item, false) ~= RETURNVALUE_NOERROR then
     npcHandler:say('First make sure you have enough space in your inventory.', cid)
     break
     end
     count = i
     end

     if count == 0 then
     return true
     end

     player:removeMoney(items[item].buyPrice * count)
     player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('Bought %dx %s for %d gold.', count, items[item].realName, items[item].buyPrice * count))
     return true
    end

    local function greetCallback(cid)
     npcHandler:setMessage(MESSAGE_GREET, 'Hola para adquirir un nueva {armors} necesita')
     return true
    end

    local function creatureSayCallback(cid, type, msg)
     if not npcHandler:isFocused(cid) then
     return false
     end

     if msgcontains(msg, 'armors') then
     npcHandler:say({
     'Solo se Venden las siguientes categorias armors Earth & Thunder y Frost & Fire a cambio de {silver tokens}...',
     }, cid)
     elseif msgcontains(msg, 'silver tokens') then
     npcHandler:say({
     'Por silver tokens usted puede tomar entre una {earthheart cuirass}, una {earthheart platemail}, una {earthmind Raiment}, una {earthsoul tabard} , una {earthheart hauberk}, una {thunderheart cuirass}, una {thunderheart hauberk}, una {thunderheart platemail}, una {thundermind raiment} y {thundersoul tabard} ...',
     'Por silver tokens usted puede tomar entre una {fireheart cuirass}, una {fireheart platemail}, una {firemind Raiment}, una {firesoul tabard} , una {fireheart hauberk}, una {frostheart cuirass}, una {frostheart hauberk}, una {frostheart platemail}, una {frostmind raiment} y {frostsoul tabard} ...',
     }, cid)
     elseif config[msg] then
     local itemType = ItemType(config[msg].itemid)
     npcHandler:say(string.format('Do you want to trade %s %s for %d %s tokens?', (itemType:getArticle() ~= "" and itemType:getArticle() or ""), itemType:getName(), config[msg].token.count, config[msg].token.type), cid)
     npcHandler.topic[cid] = 1
     t[cid] = msg
     elseif msgcontains(msg, 'relations') then
     local player = Player(cid)
     if player:getStorageValue(Storage.BigfootBurden.QuestLine) >= 14 then
     npcHandler:say('Our relations improve with every mission you undertake on our behalf. Another way to improve your relations with us gnomes is to trade in silver tokens. ...', cid)
     npcHandler:say('Your renown amongst us gnomes is currently {' .. math.max(0, player:getStorageValue(Storage.BigfootBurden.Rank)) .. '}. Do you want to improve your standing by sacrificing tokens? One token will raise your renown by 5 points. ', cid)
     npcHandler.topic[cid] = 2
     else
     npcHandler:say('You are not even a recruit of the Bigfoots. Sorry I can\'t help you.', cid)
     end
     elseif npcHandler.topic[cid] == 3 then
     local amount = getMoneyCount(msg)
     if amount > 0 then
     npcHandler:say('Do you really want to trade ' .. amount .. ' silver tokens for ' .. amount * 5 .. ' renown?', cid)
     renown[cid] = amount
     npcHandler.topic[cid] = 4
     end
     elseif msgcontains(msg, 'items') then
     npcHandler:say('Do you need to buy any mission items?', cid)
     npcHandler.topic[cid] = 5
     elseif msgcontains(msg, 'yes') then
     if npcHandler.topic[cid] == 1 then
     local player, targetTable = Player(cid), config[t[cid]]
     if player:getItemCount(targetTable.token.id) < targetTable.token.count then
     npcHandler:say('Sorry, you don\'t have enough ' .. targetTable.token.type .. ' tokens with you.', cid)
     npcHandler.topic[cid] = 0
     return true
     end

     local item = Game.createItem(targetTable.itemid, 1)
     local weight = 0
     weight = ItemType(item.itemid):getWeight(item:getCount())

     if player:addItemEx(item) ~= RETURNVALUE_NOERROR then
     if player:getFreeCapacity() < weight then
     npcHandler:say('First make sure you have enough capacity to hold it.', cid)
     else
     npcHandler:say('First make sure you have enough space in your inventory.', cid)
     end
     npcHandler.topic[cid] = 0
     return true
     end

     player:removeItem(targetTable.token.id, targetTable.token.count)
     npcHandler:say('Here have one of our ' .. item:getPluralName() .. '.', cid)
     npcHandler.topic[cid] = 0
     elseif npcHandler.topic[cid] == 2 then
     npcHandler:say("How many tokens do you want to trade?", cid)
     npcHandler.topic[cid] = 3
     elseif npcHandler.topic[cid] == 4 then
     local player = Player(cid)
     if player:removeItem(25172, renown[cid]) then
     player:setStorageValue(Storage.BigfootBurden.Rank, math.max(0, player:getStorageValue(Storage.BigfootBurden.Rank)) + renown[cid] * 5)
     npcHandler:say('As you wish! Your new renown is {' .. player:getStorageValue(Storage.BigfootBurden.Rank) .. '}.', cid)
     else
     npcHandler:say('You don\'t have these many tokens.', cid)
     end
     npcHandler.topic[cid] = 0
     elseif npcHandler.topic[cid] == 5 then
     openShopWindow(cid, getTable(), onBuy, onSell)
     npcHandler:say('Let us see if I have what you need.', cid)
     npcHandler.topic[cid] = 0
     end
     elseif msgcontains(msg, 'no') and isInArray({1, 3, 4, 5}, npcHandler.topic[cid]) then
     npcHandler:say('As you like.', cid)
     npcHandler.topic[cid] = 0
     end
     return true
    end

    local function onReleaseFocus(cid)
     t[cid], renown[cid] = nil, nil
    end

    npcHandler:setCallback(CALLBACK_GREET, greetCallback)
    npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
    npcHandler:setCallback(CALLBACK_ONRELEASEFOCUS, onReleaseFocus)
    npcHandler:addModule(FocusModule:new())



    olle bro asi se llama el npc

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    cree033

    cree033
    Miembro
    Miembro
    si lo puedes ver en tibiawikia

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes
    http://www.simpus.com.mx

    masflam

    masflam
    Miembro
    Miembro
    whn i use ip127.0.0.1 working if i put ip router bug in tibia and closed

    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 participantes

    Contenido patrocinado


    +6
    garygarcia
    petardako
    Chuymax
    Pedrynk
    Ketzzie
    hirako
    10 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).