- 0
bug spells apena paralisa
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
- 3 respostas
- 2713 visualizações
-
- 0 respostas
- 1287 visualizações
-
- 1 resposta
- 2724 visualizações
-
- 0 respostas
- 2145 visualizações
-
- 7 respostas
- 4682 visualizações
-
Pergunta
leofox97 1
bom dia, to com um problema na spell do pokemon o nome dela é hypnosis ,no momento que uso ela no pokemon ele nao dorme apenas fica parado mas continua atacando .. alguem pode me ajudar?
codigo da spell =
elseif pokemon.x.spell == "Hypnosis" then
local alvo = getCreatureTarget(cid)
if isInArray(outfitsEspeciais, getCreatureOutfit(alvo).lookType) then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
setPokemonCooldown(cid,7,pokemon.x.cd) doPokemonDropCooldown(cid,7) getMoveLevel(cid,7,pokemon.x.minLv) getMoveName(cid,7,pokemon.x.spell)
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "MISS", 215)
else
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
setPokemonCooldown(cid,7,pokemon.x.cd) doPokemonDropCooldown(cid,7) getMoveLevel(cid,7,pokemon.x.minLv) getMoveName(cid,7,pokemon.x.spell)
setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 24)
--doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 136)
local function string(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
---doSendMagicEffect(getThingPos(params.alvo), 136)
doSendMagicEffect(getThingPos(params.alvo), 32)
doChangeSpeed(params.alvo, -getCreatureSpeed(params.alvo))
end
end
end
local function normalstr(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
setPlayerStorageValue(params.alvo, 3, -1)
doChangeSpeed(params.alvo, getCreatureBaseSpeed(params.alvo))
end
end
end
addEvent(string, 250, {alvo = alvo})
addEvent(string, 500, {alvo = alvo})
addEvent(string, 750, {alvo = alvo})
addEvent(string, 1000, {alvo = alvo})
addEvent(string, 1250, {alvo = alvo})
addEvent(string, 1500, {alvo = alvo})
addEvent(string, 1750, {alvo = alvo})
addEvent(string, 2000, {alvo = alvo})
addEvent(string, 2250, {alvo = alvo})
addEvent(string, 2500, {alvo = alvo})
addEvent(string, 2750, {alvo = alvo})
addEvent(string, 3000, {alvo = alvo})
addEvent(normalstr, 3050, {alvo = alvo})
end
return 0
Link para o comentário
https://xtibia.com/forum/topic/239168-spells-apena-paralisa/Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados