Ir para conteúdo

Cazuza

Membro
  • Registro em

  • Última visita

Tudo que Cazuza postou

  1. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Perdão tenta assim: if getPlayerStorageValue(cid, 3624) <= 0 then
  2. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    é brother
  3. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Só adiciona isto no creaturescripts: <event type="logout" name="BIKE" event="script" value="Bike.lua"/> function onLogout(cid) if getPlayerStorageValue(cid, 3624) >= 0 then return false end return true end
  4. function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") end return true end Tu so quer deixar infinito? testa agora.
  5. Ainda quer isto? Se quiser avise que eu faço para você. é bem simples, não sei como ninguém te ajudou ainda.
  6. Cara esta é a versão mais barbada, até 8.60 se não me engana, há diversos programas para mudar. É só procurar, mas enfim vou te mandar um site para ti criar:http://vapus.net/customclient
  7. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Obrigado. Avisa sim, qualquer coisa eu ajeito.
  8. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local target_lvl = getPlayerLevel(target) -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce foi punido por matar alguem do mesmo IP e não ganha lvl") return TRUE else if lvl < target_lvl then -- Quem mata é menor do que de quem morre if (lvl - target_lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (lvl - target_lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 7) end if (lvl - target_lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 9) end if (lvl - target_lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 11) end if (lvl - target_lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 15) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end if lvl > target_lvl then -- Quem mata é maior do que de quem morre if (target_lvl - lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (target_lvl - lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 4) end if (target_lvl - lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 3) end if (target_lvl - lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 2) end if (target_lvl - lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 1) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end end end doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) return TRUE end Faltou um end, testa.
  9. Bá velho até faria mas é uma mão. Sem falar que se algum deles morrer, vai dar erro. Pois vai usar um addevent para retornar e caso morra um ou outro, ou os dois. Vai dar erro no console por não achar a "cid", creature id.
  10. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local target_lvl = getPlayerLevel(target) -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce foi punido por matar alguem do mesmo IP e não ganha lvl") return TRUE else if lvl < target_lvl then -- Quem mata é menor do que de quem morre if (lvl - target_lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (lvl - target_lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 7) end if (lvl - target_lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 9) end if (lvl - target_lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 11) end if (lvl - target_lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 15) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end if lvl > target_lvl then -- Quem mata é maior do que de quem morre if (target_lvl - lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (target_lvl - lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 4) end if (target_lvl - lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 3) end if (target_lvl - lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 2) end if (target_lvl - lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 1) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end end doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) return TRUE end Não testei, mas creio que ira funcionar. Botei uns comentarios para ti entender, ta bem explicativo creio eu. Testa e me diz.
  11. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Assim que eu fizer, te mando e tu vê.
  12. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Ta até faço embora esteja com preguiça, vê se fica bom assim: Pra cima (exemplo: Quem mata é level 100 e quem morre é level 120) = Se a diferença for de 20 levels = +5 levels Se a diferença for de 50 levels = +6 levels Se a diferença for de +100 levels = +8 levels Se a diferença for de +150 levels = +10 levels - Pra baixo (exemplo: Quem mata é level 100 e quem morre é level 80) = Se a diferença for de 20 levels = +5 levels Se a diferença for de 50 levels = +4 levels Se a diferença for de +100 levels = +3 levels
  13. Brother isto sempre acontece com spells com mais de um turno. Pois ele manda por exemplo 10 efeitos. Cada um de 1 em 1 segundo digamos assim. Nos 3 primeiros segundos, você esta olhando pra cima. Agora se você se mexer nos proximos segundos a spell vai pegar a posição nova, e então ira mudar. Fazendo com que pareça estar errada. Não sei se consegui explicar direito, é algo complicadinho.
  14. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 800 * (lvl)) / 5 local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 900 * (nlvl)) / 5 local newexp = nexp - exp doPlayerAddExp(cid,newexp) doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.") end end return TRUE end Aqui está, se tiver o mesmo IP vai dar a XP e ao mesmo tempo punir.
  15. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Não brother, ele só está punindo quem tem o mesmo IP. Não adiciona XP. - Se quiser que dê XP e Puna me avisa. - Se quiser que so puna deixe como está. - E se quiser tirar a punição diga tambem que te ajudo.
  16. Editei, por que tinha dado uma resposta de retardado por não ter entendido direito a pergunta. Enfim. Desculpe.
  17. Depende da versão do cliente.
  18. Dá para fazer uma action, que quando cliclar nesses 100 items, virar uma scarab coin. Porém os NPCS não vão aceita-la como dinheiro.
  19. Nome: Banco/Cadeiras curando Função: Bom, na verdade é bem simples, fiz para meu servidor para dar mais RPG. Funciona da seguinte maneira: Se a vida do jogador for menor que o máximo de vida e se ele não estiver com battle. Entrara em modo de descanso, fazendo que cure sua vida em uma porcentagem X ( configuravel ).de Y em Y tempo ( configuravel) Versão: Testada somente na "10.31". (OTX Server - Galaxy) Créditos: Kazuza - (eu) Por ter criado. xWhiteWolf - Por uma função "Pasta Servidor > Data > Moveevents > Scripts" crie "Banco.lua". function onStepIn(cid, item, position, fromPosition) local percent = 2 local tempo = 1 function lifesteal(cid) if isCreature(cid) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) doCreatureAddHealth(cid, math.floor(getCreatureMaxHealth(cid) * (percent/100))) if getCreatureHealth(cid) == getCreatureMaxHealth(cid) then stopEvent(steal) end end steal = addEvent(lifesteal, 1000*tempo, cid) end if getCreatureHealth(cid) < getCreatureMaxHealth(cid) then if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, 'Voce nao pode descansar se estiver com battle') else lifesteal(cid) end end return true end function onStepOut(cid, item, position, fromPosition) stopEvent(steal) return true end "Pasta Servidor > Data > Creaturescripts > Scripts" crie "Banco.lua". <movevent type="StepIn" itemid="1662;1663;1664;1665" event="script" value="banco"/> <movevent type="StepOut" itemid="1662;1663;1664;1665" event="script" value="banco.lua"/> OBS: Nos itemid você adiciona os items que quer que cure ao 'sentar'.
  20. De nada, qualquer dúvida poste e ajudaremos no que pudermos.
  21. Data > spells > spells.xml Onde estiver needlearn="0", mude para needlearn="1".
  22. Cazuza postou uma resposta no tópico em Suporte & Pedidos
    Já tinha visto este servidor em outro forum. Mas nunca vejo atualização.
  23. Cazuza postou uma resposta no tópico em Suporte OTServer Derivados
    Baixa o OTCliente, e poe o cliente do teu servidor dentro do OTCliente em things. Depois disso é so usar, não tem coisa mais facil. Mas eu não recomendo OTcliente pelos bugs.

Informação Importante

Confirmação de Termo