Ir para conteúdo
  • 0

Spell area errada


SkyDarkyes

Pergunta

Ae galera olha a spell,ela ta aparecendo só um pouco como eu fasso para aparecer na tela toda?

 

482766_434909506593016_1485102103_n.jpg

 

 

Meu script

 


--Made by (Your Nick)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 160)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_INFERNALBOLT )
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -100.2, 1, -100.2, 1)
local stun = createConditionObject(CONDITION_PARALYZE)
local arr = {
{ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1 },
{ 0, 1, 1, 1, 1, 3, 1, 1, 1, 1, 0 },
{ 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0 }
}
local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

Tenta ai:

 


--Made by (Your Nick)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 160)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_INFERNALBOLT )
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -100.2, 1, -100.2, 1)
local stun = createConditionObject(CONDITION_PARALYZE)
local arr = {
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
}
local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Link para o comentário
Compartilhar em outros sites

  • 0

tente assim:

 

-- By Master Dino

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -100.2, 1, -100.2, 1)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -800)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)


local arr = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
local pos1 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}
local pos2 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z}
local pos3 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+2, z=getCreaturePosition(cid).z}
local pos4 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+3, z=getCreaturePosition(cid).z}
local pos5 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+4, z=getCreaturePosition(cid).z}
local pos6 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}
local pos7 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-2, z=getCreaturePosition(cid).z}
local pos8 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-3, z=getCreaturePosition(cid).z}
doSendMagicEffect(pos1, 160)
doSendMagicEffect(pos2, 160)
doSendMagicEffect(pos3, 160)
doSendMagicEffect(pos4, 160)
doSendMagicEffect(pos5, 160)
doSendMagicEffect(pos6, 160)
doSendMagicEffect(pos7, 160)
doSendMagicEffect(pos8, 160)
return doCombat(cid, combat, var)
end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...