Ir para conteúdo
  • 0

[DUVIDA]como vejo o id de um effect


kido omega

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0
3 minutos atrás, kido omega disse:

não sei se usei campo certo para essa duvida mais como vejo o id de um effect ja tentei o object buider mais la não sei como mostra o id coreto

no object builder por exemplo vc ve o id 255 mas na vdd é 254 dessa forma digita /z 254 e vc vera o efeito

Link para o comentário
Compartilhar em outros sites

  • 0
13 minutos atrás, StrikersBR12 disse:

no object builder por exemplo vc ve o id 255 mas na vdd é 254 dessa forma digita /z 254 e vc vera o efeito

mano certo mais meu script ainda esta rodando o effect errado sera que da para me ajudar

 

local tempo = 60 -- tempo em segundos.

local effect = {80,104} -- effect no player, caso queira apenas 1, basta remover os outros numeros.
local ml = 10 -- quantos ira aumentar o skill de ML
local skillfist = 30 -- quantos ira aumentar o skill de Fist
local skillsword = 30 -- quantos ira aumentar o skill de Sword
local skillaxe = 30 -- quantos ira aumentar o skill de Axe
local skillclub = 30 -- quantos ira aumentar o skill de Club
local skilldistance = 30 -- quantos ira aumentar o skill de Distance
local skillshield = 30 -- quantos ira aumentar o skill de Shield
local health = -100 -- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 300)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)
function magicEffect2244(tempo2,tempo3,cid)
if (isCreature(cid)) then
if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then
for i=1, #effect do
local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
doSendMagicEffect(position, effect)
end
end
end
end
function onCastSpell(cid, var)
local position127 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
doCombat(cid, combat, var)
tempo2 = 0
while (tempo2 ~= (tempo*1000)) do
addEvent(magicEffect2244, tempo2, tempo2, tempo*1000, cid)
tempo2 = tempo2 + 300
end
setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
doCreatureSay(cid, "haaaaaaaaaaaaaaaa kaioken aumentado 20 vezes!!!!", TALKTYPE_MONSTER)
doSendMagicEffect(position127, 110)
else
doPlayerSendCancel(cid, "voce nao pode aumentar a potencia do kaioken.")
end
end

1 minuto atrás, kido omega disse:

mano certo mais meu script ainda esta rodando o effect errado sera que da para me ajudar

 

local tempo = 60 -- tempo em segundos.

local effect = {80,104} -- effect no player, caso queira apenas 1, basta remover os outros numeros.
local ml = 10 -- quantos ira aumentar o skill de ML
local skillfist = 30 -- quantos ira aumentar o skill de Fist
local skillsword = 30 -- quantos ira aumentar o skill de Sword
local skillaxe = 30 -- quantos ira aumentar o skill de Axe
local skillclub = 30 -- quantos ira aumentar o skill de Club
local skilldistance = 30 -- quantos ira aumentar o skill de Distance
local skillshield = 30 -- quantos ira aumentar o skill de Shield
local health = -100 -- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 300)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)
function magicEffect2244(tempo2,tempo3,cid)
if (isCreature(cid)) then
if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then
for i=1, #effect do
local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
doSendMagicEffect(position, effect)
end
end
end
end
function onCastSpell(cid, var)
local position127 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
doCombat(cid, combat, var)
tempo2 = 0
while (tempo2 ~= (tempo*1000)) do
addEvent(magicEffect2244, tempo2, tempo2, tempo*1000, cid)
tempo2 = tempo2 + 300
end
setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
doCreatureSay(cid, "haaaaaaaaaaaaaaaa kaioken aumentado 20 vezes!!!!", TALKTYPE_MONSTER)
doSendMagicEffect(position127, 110)
else
doPlayerSendCancel(cid, "voce nao pode aumentar a potencia do kaioken.")
end
end

ele roda o efeito 110 e 0

@StrikersBR12

Link para o comentário
Compartilhar em outros sites

  • 0

Seu código:

local tempo = 60 -- tempo em segundos.

local effect = {80,104} -- effect no player, caso queira apenas 1, basta remover os outros numeros.
local ml = 10 -- quantos ira aumentar o skill de ML
local skillfist = 30 -- quantos ira aumentar o skill de Fist
local skillsword = 30 -- quantos ira aumentar o skill de Sword
local skillaxe = 30 -- quantos ira aumentar o skill de Axe
local skillclub = 30 -- quantos ira aumentar o skill de Club
local skilldistance = 30 -- quantos ira aumentar o skill de Distance
local skillshield = 30 -- quantos ira aumentar o skill de Shield
local health = -100 -- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 300)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

function magicEffect2244(tempo2,tempo3,cid)
  if (isCreature(cid)) then
    if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then
      for i=1, #effect do
        local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
        doSendMagicEffect(position, effect)
      end
    end
  end
end

function onCastSpell(cid, var)
  local position127 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
  if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
    doCombat(cid, combat, var)
    tempo2 = 0
    while (tempo2 ~= (tempo*1000)) do
      addEvent(magicEffect2244, tempo2, tempo2, tempo*1000, cid)
      tempo2 = tempo2 + 300
    end
    setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
    doCreatureSay(cid, "haaaaaaaaaaaaaaaa kaioken aumentado 20 vezes!!!!", TALKTYPE_MONSTER)
    doSendMagicEffect(position127, 110)
  else
    doPlayerSendCancel(cid, "voce nao pode aumentar a potencia do kaioken.")
  end
end

Se você quer que pare de sair o efeito 110 basta trocar seu ID, está sendo localizado aqui:

doSendMagicEffect(position127, 110)

Só alterar o ID 110 para o ID que você deseja.

Link para o comentário
Compartilhar em outros sites

  • 0
6 horas atrás, DarkWore disse:

Seu código:


local tempo = 60 -- tempo em segundos.

local effect = {80,104} -- effect no player, caso queira apenas 1, basta remover os outros numeros.
local ml = 10 -- quantos ira aumentar o skill de ML
local skillfist = 30 -- quantos ira aumentar o skill de Fist
local skillsword = 30 -- quantos ira aumentar o skill de Sword
local skillaxe = 30 -- quantos ira aumentar o skill de Axe
local skillclub = 30 -- quantos ira aumentar o skill de Club
local skilldistance = 30 -- quantos ira aumentar o skill de Distance
local skillshield = 30 -- quantos ira aumentar o skill de Shield
local health = -100 -- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 300)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

function magicEffect2244(tempo2,tempo3,cid)
  if (isCreature(cid)) then
    if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then
      for i=1, #effect do
        local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
        doSendMagicEffect(position, effect)
      end
    end
  end
end

function onCastSpell(cid, var)
  local position127 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
  if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
    doCombat(cid, combat, var)
    tempo2 = 0
    while (tempo2 ~= (tempo*1000)) do
      addEvent(magicEffect2244, tempo2, tempo2, tempo*1000, cid)
      tempo2 = tempo2 + 300
    end
    setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
    doCreatureSay(cid, "haaaaaaaaaaaaaaaa kaioken aumentado 20 vezes!!!!", TALKTYPE_MONSTER)
    doSendMagicEffect(position127, 110)
  else
    doPlayerSendCancel(cid, "voce nao pode aumentar a potencia do kaioken.")
  end
end

Se você quer que pare de sair o efeito 110 basta trocar seu ID, está sendo localizado aqui:


doSendMagicEffect(position127, 110)

Só alterar o ID 110 para o ID que você deseja.

opa funcionou 50% o effect 80 surge rapidamente e para ja o 104 nem sai continua saindo o effect 1

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...