Ir para conteúdo

DukeeH

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    DukeeH recebeu reputação de Gabrielx17 em Database nova   
    8.6 provavelmente é o 0.4
    Pode pegar ali no link que passei do 0.4
  2. Gostei
    DukeeH recebeu reputação de Nysman em como tirar erros!!!   
    A casa com aquele nome não tem uma saída definida no map editor (House pallete e achar ela, clicar em house exit, e clicar na frente da porta.)
     
    Precisaria do script conected.lua que esta na pasta creaturescripts/scripts.
  3. Gostei
    DukeeH recebeu reputação de Leandro Vidal Martins em (Resolvido)Help na magia Utito tempo san   
    posta o script e a tag do spells.xml
    mas no global o utito tempo san exhausta tanto as magias de support quanto as de cura, só deixando as de ataque, por isso.
  4. Obrigado
    DukeeH recebeu reputação de Rogex Joyz em Attack Speed   
    Pode começar por: creature.h
    #define EVENT_CREATURE_THINK_INTERVAL Reduzir esse valor para o tanto de attackspeed que quiser utilizar, em alguns casos ja resolve, se não é mais complexo.
  5. Curtir
    DukeeH recebeu reputação de klessioooo em [PEDIDO]Como dexar a spell balanceada   
    Concordo que as funções padrão são bem ruins de entender/balancear.
    Usar callbacks fica bem mais simples...
    Um exemplo:
    function onGetFormulaValues(cid, level, maglevel) local levelTotal = level / 5 local min = levelTotal + (maglevel * 8) + 50 local max = levelTotal + (maglevel * 12) + 75 return -min, -max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") Você consegue saber exatamente o dano minimo e maximo, apenas fazendo a conta ali que está clara.
  6. Gostei
    DukeeH recebeu reputação de Marcos FeaR em CAST NAO FUNCIONA   
    Como o @mateusmoretti falou, caso você use otx, tem que criar uma conta nova, ai edita ela na database e deixa acc: 10, sem senha.
    Ai quando você aperta enter no client ele vai direcionar pra essa account 10 que vai ter os casts aberto.
  7. Curtir
    DukeeH recebeu reputação de Rian LHP em [pedido] Scripts Anti-Push Treiner   
    Desculpa, esqueci de você. Estranho, uso ele exatamente assim no meu server, mas no seu ta faltando um end.
     
    local targetList, GAMEMASTER = {"Target Dummy"}, 5 function onPush(cid, target) if(getPlayerAccess(cid) < GAMEMASTER) then if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()))) then doPlayerSendCancel(cid, "You cannot move this object.") return false end end end return true end  
  8. Curtir
    DukeeH recebeu reputação de Tadelho em (AJUDA) vocação de cria items por certos items   
    <instant name="Criar item" words="criaritem" lvl="50" mana="50" aggressive="0" selftarget="1" exhaustion="800" groups="3,800" needlearn="0" event="script" value="criaritem.lua"> <vocation id="1"/> <vocation id="5"/> </instant> function onCastSpell(cid, var) local itensqueprecisa = { [1] = {itemID = 111111, itemCount = 1111}, [2] = {itemID = 111111, itemCount = 1111}, [3] = {itemID = 111111, itemCount = 1111} } local itensquerecebe = { item_ID = 111111, item_count = 1111 } count = 0 for i = 1, #itensqueprecisa do if getPlayerItemCount(cid, itensqueprecisa[i].itemID) >= itensqueprecisa[i].itemCount then count = count + 1 else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You require more ".. getItemNameById(itensqueprecisa[i].itemID) .."'s to successfully convert items.") break end end table_count = 0 for k,v in pairs(itensqueprecisa) do table_count = table_count + 1 end if table_count ~= count then return true end for i = 1, #itensqueprecisa do doPlayerRemoveItem(cid, itensqueprecisa[i].itemID, itensqueprecisa[i].itemCount) end stack = 0 if isItemStackable(itensquerecebe.item_ID) == true then stack = stack + 1 end if stack == 1 then doPlayerAddItem(cid, itensquerecebe.item_ID, itensquerecebe.item_count, true) else repeat doPlayerAddItem(cid, itensquerecebe.item_ID, 1, true) stack = stack + 1 until stack == (itensquerecebe.item_count) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have received ".. itensquerecebe.item_count .." ".. getItemNameById(itensquerecebe.item_ID) ..".") doPlayerAddExp(cid, 20) doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN) return true end  
  9. Gostei
    DukeeH recebeu reputação de edustyle em (Resolvido)Inserir Anúncio   
    Topo em vermelho não é uma opção, só centro da tela em vermelho, pois são usados os tipos de broadcast do tibia, como eu falei no post acima, pra deixar em vermelho, tira o ,12 no final da linha.
    Mas infelizmente não é possível mudar a posição, apenas cor/estilo.
  10. Curtir
    DukeeH recebeu reputação de Vodkart em UNIQUE ID   
    local velocidade = 0.9 local life = 0.30 local periodo = 1.5 -- tempo em segundos condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, periodo*1000) setConditionFormula(condition, -velocidade, 0, -velocidade, 0) function onStepIn(cid, item, pos, fromPos) if isPlayer (cid) then if item.itemid == 1050 then if isPlayerPzLocked(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Você perdeu 25% de life e levou paralyze por utilizar a escada com pz.") doAddCondition(cid,condition) doCreatureAddHealth(cid,-(getCreatureHealth(cid)*life)) end end end return true end  
     
  11. Curtir
    DukeeH recebeu reputação de theeusata55 em UNIQUE ID   
    local velocidade = 0.9 local life = 0.30 local periodo = 1.5 -- tempo em segundos condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, periodo*1000) setConditionFormula(condition, -velocidade, 0, -velocidade, 0) function onStepIn(cid, item, pos, fromPos) if isPlayer (cid) then if item.itemid == 1050 then if isPlayerPzLocked(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Você perdeu 25% de life e levou paralyze por utilizar a escada com pz.") doAddCondition(cid,condition) doCreatureAddHealth(cid,-(getCreatureHealth(cid)*life)) end end end return true end  
     
  12. Gostei
    DukeeH recebeu reputação de edustyle em (Resolvido)Inserir Anúncio   
    @edustyle
    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 function doChangeWeapon(cid, message, keywords, parameters, node) -- by vodka if(not npcHandler:isFocused(cid)) then return false end if (isPlayerPremiumCallback == nil or isPlayerPremiumCallback(cid) == true or parameters.premium == false) then if(parameters.level ~= nil and getPlayerLevel(cid) < parameters.level) then npcHandler:say('Desculpe, voce precisa ter level ' .. parameters.level .. ' ou mais para forjar este item.', cid) elseif not doRemoveItemsFromList(cid,parameters.items) then npcHandler:say('Desculpe, mas voce nao tem '..getItemsFromList(parameters.items)..' para forjar este item!', cid) else local r = parameters.chance local v = math.random(1, 100) if r > v then npcHandler:say('Sucesso! Aqui esta seu item.', cid) local iname = getItemNameById(parameters.give) doBroadcastMessage("[Sistema de Forja]\nO jogador "..getCreatureName(cid).." acabou de forjar o item "..iname..".", 22) doPlayerAddItem(cid,parameters.give,1) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) else npcHandler:say('Desculpe, mas seu item falho na forja!', cid) doSendMagicEffect(getPlayerPosition(cid), 2) end npcHandler:resetNpc() end else npcHandler:say('Desculpe, mas apenas forjo esse item para jogadores premium account.', cid) end npcHandler:resetNpc() return true end local list = { {"broken sword", items = {{12766,100}}, item_give = 12756, chance = 100, level = 8, premium = false}, {"broken axe", items = {{12766,100}}, item_give = 12759, chance = 100, level = 8, premium = false}, {"broken club", items = {{12766,100}}, item_give = 12758, chance = 100, level = 8, premium = false}, {"broken staff", items = {{12766,100}}, item_give = 12757, chance = 100, level = 8, premium = false}, {"broken spear", items = {{12766,100}}, item_give = 12760, chance = 100, level = 8, premium = false}, {"noob sword", items = {{12756,1},{12761,100}}, item_give = 12733, chance = 100, level = 8, premium = false}, {"noob axe", items = {{12759,1},{12761,100}}, item_give = 12731, chance = 100, level = 8, premium = false}, {"noob club", items = {{12758,1},{12761,100}}, item_give = 12732, chance = 100, level = 8, premium = false}, {"noob staff", items = {{12757,1},{12761,100}}, item_give = 12734, chance = 100, level = 8, premium = false}, {"noob star", items = {{12760,1},{12761,100}}, item_give = 12735, chance = 100, level = 8, premium = false}, {"elite sword", items = {{12733,1},{12762,200}}, item_give = 12728, chance = 100, level = 8, premium = false}, {"elite axe", items = {{12731,1},{12762,200}}, item_give = 12726, chance = 100, level = 8, premium = false}, {"elite club", items = {{12732,1},{12762,200}}, item_give = 12727, chance = 100, level = 8, premium = false}, {"elite staff", items = {{12734,1},{12762,200}}, item_give = 12729, chance = 100, level = 8, premium = false}, {"elite star", items = {{12735,1},{12762,200}}, item_give = 12730, chance = 100, level = 8, premium = false}, {"epic sword", items = {{12728,1},{12763,300}}, item_give = 12723, chance = 100, level = 8, premium = false}, {"epic axe", items = {{12726,1},{12763,300}}, item_give = 12721, chance = 100, level = 8, premium = false}, {"epic club", items = {{12727,1},{12763,300}}, item_give = 12722, chance = 100, level = 8, premium = false}, {"epic staff", items = {{12729,1},{12763,300}}, item_give = 12724, chance = 100, level = 8, premium = false}, {"epic crossbow", items = {{12730,1},{12763,300}}, item_give = 12725, chance = 100, level = 8, premium = false}, {"legendary sword", items = {{12723,1},{12764,400}}, item_give = 12718, chance = 100, level = 8, premium = false}, {"legendary axe", items = {{12721,1},{12764,400}}, item_give = 12716, chance = 100, level = 8, premium = false}, {"legendary club", items = {{12722,1},{12764,400}}, item_give = 12717, chance = 100, level = 8, premium = false}, {"legendary staff", items = {{12724,1},{12764,400}}, item_give = 12719, chance = 100, level = 8, premium = false}, {"legendary crossbow", items = {{12725,1},{12764,400}}, item_give = 12720, chance = 100, level = 8, premium = false}, {"ultimate sword", items = {{12718,1},{12765,500}}, item_give = 12668, chance = 100, level = 8, premium = false}, {"ultimate axe", items = {{12716,1},{12765,500}}, item_give = 12666, chance = 100, level = 8, premium = false}, {"ultimate club", items = {{12717,1},{12765,500}}, item_give = 12667, chance = 100, level = 8, premium = false}, {"ultimate staff", items = {{12719,1},{12765,500}}, item_give = 12669, chance = 100, level = 8, premium = false}, {"ultimate crossbow", items = {{12720,1},{12765,500}}, item_give = 12670, chance = 100, level = 8, premium = false}, {"itens", text = "Eu posso forjar alguns itens como: {broken sword},{broken axe},{broken club},{broken staff},{broken spear},{noob sword},{noob axe},{noob club},{noob staff},{noob star},{elite sword},{elite axe},{elite club},{elite staff},{elite star},{epic sword},{epic axe},{epic club},{epic staff},{epic crossbow},{legendary sword},{legendary axe},{legendary club},{legendary staff},{legendary crossbow},{ultimate sword},{ultimate axe},{ultimate club},{ultimate staff} ou {ultimate crossbow}!"} } for i = 1, #list do local get = list if type(get.items) == "table" then local node = keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Para forjar o item " .. get[1] .. " e necessario "..getItemsFromList(get.items)..". Voce tem tudo isso para me dar?"}) node:addChildKeyword({"yes"}, doChangeWeapon, {items = get.items, give = get.item_give, chance = get.chance, level = get.level, premium = get.premium}) node:addChildKeyword({"no"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "tudo bem entao.", reset = true}) else keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = get.text}) end end mounts = nil npcHandler:addModule(FocusModule:new())  
  13. Gostei
    DukeeH recebeu reputação de kaioboyy em (AJUDA) vocação de cria items por certos items   
    Exatamente como o @ernaix69 falou, tem grupos de exhaust, sendo 1 ataque, 2 heal, 3 support. 
    Então se você usar essa magia, você vai afetar o grupo 3 por 0,8s. Podendo por exemplo usar sd, cura enquanto isso.
    Não sei se seu servidor suporta os grupos, usei a tag padrão do meu aqui.
  14. Gostei
    DukeeH recebeu reputação de kaioboyy em (AJUDA) vocação de cria items por certos items   
    <instant name="Criar item" words="criaritem" lvl="50" mana="50" aggressive="0" selftarget="1" exhaustion="800" groups="3,800" needlearn="0" event="script" value="criaritem.lua"> <vocation id="1"/> <vocation id="5"/> </instant> function onCastSpell(cid, var) local itensqueprecisa = { [1] = {itemID = 111111, itemCount = 1111}, [2] = {itemID = 111111, itemCount = 1111}, [3] = {itemID = 111111, itemCount = 1111} } local itensquerecebe = { item_ID = 111111, item_count = 1111 } count = 0 for i = 1, #itensqueprecisa do if getPlayerItemCount(cid, itensqueprecisa[i].itemID) >= itensqueprecisa[i].itemCount then count = count + 1 else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You require more ".. getItemNameById(itensqueprecisa[i].itemID) .."'s to successfully convert items.") break end end table_count = 0 for k,v in pairs(itensqueprecisa) do table_count = table_count + 1 end if table_count ~= count then return true end for i = 1, #itensqueprecisa do doPlayerRemoveItem(cid, itensqueprecisa[i].itemID, itensqueprecisa[i].itemCount) end stack = 0 if isItemStackable(itensquerecebe.item_ID) == true then stack = stack + 1 end if stack == 1 then doPlayerAddItem(cid, itensquerecebe.item_ID, itensquerecebe.item_count, true) else repeat doPlayerAddItem(cid, itensquerecebe.item_ID, 1, true) stack = stack + 1 until stack == (itensquerecebe.item_count) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have received ".. itensquerecebe.item_count .." ".. getItemNameById(itensquerecebe.item_ID) ..".") doPlayerAddExp(cid, 20) doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN) return true end  
  15. Gostei
    DukeeH recebeu reputação de Polguilo em (Resolvido)[AJUDA - SCRIPT] Bug no Target 8.60 + Auto Stack Item   
    Que erros deu? É normal que não funcionasse de cara, porque você trocou o executável, mas pode ser que sejam coisas tranquilas de arrumar.
    Me manda o que acontece quando você abre o .exe que mandei,
  16. Gostei
    DukeeH recebeu reputação de Polguilo em (Resolvido)[AJUDA - SCRIPT] Bug no Target 8.60 + Auto Stack Item   
    @Polguilo
    Não sei qual distro esse server usa, mas ambos os erros que falou são da source, provavelmente você não sabe compilar e o server veio com uma distro ruim.
    A distro seria o executável, que você abre o server.
    Você poderia tentar ver qual o executável que veio e/ou se você tem as sources.
     
    Mas uma possivel solução seria você usar o seguinte executavel:
    Link: https://github.com/Fir3element/binaries/blob/master/x32.rar
    Scan: https://www.virustotal.com/pt/file/2ae89cd10781e7dbacb8864a90812dd39ed32c29996ee65690ef8743d50d763c/analysis/1454415506/
     
    Créditos @Fir3element
     
    É a melhor distro 8.6 disponivel no forum, esses bugs que falou e outros já vão estar corrigidos.
  17. Obrigado
    DukeeH recebeu reputação de Polguilo em (Resolvido)[AJUDA - SCRIPT] Bug no Target 8.60 + Auto Stack Item   
    Vamos fixar essa, depois você vai agradecer, quando tiver tudo certo.
     
    data/talkactions/talkactions.xml, apaga as linhas  dos comandos /t e /town. E adiciona como estão abaixo:
    <talkaction log="yes" words="/t" access="3" event="script" value="teleporttown.lua"/> <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/> data/talkactions/scripts/teleporttown.lua
    function onSay(cid, words, param, channel) local master = false if(words == '/t') then master = true elseif(param == '') then local str = "" for i, town in ipairs(getTownList()) do str = str .. town.name .. "\n" end doShowTextDialog(cid, 2160, str) return true end local tid, t = cid, string.explode(param, ",") if(t[(master and 1 or 2)]) then tid = getPlayerByNameWildcard(t[(master and 1 or 2)]) if(not tid or (isPlayerGhost(tid) and getPlayerAccess(tid) > getPlayerAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[(master and 1 or 2)] .. " not found.") return true end end local tmp = getPlayerTown(cid) if(not master) then tmp = t[1] if(not tonumber(tmp)) then tmp = getTownId(tmp) if(not tmp) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Town " .. t[1] .. " does not exists.") return true end end end local pos = getTownTemplePosition(tmp) if(type(pos) ~= 'table' or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Town " .. t[1] .. " does not exists or has invalid temple position.") return true end pos = getClosestFreeTile(tid, pos) if(type(pos) ~= 'table' or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.") return true end tmp = getCreaturePosition(tid) if(doTeleportThing(tid, pos) and not isPlayerGhost(tid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end return true end Referente a speed do god, você usa sql ou sqlite? Da pra editar na database a speed acho.
    Mas quando for andar anda com o ctrl apertado, é uma função boa.
  18. Haha
    DukeeH recebeu reputação de Belmont em [Anti Mc] Para Portais   
    Nesse script ai você não consegue botar a limitação, tem que colocar no portal em si.
    Colocar uma actionid no teleport que é criado, se não tiver esse ip lá, ele teleporta, se não, ele faz o boneco voltar.
     
    Poderia ter procurado um pouco:
     
     
     
  19. Gostei
    DukeeH recebeu reputação de Polguilo em (Resolvido)[AJUDA - SCRIPT] Bug no Target 8.60 + Auto Stack Item   
    Pode ser que algo pare de funcionar, como é o caso do mapa, globalevents, mas tem como ajustar tudo.
    E você estará usando uma distro muito mais estavel e com ótimas funções, auto-stack, warsystem... Sem bugs..
    Vai postando o que da de erro ou problema que nós vamos ajudando no que puder.
  20. Curtir
    DukeeH recebeu reputação de ernaix69 em Nuker   
    Se bloqueia acesso ao site e jogo, é DoS ou DDoS, caso fosse apenas a queda do servidor, seria script.
  21. Haha
    DukeeH recebeu reputação de Apache em Nuker   
    Na verdade você deve estar confundido.
    Se for DoS (é um único atacante) o ban ip que o @Brunds falou, vai funcionar.
    Se for DDoS (distrubuido) seria iptables.
  22. Gostei
    DukeeH recebeu reputação de DouglasVinicius em (Resolvido)Paladin erra muito dano   
    @DouglasVinicius
    data/items/items.xml
    Procura por exemplo a Spear, e adiciona:
    <attribute key="hitChance" value="80" /> E ai testa vê se muda algo.
  23. Curtir
    DukeeH recebeu reputação de ExtremyDsgnr em (Resolvido)Gesior fora de esquadro   
    @ExtremyDsgnr
    Favor testar e me mandar print caso não tenha dado, estou sem ter como testar.
    Não entendi o erro da pagina de castle que você falou.
     
     
  24. Gostei
    DukeeH recebeu reputação de matheus1234567 em (Resolvido)Função para adicionar premium points   
    @matheus1234567
    data/libs/050-function.lua
    function addPoint(uid, count)     local accountPoints = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `name` = '" .. getPlayerAccount(uid) .. "' LIMIT 1;")     local points = tonumber(accountPoints:getDataInt("premium_points"))     db.executeQuery("UPDATE `accounts` SET `premium_points` = " .. points + count .. " WHERE `name`='" .. getPlayerAccount(uid) .. "' LIMIT 1;") end   function removePoint(uid, count)     local accountPoints = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `name` = '" .. getPlayerAccount(uid) .. "' LIMIT 1;")     local points = tonumber(accountPoints:getDataInt("premium_points"))     db.executeQuery("UPDATE `accounts` SET `premium_points` = " .. points - count .. " WHERE `name`='" .. getPlayerAccount(uid) .. "' LIMIT 1;") end
  25. Curtir
    DukeeH deu reputação a FlavioHulk em Os melhores packs 860 Antigos e Atuais ...   
    Engraçado como funciona a hipocrisia...
    Fulano é mercenário pois cobra por serviço, entendam só... Fulano passou horas e horas estudando, falhando, desanimando pra aprender aquilo e se aperfeiçoar... Fulano tem total direito de cobrar pelo seu serviço sim, há uma diferença entre serviço pronto e ajuda, geralmente só vejo pedidos de scripts prontos, nem o favor de testar antes, ou tentar corrigir por si só, já que isso aumenta seu aprendizado...
    Outra, por que vocês colocam donate, items vip pra vender no OTSERV? Querem retorno, querem ganhar dinheiro, entendeu onde está a hipocrisia? Se não quer ser cobrado por tempo e aprendizado, aprendam, tentem que eu digo a vocês, será bem mais satisfatório!
    Boa sorte a todos com seus otservers, e digo mais uma vez, isso é um dos motivos mais fortes de o Open Tibia estar se extinguindo...

Informação Importante

Confirmação de Termo