Ir para conteúdo

mattos123

Membro
  • Registro em

  • Última visita

Tudo que mattos123 postou

  1. mattos123 postou uma resposta no tópico em Tibia Global OTServer
    justamente desse metodo que estou falando, nao funcionou comigo, o cliente ficou normal, so que nao hora de entrar ingame ele dá "SSL Handshake error'
  2. coe luan, esse é aquele open project?
  3. mattos123 postou uma resposta no tópico em Tibia Global OTServer
    tem como alguem me relatar como produzir o cliente 11.44 com meu ip ? consigo estruturar o server todo, menos essa desgraça
  4. po vei nao funcionou cmg, edito tudo direitinho, deixo com 69 , dai o cliente nao abre =/
  5. mattos123 postou uma resposta no tópico em Arquivo Público
    olá, nao consigo entrar atraves do tibia 10.98, e nem pelo 11, no 11 ele dá "illegal value", so consigo pelo otclient, alguma ajuda ?
  6. estou com o mesmo problema
  7. mattos123 postou uma resposta no tópico em Formação de Equipe
    estou com uma parte +- concluida
  8. em qual tfs você está operando ? @bismarkzika
  9. mattos123 postou uma resposta no tópico em Formação de Equipe
    gostei da ideia, meu servidor é baseado no conceito, mas estagnei no 0.4 , já estava pensando em começar um projeto no 1.2 , aqui está uma excelente oportunidade pra contribuir gostaria de ajudar no possivel, qualquer coisa entre em contato. (21)97012-1542
  10. mattos123 postou uma resposta no tópico em Suporte Tibia OTServer
    Poxa, sinto muito, só trabalho com 0.4 , espero que alguem consiga ajuda-lo.
  11. Hm, pq nao especificou no pedid ? .... Nao trabalho com sqlite, desculpe.
  12. Provavelmente existe, mas uma maneira mais facil é a seguinte. Ir em cada table e relizar essa operação, "Truncate" ele limpa a table, toda.
  13. mattos123 postou uma resposta no tópico em Suporte Tibia OTServer
    qual tfs vc está operando? fica dificil tendo que adivinhar..
  14. Como exatamente , o player obtem acesso a essa "skill" , é por storage? se sim, é facil de fazer, me mande pm com mais detalhes.
  15. mattos123 postou uma resposta no tópico em Suporte Tibia OTServer
    <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Loot System" version="1.0" author="Vodkart And Mkalo" contact="none.com" enabled="yes"> <config name="Loot_func"><![CDATA[ info = { AutomaticDeposit = true, BlockMonsters = {}, BlockItemsList = {2123,2515}, Max_Slots = {free = 2, premium = 5}, Storages = {27000,28008,28006,28007}, items_price = {[2432] = 1000,[2514] = 5000, [2151] = 100,[2150] = 100,[2393] = 2000} } function setPlayerStorageTable(cid, storage, tab) local tabstr = "&" for i,x in pairs(tab) do tabstr = tabstr .. i .. "," .. x .. ";" end setPlayerStorageValue(cid, storage, tabstr:sub(1, #tabstr-1)) end function getPlayerStorageTable(cid, storage) local tabstr = getPlayerStorageValue(cid, storage) local tab = {} if type(tabstr) ~= "string" then return {} end if tabstr:sub(1,1) ~= "&" then return {} end local tabstr = tabstr:sub(2, #tabstr) local a = string.explode(tabstr, ";") for i,x in pairs(a) do local b = string.explode(x, ",") tab[tonumber(b[1]) or b[1]] = tonumber(b[2]) or b[2] end return tab end function isInTable(cid, item) for _,i in pairs(getPlayerStorageTable(cid, info.Storages[1]))do if tonumber(i) == tonumber(item) then return true end end return false end function addItemTable(cid, item) local x = {} for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i]) end if x ~= 0 then table.insert(x,tonumber(item)) setPlayerStorageTable(cid, info.Storages[1], x) else setPlayerStorageTable(cid, info.Storages[1], {item}) end end function removeItemTable(cid, item) local x = {} for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i]) end for i,v in ipairs(x) do if tonumber(v) == tonumber(item) then table.remove(x,i) end end return setPlayerStorageTable(cid, info.Storages[1], x) end function ShowItemsTabble(cid) local n,str = 0,"[+] Auto Loot Commands [+]\n\n!autoloot item name --> To add ou Remove item from list.\n!autoloot money --> To collect gold automatically.\n!autoloot clear --> To clear the list.\n!autoloot on/off --> To enable or disable the collecting of items in the system.\n!autoloot autosell --> To enable or disable the auto selling items.\n\n[+] Auto Loot Info [+]\n\nSystem: "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Activated" or "Disabled")..".\nGold Collecting: "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "Disabled")..".\nAutomatic Item Selling: "..(getPlayerStorageValue(cid, info.Storages[4]) > 0 and "Activated" or "Disabled")..".\nBalance Total: ["..getPlayerBalance(cid).."] gp's.\nMaximum Slots: ["..#getPlayerStorageTable(cid, info.Storages[1]).."/"..(isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free).."]\n\n[+] Auto Loot Slots [+]\n\n" for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do n = n + 1 str = str.."Slot "..n.." - "..getItemNameById(getPlayerStorageTable(cid, info.Storages[1])[i]).."\n" end return doPlayerPopupFYI(cid, str) end function getContainerItems(containeruid) local items = {} local containers = {} if type(getContainerSize(containeruid)) ~= "number" then return false end for slot = 0, getContainerSize(containeruid)-1 do local item = getContainerItem(containeruid, slot) if item.itemid == 0 then break end if isContainer(item.uid) then table.insert(containers, item.uid) end table.insert(items, item) end if #containers > 0 then for i,x in ipairs(getContainerItems(containers[1])) do table.insert(items, x) end table.remove(containers, 1) end return items end function getItemsInContainerById(container, itemid) -- Function By Kydrai local items = {} if isContainer(container) and getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end function doPlayerAddItemStacking(cid, itemid, amount) -- revisado local item, _G = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid), 0 if #item > 0 then for _ ,x in pairs(item) do local ret = getThing(x) if ret.type < 100 then doTransformItem(ret.uid, itemid, ret.type+amount) if ret.type+amount > 100 then doPlayerAddItem(cid, itemid, ret.type+amount-100) end break else _G = _G+1 end end if _G == #item then doPlayerAddItem(cid, itemid, amount) end else return doPlayerAddItem(cid, itemid, amount) end end function AutomaticDeposit(cid,item,n) local deposit = item == tonumber(2160) and (n*10000) or tonumber(item) == 2152 and (n*100) or (n*1) return doPlayerDepositMoney(cid, deposit) end function AutomaticItensSelling(cid, x) return doPlayerAddMoney(cid, x) and doPlayerDepositMoney(cid, x) end function ExistItemByName(name) -- by vodka local items = io.open("data/items/items.xml", "r"):read("*all") local get = items:match('name="' .. name ..'"') if get == nil or get == "" then return false end return true end function corpseRetireItems(cid, pos) local check = false for i = 0, 255 do pos.stackpos = i tile = getTileThingByPos(pos) if tile.uid > 0 and isCorpse(tile.uid) then check = true break end end if check == true then local items = getContainerItems(tile.uid) for i,x in pairs(items) do if isInArray(getPlayerStorageTable(cid, info.Storages[1]), tonumber(x.itemid)) or getPlayerStorageValue(cid, info.Storages[2]) > 0 and isInArray({2148,2152,2160},tonumber(x.itemid)) then if isItemStackable(x.itemid) then if getPlayerStorageValue(cid, info.Storages[4]) > 0 and info.items_price[tonumber(x.itemid)] then AutomaticItensSelling(cid, (info.items_price[tonumber(x.itemid)]*x.type)) else doPlayerAddItemStacking(cid, x.itemid, x.type) if info.AutomaticDeposit == true and isInArray({2148,2152,2160}, tonumber(x.itemid)) then AutomaticDeposit(cid,x.itemid,x.type) end end else if getPlayerStorageValue(cid, info.Storages[4]) > 0 and info.items_price[tonumber(x.itemid)] then AutomaticItensSelling(cid, info.items_price[tonumber(x.itemid)]) else doPlayerAddItem(cid, x.itemid) end end doRemoveItem(x.uid) end end end end]]></config> <event type="login" name="LootLogin" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "LootEventKIll") if isPremium(cid) and getPlayerStorageValue(cid, 27001) <= 0 then setPlayerStorageValue(cid, 27001, 1) elseif getPlayerStorageValue(cid, 27001) > 0 and not isPremium(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You premium is Over, Start a new list!") setPlayerStorageValue(cid, 27001, -1) setPlayerStorageValue(cid, info.Storages[1], -1) end return true end]]></event> <event type="kill" name="LootEventKIll" event="script"><![CDATA[ domodlib('Loot_func') function onKill(cid, target, lastHit) if isPlayer(cid) and getPlayerStorageValue(cid, info.Storages[3]) <= 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower()) then addEvent(corpseRetireItems, 0, cid ,getThingPos(target)) end return true end]]></event> <talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[ domodlib('Loot_func') local param, slots = param:lower(), getPlayerStorageValue(cid, 13540) - os.time() > 0 and info.Max_Slots.premium or info.Max_Slots.free if not param or param == "" then ShowItemsTabble(cid) return true elseif tonumber(param) then doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true elseif isInArray({"clean","limpar", "clear"}, param) then setPlayerStorageValue(cid, info.Storages[1], -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true elseif isInArray({"start","stop","on","off"}, param) then setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] "..(getPlayerStorageValue(cid, info.Storages[3]) > 0 and "Stopped" or "Started")..".") return true elseif isInArray({"money","gold","gps","dinheiro"}, param) then setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true elseif isInArray({"autoselling","autosell","autovender","vender"}, param) then setPlayerStorageValue(cid, info.Storages[4], getPlayerStorageValue(cid, info.Storages[4]) <= 0 and 1 or 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Automatic Itens Selling "..(getPlayerStorageValue(cid, info.Storages[4]) > 0 and "Activated" or "disabled")..".") return true end local item = ExistItemByName(tostring(param)) if not item then doPlayerSendCancel(cid, "This item does not exist.") return true end local item = getItemIdByName(tostring(param)) if not item then doPlayerSendCancel(cid, "This item does not exist.") return true end local var = isInTable(cid, item) if isInArray({2148,2152,2160},item) then doPlayerSendCancel(cid, "Enter !autoloot money to add money in your list!") return true elseif isInArray(info.BlockItemsList, item) then doPlayerSendCancel(cid, "You can not add this item in the list!") return true elseif not var and #getPlayerStorageTable(cid, info.Storages[1]) >= slots then doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true end if not var then addItemTable(cid, item) else removeItemTable(cid, item) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list") return true]]></talkaction> </mod> autoloot funcional para tfs 0.4 https://pastebin.com/raw/XRRkPVKX
  16. local k = { ["Demon"] = { msg = { {"Demon acabou de morrer"} -- mensagem } } } function onKill(cid, target) for name, pos in pairs(k) do if (name == getCreatureName(target)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, k.msg[1], k.msg[2]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) end end return true end teste e me diga se funcionou , como voce nao informou o tfs que está operando, defini meu proprio padrao de trabalho, TFS 0.4.
  17. Pesquise o ID do item na pasta monstros, com essa opção de pesquisa selecionada, todos os monstros com o ID irao aparecer, dai você só apaga a linha do loot , exemplo, nao quero que drope crystal coins (2160) eu vou no arquivo e removo essa linha <item id="2160" countmax="12" chance="100000"/><!-- crystal coin --> -- ISTO É UM EXEMPLO, NO SEU SERVIDOR SERÁ DIFERENTE.
  18. Há possibilidade de disponibilizar para otxserver 2 ( tfs 0.4 ) ? Grato.
  19. mattos123 postou uma resposta no tópico em Códigos C++
    nao funciona em otx 2.7 (tfs0.4) grafit seu fanfarrao aperta aquele
  20. @ledcar Voce pode utilizar a ActionID de gate of expertise normal, no caso level 100 , (ActionID: 1100), level 2000 (ActionID: 12000), ele só nao ira mostrar pro player , qual level irá precisar passar na porta.
  21. @pablobion Colocando no-pvp mode, players com level menor que o "Protection Level", conseguem entrar dentro de outros players.
  22. Vá no seu items.xml localize o ID do tile que está usando , e edite a seu gosto. <item id="ID_FLOOR" article="a" name="depot floor"> <attribute key="walkStack" value="0" /> -- [Solução] </item>
  23. eu tava procurando essa em xml, a mais antiga que encontrei foi essa =(
  24. Bom, vamos lá, Olá pessoal, depois de uma breve busca de um servidor "Yurots", "Yurots Original", não consegui encontrar o infame, clássico Yurots do GOD Bon, fucei num HD Externo, e acabei encontrado uma versão que creio eu seja a versão "crua" do servidor, Não tenho muitos detalhes do servidor, porém, sei que roda em TFS 0.4_SVN / SQLITE Logo abaixo disponibilizo algumas fotos do mapa do servidor, Download http://www.mediafire.com/file/69e8r28kljk2so9/Yurots_1.2_[8.6].rar Scan https://www.virustotal.com/pt/file/4348ba41fd9915e078c86f98cb89f4820072da5645713117c704cfeabd3d0294/analysis/ Créditos: GOD Bon TFS Developers mattos123
  25. mattos123 postou uma resposta no tópico em Suporte Tibia OTServer
    Boa noite, venho aqui trazer uma duvida , estou sem tempo para tentar solucionar o problema, e venho aqui pedir ajuda de voces Utilizando o script: Em um servidor otx 2.7 (tfs 0.4) o script funciona normalmente, porem me retorna os seguintes erros.

Informação Importante

Confirmação de Termo