Tudo que lorenzo2014 postou
-
(Resolvido)Pedido,
Seja mais claro com seu pedido, esclareça melhor.
-
Não poder usar spell em pvp e No Logout
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
-
Npc de quest dar spell
Então amigo, isso que eu disse, poste aqui a magia que vai dar ao player, vou fazer pra vc.
-
Npc de quest dar spell
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.
-
(Resolvido)Storage resetar todo dia 07:00h
@Vodkart, perfeito! @Zypter98, não conhecia essa função, perfeita. Obrigado.
-
(Resolvido)Storage resetar todo dia 07:00h
zipter98 Eu não conhecia a função, perfeito! Vodkart Obrigado.
-
(Resolvido)Storage resetar todo dia 07:00h
Para entender zipter98, quando der 7 horas da manhã se o server estiver off, ele irá resetar a storage qdo ele ligar?
-
(Resolvido)Storage resetar todo dia 07:00h
Consegui, mas e se o server tiver off 7h? ai não resetaria a storage.
-
(Resolvido)Storage resetar todo dia 07:00h
Next, dessa forma, toda vez que o server cair, ai vai remover a storage, ai player vai poder fazer a daily quest novamente.
-
(Resolvido)Storage resetar todo dia 07:00h
Sei disso @klipstyle, queria saber na verdade se há outra opção.
-
(Resolvido)Storage resetar todo dia 07:00h
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?
-
(Resolvido)Ajuda script Healarea Pokemon
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.
-
(Resolvido)Ajuda script Healarea Pokemon
Continua healando
-
(Resolvido)Ajuda script Healarea Pokemon
------- 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.
-
(Resolvido)Ajuda script Healarea Pokemon
Healou normal e não deu print em nada
-
(Resolvido)Ajuda script Healarea Pokemon
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
-
[MOD] Pokedex Window para base PDA [v1.0]
Você, criou outro tópico com a versão 1.4 porém o download é 1.0.
-
[MOD] Pokedex Window para base PDA [v1.0]
Parabéns pelo trabalho! Ainda vai atualizar para adicionar a lista de pokemons na pokedex?
-
Criaturas Passivas
@topic Não irá atualizar para ele parar de ser hostile quando usar target? Tentei aqui, mas não fui muito feliz!
-
[C++] Cor das mensagens nos channels
@Ryuk Impossível bloquear par ao player não falar no default entao?
-
[C++] Cor das mensagens nos channels
if (channelId== DEFAULT) Não funcionaria? queria bloquear para quem tem storage 123456 não poder falar no default, pode me ajudar nisso?
-
[C++] Cor das mensagens nos channels
@topic Como especifico para o Channel Default?
- Pokemon Uncharted está devolta! RECRUTANDO
- Pokemon Uncharted está devolta! RECRUTANDO
-
Pokemon Uncharted está devolta! RECRUTANDO
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!