Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''trade''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

Encontrado 12 registros

  1. Alguem tem um script ou pode fazer um que a pessoa digita um certo comando por exemplo !SellVip Nick do player e ai ele vende o vip pro cara
  2. Esse sistema eu criei a muito tempo para quando um player compra pots e runas no npc, ele entregue uma bolsa mais adequada para cada tipo de pot e runa comprada nele. Abra o arquivo npc/libs/modulos.lua Procure pela função: Dentro dessa função, procure pela variável chamada backpack ou backpackid (não lembro como estava escrito exatamente, pois faz muito tempo que modifiquei) e apague ela. No lugar onde ela estava, adicione isso: Salve e pode fechar o arquivo. Agora abra o arquivo data/libs/050-functions.lua Adicione essa função nele: Salve e pode fechar o arquivo. Agora toda vez que alguém for comprar algum item listado na tabela bp, ele receberá (caso ele queira compra em bps) uma backpack correspondente ao item que ele comprou. Essa inserção desse sistema foi feito para a versão tfs 0.3.6 - 8.54; não sei se funciona em outras versões.
  3. Eai, pessoal! Então, to tentando "clonar" o Trade Center do PxG e por enquanto ta nisso ai! kk Quando acabar eu atualizo o tópico!
  4. Olá pessoas hoje eles trago um Trade Center Do PXG 75% Si Você Querem mudança É desicio Do Você LINK TRADE CENTER PXG 75%
  5. Olá galera, estou precisando de três ajudas com meu client, e queria saber se é tranquilo pra editar na pasta mesmo (eu não sei mexer muito bem) OBS: Uso OTclient-master e não posso trocar de client agora pois já editei muita coisa nela que queria e ficaria meio dificil! 1º RESOLVIDO Qualquer potion quando usado na hotkeys em si mesmo funciona normalmente, porém quando clicado na BP e clicado em você não esta funcionando! (após meses editando client só reparei isso hoje) 2º O trade do meu client quando baixei veio editado, daquele estilo 'OTClient', porém ele é muito bugado, acredito que isso seja no game_playertrade certo? Se alguém puder me ajudar, mesmo com um trade simples (o Normal), estaria agradecido, mas se alguém quiser colocar um trade bem complexo estilo SAO (Sword Art Online, que é meu server) agradeceria ainda mais! 3º Esse eu acredito ser o mais tranquilo.. Acredito ser em client_entergame.. Atualmente no meu servidor abrir o client aparece: Account Name Password Server IP -- Gostaria que tivesse o IP Fixo, sem poder muda-lo Porta -- Porta fixa, sem poder mudar (e se alguem puder me disser se a porta não precisa ser obrigatoriamente a 7171/7172, agradeceria) Protocolo -- Protocolo fixo sem poder mudar Resumindo: 1º - Alteração na Potion Servidor (ingame) RESOLVIDO 2º - Alteração no trade (ingame) 3º - Alteração no login (client) Quem puder ajudar, e por favor.. Não matem o tópico, como mataram na aba de script e eu fiquei semanas tendo que resolver sozinho.. EDIT: 4º Ajuda Gostaria de tirar uma skill (não é editar uma skill preste atenção), meu servidor vai ser composto de apenas Swords, por tanto tirar o Axe, Club, é necessário!
  6. Galera eu to criando um servidor Base TibiaGTA ai vai usar Armas,munição,Ropa ETC, Eu vo usa um Otclient do Venetta se possivel eu queria sabe como que muda as imagens do trade com o npc Tipo essas imagens aqui Se alguém sobre por favor me ajuda
  7. Olá galera do xTibia. Eu percebi que meu servidor contém um erro que permite dar trade com outra pessoa com o pokemon de fora, queria arrumar isso porém não sei, se alguém mexe com poketibia, me ajudem por favor. Irei dar REP++ claro. Obrigado desde já.
  8. Meu problema é o mesmo que o desse cara: http://www.xtibia.com/forum/topic/214073-ajuda-bug-trade/ Porém como vocês viram, o tópico não tem resposta. Para esclarecer, quando eu digito trade para algum Npc, ele não abre a box dos itens que o Npc oferece para compra e venda. O servidor é o 4Fun Server 9.10. Não, eu não editei nada no OtClient.
  9. Olá pessoal, estou com um pequeno probleminha em um script, é o seguinte, ele funciona normalmente, mais depois de um tempo ele começa a levar os players para a posição x=0, y=0, z=0 do mapa (Fica tudo escuro). O script é o seguinte. Você passa no piso , ele te leva pro Trade Center (Centro para trocas) ai ele registra uma storage de acordo com o piso que você pisou , se for na cidade de Saffron, ele registra x storage , se for em cerulean ele registra outra storage, ai quando você sai de lá ele zera a storage e te leva pra cidade que você tava. Mais depois de um tempo que o server fica online, O script começa a levar os players para o escuro. Alguem me ajuda por favor ? Segue o script : pvpgo.lua pvpback.lua no movements.xml Obrigado pessoal.
  10. Alguem Sabe arrumar o trade para Aparecer o boost do pokemon e pode ter 5 pokemon na bag para trocar. o meu trade tem que ta sem nenhum pokemon na bag para trocar function onTradeRequest(cid, target, item) for a, b in pairs (pokeballs) do if b.use == item.itemid then doPlayerSendCancel(cid, "You can't trade this item.") return false end end if isContainer(item.uid) then local bagItems = getItensUniquesInContainer(item.uid) if #bagItems >= 1 then doPlayerSendCancel(cid, "Has a Unique Item in this bag, you can't trade this item.") --alterado v1.6 return false end elseif getItemAttribute(item.uid, "unique") then --alterado v1.6 doPlayerSendCancel(cid, "It is a Unique Item, you can't trade this item.") return false end if isContainer(item.uid) then local itens = getPokeballsInContainer(item.uid) if #itens >= 1 then for i = 1, #itens do local lvl = getItemAttribute(itens[i], "level") local name = getItemAttribute(itens[i], "poke") if not lvl then doItemSetAttribute(itens[i], "level", pokes[name].level) --alterado v1.6 end end end elseif isPokeball(item.itemid) then local lvl = getItemAttribute(item.uid, "level") local name = getItemAttribute(item.uid, "poke") if not lvl then doItemSetAttribute(item.uid, "level", pokes[name].level) end end return true end local function noCap(cid, sid) if isCreature(cid) then doPlayerSendCancel(cid, "You can't carry more than six pokemons, trade cancelled.") end if isCreature(sid) then doPlayerSendCancel(sid, "You can't carry more than six pokemons, trade cancelled.") end end function onTradeAccept(cid, target, item, targetItem) local pbs = #getPokeballsInContainer(item.uid) local cancel = false local p1 = 0 local p2 = 0 local itemPokeball = isPokeball(item.itemid) and 1 or 0 local targetItemPokeball = isPokeball(targetItem.itemid) and 1 or 0 if getPlayerMana(cid) + itemPokeball > 6 then --alterado v1.6 cancel = true p1 = cid end if getPlayerMana(target) + targetItemPokeball > 6 then --alterado v1.6 cancel = true p2 = target end if pbs > 0 and getCreatureMana(target) + pbs > 6 + targetItemPokeball then cancel = true p1 = target end pbs = #getPokeballsInContainer(targetItem.uid) if pbs > 0 and getCreatureMana(cid) + pbs > 6 + itemPokeball then cancel = true p2 = cid end if cancel then addEvent(noCap, 20, p1, p2) return false end if itemPokeball == 1 and targetItemPokeball == 1 then setPlayerStorageValue(cid, 8900, 1) setPlayerStorageValue(target, 8900, 1) end return true end
  11. Hi all I'm not br, sorry if you don't understand me... i made a code that it is really useful, in trade when the players say: "SELL DRATINI ALMOST 43" the another player can't know if that is true or not, sometimes that poke need 100% of its exp to evolve lol. With my feature the players can see that by this way: 11:36 That offered poke: Rattata[M] needs 96% of exp.Boost level: 0. it is onTradeRequest, when someone try to trade with you that message will be displayed here it is the revamped trade system, just remove all of the script creaturescripts/trade system.lua and replace for this: [/font][/color] function onTradeRequest(cid, target, item) for a, b in pairs (pokeballs) do if b.use == item.itemid then doPlayerSendCancel(cid, "You can't trade this item.") return false elseif (b.on == item.itemid) then local pokename = getItemAttribute(item.uid , "poke") local nivel = getItemAttribute(item.uid , "level") local gender = getItemAttribute(item.uid, "gender") == 3 and "[F]" or "[M]" local boost = getItemAttribute(item.uid, "boost") or 0 str = "That offered poke: "..pokename..""..gender if (nivel < 100) then local experiencia = getPokemonExperienceTable(pokename)[nivel + 1] - getPokemonExperienceTable(pokename)[nivel] local proxima = getItemAttribute(item.uid , "nextlevelexp") local xp = round(proxima/experiencia * 100) str = str.." needs "..xp.."% of exp." else str = str.." it has the maximum level. " end str = str.. "Boost level: "..boost doPlayerSendTextMessage(target, 19, str) end end return true end local function noCap(cid, sid) if isCreature(cid) then doPlayerSendCancel(cid, "You can't carry more than six pokemons, trade cancelled.") end if isCreature(sid) then doPlayerSendCancel(sid, "You can't carry more than six pokemons, trade cancelled.") end end function onTradeAccept(cid, target, item, targetItem) local pbs = #getPokeballsInContainer(item.uid) local cancel = false local p1 = 0 local p2 = 0 local itemPokeball = isPokeball(item.itemid) and 1 or 0 local targetItemPokeball = isPokeball(targetItem.itemid) and 1 or 0 if pbs > 0 and getCreatureMana(target) + pbs > 6 + targetItemPokeball then cancel = true p1 = target end pbs = #getPokeballsInContainer(targetItem.uid) if pbs > 0 and getCreatureMana(cid) + pbs > 6 + itemPokeball then cancel = true p2 = cid end if cancel then addEvent(noCap, 20, p1, p2) return false end if itemPokeball == 1 and targetItemPokeball == 1 then setPlayerStorageValue(cid, 8900, 1) setPlayerStorageValue(target, 8900, 1) end return true end [color=#282828][font=helvetica, arial, sans-serif] i hope you like it ^^
  12. Distro: TFS 9.63 Olá Xtibianos, Pedido: Quero Criar um NPC que dê TRADE apenas com players que terminaram X Quest. Tentativa: No meu Ot 8.60 funciona perfeitamente esse modelo abaixo: if (getPlayerStorageValue(cid, storage) < 16 and msgcontains(msg, "trade")) then npcHandler:say("You are not able to negotiate with me, help me every day and then you can do it.", cid) elseif (getPlayerStorageValue(cid, storage) >= 16 and msgcontains(msg, "trade")) then local items = { {name="platinum amulet", id=2171, buy=0, sell=2500}, {name="ring of the sky", id=2123, buy=0, sell=3000}, {name="ruby necklace", id=2133, buy=0, sell=2000}, {name="scarab amulet", id=2135, buy=0, sell=200}, {name="silver brooch", id=2134, buy=0, sell=150}, {name="terra amulet", id=7887, buy=0, sell=1500}, {name="doll", id=2110, buy=0, sell=200}, {name="light shovel", id=5710, buy=0, sell=300}, {name="pirate voodo doll", id=5810, buy=0, sell=50}, {name="voodo doll", id=3955, buy=0, sell=400} } openShopWindow(cid, items, function(cid, itemid, subType, amount, ignoreCap, inBackpacks) customCallbackOnBuy(cid, itemid, subType, amount, ignoreCap, inBackpacks, items) end, function(cid, itemid, subType, amount, ignoreCap, inBackpacks) customCallbackOnSell(cid, itemid, subType, amount, ignoreCap, inBackpacks, items) end ) npcHandler:say("Of course, just browse through my wares.", cid) end Erro: Quando eu uso esse script no 9.63 não é possível comprar items que não são agrupáveis, e o seguinte erro é exibido no console: [Error - NpcScript Interface] (Unknown script file) Description: data/lib/050-function.lua:447: bad argument #2 to 'error' (number expected, got string) stack traceback: [C]: in function 'error' data/lib/050-function.lua:447: in function 'customCallbackOnBuy' data/npc/scripts/al dee.lua:50: in function <data/npc/scripts/al dee.lua:49> O que eu realmente quero: Ficaria muito grato se alguém conseguisse "consertar" essa função para mim, se não der por favor postem outras soluções. Material Necessário: function customCallbackOnBuy: function customCallbackOnBuy(cid, itemid, subType, amount, ignoreCap, inBackpacks, shopWindow) local shopItem, npcHandler = nil, NpcHandler for _, item in ipairs(shopWindow) do if not item.subType then item.subType = (isItemFluidContainer(item.id) == TRUE or isItemStackable(item.id) == TRUE) and 0 or 1 end if(item.id == itemid and (item.subType == subType)) then shopItem = item break end end if(shopItem == nil) then error("[shopModule.onBuy]", "Item not found on shopItems list") return false end if(shopItem.buy < 0) then error("[shopModule.onSell]", "Attempt to purchase an item which is only sellable") return false end local backpack, totalCost = 1988, amount * shopItem.buy if(inBackpacks) then totalCost = isItemStackable(itemid) == TRUE and totalCost + 20 or totalCost + (math.max(1, math.floor(amount / getContainerCapById(backpack))) * 20) end if(getPlayerMoney(cid) < totalCost) then doPlayerSendCancel(cid, npcHandler:parseMessage(npcHandler:getMessage(MESSAGE_NEEDMONEY), {[TAG_PLAYERNAME] = getPlayerName(cid), [TAG_ITEMCOUNT] = amount, [TAG_TOTALCOST] = totalCost, [TAG_ITEMNAME] = shopItem.name})) return false end local subType = shopItem.subType or isItemFluidContainer(itemid) == TRUE and 0 or 1 local a, b = doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) if(a < amount) then local msgId = MESSAGE_NEEDMORESPACE if(a == 0) then msgId = MESSAGE_NEEDSPACE end doPlayerSendCancel(cid, npcHandler:parseMessage(npcHandler:getMessage(msgId), {[TAG_PLAYERNAME] = getPlayerName(cid), [TAG_ITEMCOUNT] = amount, [TAG_TOTALCOST] = totalCost, [TAG_ITEMNAME] = shopItem.name, [TAG_ITEMCOUNT] = a})) if(a > 0) then doPlayerRemoveMoney(cid, ((a * shopItem.buy) + (b * 20))) return true end return false end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, npcHandler:parseMessage(npcHandler:getMessage(MESSAGE_BOUGHT), {[TAG_PLAYERNAME] = getPlayerName(cid), [TAG_ITEMCOUNT] = amount, [TAG_TOTALCOST] = totalCost, [TAG_ITEMNAME] = shopItem.name})) doPlayerRemoveMoney(cid, totalCost) return true end
×
×
  • Criar Novo...