Ir para conteúdo

lorenzo2014

Membro
  • Registro em

  • Última visita

Tudo que lorenzo2014 postou

  1. Seja mais claro com seu pedido, esclareça melhor.
  2. Não sei se entendi bem, mas você disse PVP, seria batle ou protection zone? No segundo script adicione abaixo de: function onCastSpell(cid, var) if getCreatureCondition(cid, CONDITION_INFIGHT) or getTileInfo(getCreaturePosition(cid)).nologout then doPlayerSendCancel(cid, "You can't use spells in protection zone.") return false end local config = { pos = {x = 1234, y = 728, z = 6}, -- posição da aegis dimension tempo = 30, -- tempo pra voltar effect1 = 196, -- efeito ao ser teleportado effect2 = 196, -- efeito ao voltar distance = 15, --- distancia que você vai ter que estar do centro do kamui pra poder usar a magia storagecool = 94283, -- storage do cooldown cooldown = 120 -- tempo entre um uso e outro } function onCastSpell(cid, var) if getTileInfo(getThingPos(cid)).protection or getTileInfo(getCreaturePosition(cid)).nologout then doPlayerSendCancel(cid, "You can't use spells in protection zone.") return false end if getDistanceBetween(getThingPos(cid), config.pos) <= config.distance then doPlayerSendCancel(cid, "You cant use kamui inside the kamui.") return false end if getPlayerStorageValue(cid, config.storagecool) - os.time() > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, config.storage))).." segundos para usar a spell novamente.") return false end if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) setPlayerStorageValue(cid, config.storagecool, os.time() + config.cooldown) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2) doSendMagicEffect(getThingPos(target), config.effect1) doTeleportThing(target, config.pos) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "You were teleported by ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "You teleported ".. getCreatureName(target) .."!") end for i = 1,config.tempo do addEvent(function() if isCreature(target) then doPlayerSendTextMessage(target,25,"You'll be back in " .. config.tempo -i +1 .. " second(s)") end end, 1000*i) end else doPlayerSendCancel(cid, "You can only use this spell in players") end return true end Se for em batalha, infight local config = { pos = {x = 1234, y = 728, z = 6}, -- posição da aegis dimension tempo = 30, -- tempo pra voltar effect1 = 196, -- efeito ao ser teleportado effect2 = 196, -- efeito ao voltar distance = 15, --- distancia que você vai ter que estar do centro do kamui pra poder usar a magia storagecool = 94283, -- storage do cooldown cooldown = 120 -- tempo entre um uso e outro } function onCastSpell(cid, var) if getCreatureCondition(cid, CONDITION_INFIGHT) or getTileInfo(getCreaturePosition(cid)).nologout then doPlayerSendCancel(cid, "You can't use spells in protection zone.") return false end if getDistanceBetween(getThingPos(cid), config.pos) <= config.distance then doPlayerSendCancel(cid, "You cant use kamui inside the kamui.") return false end if getPlayerStorageValue(cid, config.storagecool) - os.time() > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, config.storage))).." segundos para usar a spell novamente.") return false end if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) setPlayerStorageValue(cid, config.storagecool, os.time() + config.cooldown) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2) doSendMagicEffect(getThingPos(target), config.effect1) doTeleportThing(target, config.pos) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "You were teleported by ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "You teleported ".. getCreatureName(target) .."!") end for i = 1,config.tempo do addEvent(function() if isCreature(target) then doPlayerSendTextMessage(target,25,"You'll be back in " .. config.tempo -i +1 .. " second(s)") end end, 1000*i) end else doPlayerSendCancel(cid, "You can only use this spell in players") end return true end
  3. Então amigo, isso que eu disse, poste aqui a magia que vai dar ao player, vou fazer pra vc.
  4. Se eu entendi bem, basta você colocar para que a magia seja executada apenas para quem tem uma storage X, ai no npc vc coloca para ganhar a storage.
  5. @Vodkart, perfeito! @Zypter98, não conhecia essa função, perfeita. Obrigado.
  6. zipter98 Eu não conhecia a função, perfeito! Vodkart Obrigado.
  7. Para entender zipter98, quando der 7 horas da manhã se o server estiver off, ele irá resetar a storage qdo ele ligar?
  8. Consegui, mas e se o server tiver off 7h? ai não resetaria a storage.
  9. Next, dessa forma, toda vez que o server cair, ai vai remover a storage, ai player vai poder fazer a daily quest novamente.
  10. Sei disso @klipstyle, queria saber na verdade se há outra opção.
  11. Bom dia, estou fazendo um NPC daily quest, porém preciso que uma storage reset todo dia 7 horas da manhã. Fiz um pequeno global event: function onTimer() db.executeQuery('INSERT IGNORE INTO `player_storage` SELECT `id`, 130090, 0 FROM `players` WHERE `online` = 0 ON DUPLICATE KEY UPDATE `value` = 0') end Ela reseta normal, mais ai vem a dúvida, e se o server tiver off 7:00h? caso ocorra um crash por exemplo, existe alguma outra maneira?
  12. Agora funcionou perfeitamente, porém não entendi apenas pq o print CARALHO 2, pq não foi utilizada, o print CARALHO, funcionou. Fiz a pergunta pq to estudando scripting e gostaria de entender. Obrigado pela ajuda.
  13. ------- Edited ------ elseif ehMonstro(cid) and ehMonstro(pid) or getPlayerStorageValue(getCreatureMaster(pid), 990) >= 1 then doHealArea(pid, 0, 0) print("Test") ------ Edited ----- end Esseu deu print, mas continuou healando. Vou testar esse ultimo que vc passou.
  14. Healou normal e não deu print em nada
  15. Boa tarde, preciso da ajuda de vocês. Tentei bloquear a spell Healarea em certas situações não consegui. Gostaria que o player que tivesse com a storage 990, seu summon não seria healado pela spell. Por exemplo: Sou o player 1, tenho o Clefable, pokemon que tem a spell de Healarea, quando o poke usar tal spelll, player que possuem a storage 990, seus summons não são healados. Alguém pode me ajudar? Segue abaixo o script da spell. Healarea: local function doHealArea(cid, min, max) local amount = math.random(min, max) if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid)) end if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then doCreatureAddHealth(cid, amount) doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65) end end doSendMagicEffect(getThingPosWithDebug(cid), 132) doHealArea(cid, min, max) elseif spell == "Healarea" then local min = (getCreatureMaxHealth(cid) * 50) / 100 local max = (getCreatureMaxHealth(cid) * 60) / 100 local function doHealArea(cid, min, max) local amount = math.random(min, max) if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid)) end if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then doCreatureAddHealth(cid, amount) doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65) end end local pos = getPosfromArea(cid, heal) local n = 0 doHealArea(cid, min, max) while n < #pos do n = n+1 thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253} local pid = getThingFromPosWithProtect(thing) doSendMagicEffect(pos[n], 12) if isCreature(pid) then if isSummon(cid) and (isSummon(pid) or isPlayer(pid)) then if canAttackOther(cid, pid) == "Cant" then doHealArea(pid, min, max) end elseif ehMonstro(cid) and ehMonstro(pid) then doHealArea(pid, min, max) end end end
  16. Você, criou outro tópico com a versão 1.4 porém o download é 1.0.
  17. Parabéns pelo trabalho! Ainda vai atualizar para adicionar a lista de pokemons na pokedex?
  18. @topic Não irá atualizar para ele parar de ser hostile quando usar target? Tentei aqui, mas não fui muito feliz!
  19. @Ryuk Impossível bloquear par ao player não falar no default entao?
  20. if (channelId== DEFAULT) Não funcionaria? queria bloquear para quem tem storage 123456 não poder falar no default, pode me ajudar nisso?
  21. @topic Como especifico para o Channel Default?
  22. Alguns usuários me adicionaram no skype para entrarem na equipe, em breve posto os novos membros!
  23. Pessoal, estou em viagem, terça feira retorno e converso com as pessoas que se interessaram a entrar na equipe!
  24. Olá pessoal, sou o dono do antigo Pokemon Uncharted, devido a muitos erros que havia no mesmo iniciei um servidor do 0 (zero) há algum tempo, e estou em fase de acabamento, e em breve estará online! Alguns sistemas do servidor: •Surf - 100% •Ride - 100% •Fly - 100% •Order - 100% •Cooldown Bar - 100% •Systema HeadButt - 100% •Systema De Police E Equipe Rocket - 100% •Systema De Clan - 100% •Headbutt System - 100% •Pokemons evoluirem por Stones - 100% •Ditto System - 100% •Tv System - 100% •Cassino System - 100% •Aura Em Fly,Surf,Ride - 100% •Control Mind - 100% •!Love - 100% •Nursa Joy - Heala Todos Os Pokemons - 100% •Duel System - 100% •M1 Ao M12 - 100% •Lideres de Ginásio - 100% •Ataks De Pokemons - 100% •Houses - 100% •Pokedex - 100% •Boost - 100% •Aura System - 100% Ícone system: Addon System: Nick System: Entre muitas outras coisas! Devido eu estar sozinho no servidor não tive tempo para criar um mapa e editar o OTclient (não são minhas especialidades), por isso conto com a ajuda de vocês! Segue a página do server! https://www.facebook.com/pokemonuncharted/ Por enquanto estou sozinho na equipe, sou scripter (avançado) e programador (médio), experiência com servidores derivados há aproximadamente 4 anos! Vagas: Otclient Maker Mapper Scripter Formulário: Nome: Idade: Função: Experiencia: Porque quer fazer parte da equipe: OBS: Server estará online em aproximadamente 20 - 30 dias!

Informação Importante

Confirmação de Termo