if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then
if spell == "Magic Coat" then
eff = 11
else
eff = 172
end
doSendMagicEffect(getThingPosWithDebug(cid), eff)
setPlayerStorageValue(cid, 21099, 1)
if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then
if spell == "Magic Coat" then
eff = 11
else
eff = 172
end
doSendMagicEffect(getThingPosWithDebug(cid), eff)
setPlayerStorageValue(cid, 21099, 1)
info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino

if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then if spell == "Magic Coat" then eff = 11 else eff = 172 end doSendMagicEffect(getThingPosWithDebug(cid), eff) setPlayerStorageValue(cid, 21099, 1)
Nao é bem isso oq eu kero mano, eu kero q o efeito 172, seja só pro Mimic, nao pro reflect. Tentei fazer de todo modo igual do Magic Coat, e nao consegui.
Esse efeito 135, é do Reflect.
Editado Fevereiro 13 por FlamesAdmin
O Dig, depois eu faço.
if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then
if spell == "Magic Coat" then
eff = 11
elseif spell == "Mimic" then
eff = 172
else
eff = 135
end
doSendMagicEffect(getThingPosWithDebug(cid), eff)
setPlayerStorageValue(cid, 21099, 1)
info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino

O Dig, depois eu faço.
if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then if spell == "Magic Coat" then eff = 11 elseif spell == "Mimic" then eff = 172 else eff = 135 end doSendMagicEffect(getThingPosWithDebug(cid), eff) setPlayerStorageValue(cid, 21099, 1)
Opaaa, vlw, rep+ por esse e dps rep pelo Dig.
elseif spell == "Dig" then
local dig_area = area --Área da spell.
local slow_time = 5 --Tempo que durará o slow.
local time = 3 --Tempo que ficará em baixo da terra.
local eff = 204 --Efeito que vai aparecer no pokémon quando afundar/voltar para a superfície.
local eff_dmg = 196 --Efeito do dano.
local ret = {}
ret.id = 0
ret.cd = slow_time
ret.eff = 0
ret.check = 0
ret.first = true
ret.cond = "Slow"
doSendMagicEffect(getThingPos(cid), eff)
doDisapear(cid)
addEvent(function()
if not isCreature(cid) then return true end
doAppear(cid)
doSendMagicEffect(getThingPos(cid), eff)
doMoveInArea2(cid, eff_dmg, dig_area, GROUNDDAMAGE, min, max, spell, ret)
end, time*1000)
Editado Fevereiro 14 por zipter98
info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino

Você já atingiu seu limite de reputações positivas para hoje
Tópico movido para a seção de dúvidas e pedidos resolvidos.
If i used Dig and have this Error.
[18/02/2014 12:14:31] [Error - TalkAction Interface]
[18/02/2014 12:14:31] In a timer event called from:
[18/02/2014 12:14:31] data/talkactions/scripts/move1.lua:onSay
[18/02/2014 12:14:31] Description:
[18/02/2014 12:14:31] data/lib/032-position.lua:170: attempt to get length of local 'area' (a nil value)
[18/02/2014 12:14:31] stack traceback:
[18/02/2014 12:14:31] data/lib/032-position.lua:170: in function 'getPosfromArea'
[18/02/2014 12:14:31] data/lib/newStatusSyst.lua:835: in function 'doMoveInArea2'
[18/02/2014 12:14:31] data/lib/pokemon moves.lua:4153: in function <data/lib/pokemon moves.lua:4149>
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino
Primeiramente, boa tarde, gostaria que colocasse o efeito 172 no move Mimic:
if spell == "Reflect" or spell == "Magic Coat" or spell == "Mimic" then if spell == "Magic Coat" then eff = 11 else eff = 135 end doSendMagicEffect(getThingPosWithDebug(cid), eff) setPlayerStorageValue(cid, 21099, 1)2º - Criar move Dig.
Imagem de como funcionará:
Efeito de qnd ele afunda: 204.
Efeito qnd ele sobe e dano em área: 204 e 196.
Tempo que ele ficara afundado: 3 segundos.
Status do dano em área: somente deixará o oponente com status Slow.
Nao sofrerá dando qnd estiver afundado.
Rep+
Editado Fevereiro 13 por FlamesAdmin