Spell para Poketibia (pedido)

Olan trein
em Scripts

Olan trein

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 19/07/17Posts: 103Gênero: Masculino

Preciso de 3 Spells, se alguém puder ajudar:

1- Seria uma spell que diminuiria pela metade o cooldown dos outros ataques do pokemon.

2- Um ataque que iria fazer o pokemon "se esquivar" de 4 ataques.

3- Seria uma spell de target, que faria o pokemon adversario errar 4 ataques.

GamerGoiano

avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 11/03/13Posts: 629
Em 05/07/2020 em 20:49, Olan trein disse:

Preciso de 3 Spells, se alguém puder ajudar:

1- Seria uma spell que diminuiria pela metade o cooldown dos outros ataques do pokemon.

2- Um ataque que iria fazer o pokemon "se esquivar" de 4 ataques.

3- Seria uma spell de target, que faria o pokemon adversario errar 4 ataques.

o 3 seria o hypnosis só vc pegar a spell editar a duração
o 2 tem o espelho do Mr Mime só remover a parte de revidar dano e aumentar a duração

xmaster0

Xuxuzinho
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 21/06/12Posts: 155

refiz aqui o 1º SPELL, pois tava errado

 

o spell é esse: 

 

elseif spell == "Jaja" then

config = {
tempo = 5, -- em segundos 
effon = 33, -- efeito começa 
effend = 440 -- efeito quando acaba 
} 

if getPlayerStorageValue(cid, 45271) == 1 then 
	return true 
else
	doSendMagicEffect(getThingPos(cid), config.effon)
	addEvent(setPlayerStorageValue, 000, cid, 45271, 1)
	addEvent(setPlayerStorageValue, config.tempo*1000, cid, 45271, -1)
	addEvent(doSendMagicEffect, config.tempo*1000, getThingPos(cid), config.effend)	
end 

AGORA TU TEM Q IR EM talkactions/move1.lua 

 

procura pelo if onde ta isso aqui

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..tempocd.." seconds to use "..move.name.." again.")

deleta o if com os comandos e deixa assim:

tempocd = getCD(getPlayerSlotItem(cid, 8).uid, cdzin)
if getPlayerStorageValue(mypoke,45271) == 1 then 
		tempocd = math.floor(tempocd/2)
else 
		tempocd = tempocd 
end 
		
	if tempocd > 0 and tempocd < (move.cd + 2)  then 
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..tempocd.." seconds to use "..move.name.." again.")
		return true
	end 
	

 

Olan trein

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 19/07/17Posts: 103Gênero: Masculino
19 horas atrás, brazvct disse:

o 3 seria o hypnosis só vc pegar a spell editar a duração
o 2 tem o espelho do Mr Mime só remover a parte de revidar dano e aumentar a duração

O hypnosis, faz o pokemon ficar inutilizado por determinado tempo, sem poder usar atk nenhum. O que quero, é uma spell que faz errar os 4 proximos ataques do outro pokemon precisamente, um seguido do outro.

19 horas atrás, xmaster0 disse:

refiz aqui o 1º SPELL, pois tava errado

 

o spell é esse: 

 

elseif spell == "Jaja" then

config = {
tempo = 5, -- em segundos 
effon = 33, -- efeito começa 
effend = 440 -- efeito quando acaba 
} 

if getPlayerStorageValue(cid, 45271) == 1 then 
	return true 
else
	doSendMagicEffect(getThingPos(cid), config.effon)
	addEvent(setPlayerStorageValue, 000, cid, 45271, 1)
	addEvent(setPlayerStorageValue, config.tempo*1000, cid, 45271, -1)
	addEvent(doSendMagicEffect, config.tempo*1000, getThingPos(cid), config.effend)	
end 

AGORA TU TEM Q IR EM talkactions/move1.lua 

 

procura pelo if onde ta isso aqui

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..tempocd.." seconds to use "..move.name.." again.")

deleta o if com os comandos e deixa assim:

tempocd = getCD(getPlayerSlotItem(cid, 8).uid, cdzin)
if getPlayerStorageValue(mypoke,45271) == 1 then 
		tempocd = math.floor(tempocd/2)
else 
		tempocd = tempocd 
end 
		
	if tempocd > 0 and tempocd < (move.cd + 2)  then 
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..tempocd.." seconds to use "..move.name.." again.")
		return true
	end 
	

 

Deixa só eu ver se entendi, durante esse tempo, todo ataque que eu usar vai ficar pela metade, certo?

xmaster0

Xuxuzinho
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 21/06/12Posts: 155

aham, qualquer magia desse pokemon fica com cd reduzido pela metade