Ir para conteúdo

Duality

Membro
  • Registro em

  • Última visita

Tudo que Duality postou

  1. Duality postou uma resposta no tópico em Suporte Tibia OTServer
    Queria galera queria um script que quando o player usasse X item ele perdesse 200 de speed e ganhasse 30K de regen de mana e hp por 1 hora, lembrando que o item deve sumir quando usado e um script para quando o player deslogar ou morrer o efeito terminar. EDIT: Também que durante esse tempo a cada 10s ele fala uma frase Speed = -200 HP = 30K/s MP = 30K/s Time = 1H
  2. @pablobion Cara fiz o que você mandou, mas não está removendo o storage ao logar e deslogar e nem quando morre.
  3. @pablobion é uma solução boa, me ajudaria, não teria como fazer o script só tirar o storage quando reiniciar o OT? mas se puder fazer agradeceria.
  4. @pablobion demorou, vou esperar um divino me ajudar, vlw
  5. @pablobion Salva sim. Realmente, meu raciocínio foi esse, quando eu abro o servidor ele não remove o storage do player, teria como fazer ele remover o storage do player quando abrir o OT?
  6. @pablobion Testei deslogando e logando o char e morrendo tbm, o Exp potion funciona normal mesmo morrendo ou deslogando, só esta com problema quando fecho o OT
  7. Galera, estou usando um MOD para exp potion, está funcionando perfeitamente, mas único problema é que quando o player esta com EXP Potion ativo e eu fecho o servidor e após abrir novamente, o player vai usar o EXP Potion novamente, e aparece a mensagem que eu já estou com o POT de XP ativo, porém o XP do Potion não está funcionando e eu não consigo usar outro. Script: <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="XTibia.com"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 1, ---- TIME IN MINUTES needpa = false, needlvl = {TRUE, level = 50}, costmana = {FALSE, mana = 300}, addrate = 100, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="2008" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "Voce ja ta Sob o Efeito da Potion.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "Voce Precisar ser Premium Para Usar") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "Voce Precisa ser " .. configs.needlvl.level .. " Para usar a Potion.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "Voce Precisar ter " .. configs.costmana.mana .. " de Mana Para usar a Potion") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "Efeito Final da Pocao de EXP.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "O Efeito da Pocao vai acabar em "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Agora Voce Esta Recebendo mais EXP por Matar Monstros.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "O Efeito da Potion Termina em.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "O Efeito da Potion Termina em "..a..".") end end return TRUE ]]></creaturescript> </mod>
  8. @Sekk Liguei o servidor quando fui upar o level max começou dar esse erro, depois fechou o servidor [20:13:31.629] [Error - CreatureScript Interface] [20:13:31.631] data/creaturescripts/scripts/maxlevel.lua:onAdvance [20:13:31.632] Description: [20:13:31.633] data/creaturescripts/scripts/maxlevel.lua:9: attempt to call global 'getPlayerVocationId' (a nil value) [20:13:31.633] stack traceback: [20:13:31.634] data/creaturescripts/scripts/maxlevel.lua:9: in function <data/creaturescripts/scripts/maxlevel.lua:8>
  9. @Sekk precisa adicionar no login? <event type="login" name="MaxLevel" event="script" value="maxlevel.lua"/>
  10. Estou utilizando servidor do Kojack de DBO, e alguns players acharam um bug para mudar de "vocação", eles conseguiram mudar a outfit do personagem e ficam muito forte, mas fui olhar na database, continuam com a mesma vocação antes de usar o bug e a outfit voltou ao normal.
  11. Já testo. @x1zy adiciono ele em qual pasta?
  12. Galera alguém poderia me passar um script de level max por vocação Exemplo: Vocação de ID 1, 2 3, 4, 5, 6 = level max 500 Vocação de ID 7, 8, 9, 10 = level max 600 Vocação de ID 11, 12 ,13, 14, 15 = level max 700 Alguem?
  13. Galera tenho um servidor de DBO gostaria de saber como eu faço pra colocar delay no atk de arco e flecha, tipo o cara upa speed e fica atacando muito rapido, mesmo eu colocando o speed da arma menor, ele ignora o codigo do item e ainda ataca super rapido. Colocando isso no bow e na bolt: <attribute key="attackspeed" value="1500"/> o atk continua muito fast, alguem sabe como diminuir o atk da arma mesmo com speed alto?
  14. Duality postou uma resposta no tópico em Suporte Tibia OTServer
    Quando eu clico para visualizar uma guild, para ver os players que tem nela, aparece isso. A PHP Error was encountered Severity: Notice Message: Undefined index: account_id Filename: models/guilds_model.php Line Number: 82 Consigo ver a info da guild, mas acima fica com esse erro.
  15. @luangop Funcionou dei rep+, porém gostaria q ele fosse um pouco diferente, tipo só queria q ele funcionasse em area PZ, onde tem protect zone, tipo o cara da fora da protect zone, msm sem battle ele nao pode da !fly, somente em area PZ
  16. Quero um script que você digite !fly em area PZ e o player é teleportado para um lugar especifico. o script só precisa conter um destino e o player fala !fly e teleporta para la, vlw
  17. Galera eu consegui arrumar o script, se alguém estiver procurando um script de blessing de DBO onde todas as blessing seja free está ai. MODERADOR MOVE MEU TOPICO PARA AREA CORRETA PF. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return FALSE end if msgcontains(msg, "first") or msgcontains(msg, "first bless") or msgcontains(msg, "primeira bless") or msgcontains(msg, "primeira") then selfSay("Deseja pagar 10 golds pela primeira blessing?", cid) talkState[cid] = 1 elseif msgcontains(msg, 'yes') and talkState[cid] == 1 then if not getPlayerBlessing(cid, 1) then if doPlayerRemoveMoney(cid, 100000) then doPlayerAddBlessing(cid, 1) selfSay("Voce adquiriu a primeira blessing.", cid) talkState[cid] = 0 else selfSay("Voce nao possui dinheiro suficiente.", cid) end else selfSay("Voce ja possui a primeira blessing.", cid) end elseif msgcontains(msg, 'no') and talkState[cid] == 1 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end if msgcontains(msg, "second") or msgcontains(msg, "second bless") or msgcontains(msg, "segunda bless") or msgcontains(msg, "segunda") then selfSay("Deseja pagar 10 golds pela segunda blessing?", cid) talkState[cid] = 2 elseif msgcontains(msg, "yes") and talkState[cid] == 2 then if not getPlayerBlessing(cid, 2) then if doPlayerRemoveMoney(cid, 100000) then doPlayerAddBlessing(cid, 2) selfSay("Voce adquiriu a segunda blessing.", cid) talkState[cid] = 0 else selfSay("Voce nao possui dinheiro suficiente.", cid) end else selfSay("Voce ja possui a segunda blessing.", cid) end elseif msgcontains(msg, 'no') and talkState[cid] == 2 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end if msgcontains(msg, "third") or msgcontains(msg, "third bless") or msgcontains(msg, "terceira bless") or msgcontains(msg, "terceira") then selfSay("Deseja pagar 10 golds pela terceira blessing?", cid) talkState[cid] = 3 elseif msgcontains(msg, "yes") and talkState[cid] == 3 then if not getPlayerBlessing(cid, 3) then if doPlayerRemoveMoney(cid, 100000) then doPlayerAddBlessing(cid, 3) selfSay("Voce adquiriu a terceira blessing.", cid) talkState[cid] = 0 else selfSay("Voce nao possui dinheiro suficiente.", cid) end else selfSay("Voce ja possui a terceira blessing.", cid) end elseif msgcontains(msg, 'no') and talkState[cid] == 3 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end if msgcontains(msg, "fourth") or msgcontains(msg, "fourth bless") or msgcontains(msg, "quarta bless") or msgcontains(msg, "quarta") then selfSay("Deseja pagar 10 golds pela quarta blessing?", cid) talkState[cid] = 4 elseif msgcontains(msg, "yes") and talkState[cid] == 4 then if not getPlayerBlessing(cid, 4) then if doPlayerRemoveMoney(cid, 100000) then doPlayerAddBlessing(cid, 4) selfSay("Voce adquiriu a quarta blessing.", cid) talkState[cid] = 0 else selfSay("Voce nao possui dinheiro suficiente.", cid) end else selfSay("Voce ja possui a quarta blessing.", cid) end elseif msgcontains(msg, 'no') and talkState[cid] == 4 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end if msgcontains(msg, "fifth") or msgcontains(msg, "fifth bless") or msgcontains(msg, "quinta bless") or msgcontains(msg, "quinta") then selfSay("Deseja pagar 10 golds pela quinta blessing?", cid) talkState[cid] = 5 elseif msgcontains(msg, "yes") and talkState[cid] == 5 then if not getPlayerBlessing(cid, 5) then if doPlayerRemoveMoney(cid, 100000) then doPlayerAddBlessing(cid, 5) selfSay("Voce adquiriu a quinta blessing.", cid) talkState[cid] = 0 else selfSay("Voce nao possui dinheiro suficiente.", cid) end else selfSay("Voce ja possui a quinta blessing.", cid) end elseif msgcontains(msg, 'no') and talkState[cid] == 5 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end local bless = {1, 2, 3, 4, 5} if msgcontains(msg, "all") or msgcontains(msg, "all blessings") or msgcontains(msg, "todas as bless") or msgcontains(msg, "todas") then selfSay("Deseja pagar 50 golds por todas blessings?", cid) talkState[cid] = 6 elseif msgcontains(msg, "yes") and talkState[cid] == 6 then for i = 1, table.maxn(bless) do if getPlayerBlessing(cid, bless[i]) then return selfSay("Voce ja possui todas blessings.", cid) end end if not doPlayerRemoveMoney(cid, 500000) then return selfSay("Voce nao possui dinheiro suficiente.", cid) end local bless = {1, 2, 3, 4, 5} selfSay("Voce adquiriu todas as blessings.", cid) talkState[cid] = 0 for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) end elseif msgcontains(msg, 'no') and talkState[cid] == 6 then selfSay("Qual voce deseja entao?", cid) talkState[cid] = 0 end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  18. @RathBR eu fiz isso, mas tem muita coisa escrito como Tibia
  19. @RathBR quero modificar o TIBIA no cabeçalho, tem algum tutorial por aqui?
  20. Como mudo o nome do OLD Client? Mudar de Tibia no cabeçalho, para outro nome Foto: http://i.imgur.com/hZUmjzd.png Obrigado
  21. @vankk estou disposto a pagar, você manja?
  22. Estou com um servidor quase pronto de DBO, só preciso arrumar alguns bugs que estão fazendo servidor cair, se alguém quiser entrar para equipe. Nome?: Idade?: Cidade: Estado: Quanto tempo mexe com programação? já mexeu com outras coisas além de programação?: Já trabalhou em outros ots, quanto tempo?: Estou precisando urgentemente, estou disposto a pagar pelo serviço. Skype: bru.niiinho1
  23. @THGSanttos Vlw mano, agradece.
  24. @THGSanttos vlw mano, esse DBO Hunter, eu baixei o 2016 e estava com bugs de crash derrubando o server, sabe me dizer se esse 2015 está com o mesmo problema?
  25. Galera, eu abri um servidor de DBO na VPS e tem alguns bugs que faz o servidor fechar sozinho, alguem sabe algum servidor q está disponivel no TK e que esta muito bom para deixar online em linux ubuntu?

Informação Importante

Confirmação de Termo