Ir para conteúdo

Featzen

Membro
  • Registro em

  • Última visita

  1. Alecrim reagiu a uma resposta no tópico: [PDA] Held Items Com Tiers
  2. 685 willamis reagiu a uma resposta no tópico: [PDA] Held Items Com Tiers
  3. DarkRed reagiu a uma resposta no tópico: [PDA] New Ditto System(Igual PXG)
  4. Kramer começou a seguir Featzen
  5. Can you send here the CONFIGURE file? So we can analyze the requeriments and how is it finding the files.
  6. ericles reagiu a uma resposta no tópico: Aumentar limite de efeitos
  7. Malditto reagiu a uma resposta no tópico: Smeargle System[PXG]
  8. GrayFang reagiu a uma resposta no tópico: Smeargle System[PXG]
  9. OLOSTER GAMES reagiu a uma resposta no tópico: [PDA] Held Items Com Tiers
  10. Erro de digitação meu, atualizei a resposta, só substituir
  11. Mande o script /modules/client_background/background.lua. (Please, dentro de um spoiler)
  12. Editei a resposta.
  13. Featzen postou uma resposta no tópico em Suporte Tibia OTServer
    Cria um evento normal, e dentro da função dele, adicione isto: local day = os.date("%A") if day ~= "Tuesday" and day ~= "Saturday" then return true end Tuesday é terça, saturday é sabado. os.date("%A") retorna o dia da semana em forma de string.
  14. Arquivo errado. É no "data/lib/catch system.lua". Em baixo de: doItemSetAttribute(item, "poke", poke) Adiciona: if typeee == "dark" then doItemSetAttribute(item, 'boost', 20) end
  15. local items = { --[numeração] = {id = ID DO ITEM, count = QUANTIDADE DO ITEM, c = CHANCE} [1]={id=5892, count=1, c=10}, -- item 1 [2]={id=2139, count=1, c=20}, -- item 2 [3]={id=10503, count=1, c=30}, -- item 3 [4]={id=2141, count=1, c=40}, -- item 4 [5]={id=12596, count=1, c=50}, -- item 5 [6]={id=12469, count=1, c=60}, -- item 6 } function getRandomItem(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.c then return i end return getRandomItem(t) end function onUse(cid, item, fromPosition, itemEx, toPosition) local i = getRandomItem(items) doPlayerAddItem(cid, i.id, i.count) doSendAnimatedText(getPlayerPosition(cid), "Box!", TEXTCOLOR_GREEN) doPlayerSendTextMessage(cid, 27, "Você abriu uma Box e Ganhou "..i.count.."x "..getItemNameById(i.id)..(i.count > 1 and "s" or "")..".") doRemoveItem(item.uid, 1) return true end
  16. amoxicilina começou a seguir Featzen
  17. Não sei bem onde o arquivo tem que estar, porquê tô sem nenhum ot aqui, mas botei pra o script criar um arquivo caso não exista, provavelmente vai ficar na pasta da executável ou no creaturescripts. function getTableFromFile(filename) local t = {} local f = io.open(file, "rb") if f then f:close() end if f == nil then f = io.open("recusar.txt", "wb") f:close() end for line in io.lines(filename) do table.insert(t, line) end return t end local config = { max = 1, } local function antiMC(p) if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then doRemoveCreature(p.pid) end return true end function onLogin(cid) local recusar = getTableFromFile('recusar.txt') if isInArray(recusar,getCreatureName(cid)) then addEvent(antiMC, 1000, {pid = cid, max = config.max+1}) end return true end No arquivo de texto, bota um nome por linha. Espero que tenha ajudado \o
  18. Apareceu notificação, e respondi. Não era pra ter nada aqui. KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
  19. Descubra onde esses storages estão sendo usados no seu servidor: 13241 e 102015 (Se quiser remover essas proteções do script, apague essas linhas): if getPlayerStorageValue(cid, 102015) == -1 or getPlayerStorageValue(cid,13241) == 1 then return false end
  20. Se postar o script atual do npc, posso tentar ajudar.
  21. Não tenho como testar, mas acho que deve funcionar adicionando: shareExperience = shareExperience * 2; Em baixo de: uint32_t shareExperience = static_cast<uint64_t>(std::ceil(((static_cast<double>(experience) / (memberList.size() + 1)) + (static_cast<double>(experience) * extraExpRate))));
  22. Acho que seria melhor usar globalStorage. Mas, aí está as funções que precisa, e um exemplo. function tableToString(t) -- Transforma uma tabela em string return ("{'" .. table.concat(t, "','") .. "'}") end function setFileTable(filename, t) -- Salva uma tabela em um arquivo local tmpStr = tableToString(t) local f = io.open(filename, "wb") f:write(tmpStr) f:close() end function getFileTable(filename) -- Carrega uma tabela de um arquivo local fileStr = "" local f = io.open(filename, "rb") fileStr = f:read("*a") f:close() if fileStr then return loadstring("return " .. fileStr)() end return {} end -- Exemplo de uso local exTable = {"Joao", "Pedro", "Lucas", "Derp"} setFileTable("test.txt", exTable) local exTable2 = getFileTable("test.txt") print(tableToString(exTable2)) edit: Não esquece de pôr a declaração da variável "recusar" dentro do onLogin.
  23. Featzen postou uma resposta no tópico em Formação de Equipe
    Projeto interessante. Sou programador(e scripter(??)), se ainda estiver precisando, me adicione. Skype: gabriel.sales.01

Informação Importante

Confirmação de Termo