Ir para conteúdo
  • 0

Paralyze + Exausted na SPELL


Treevo

Pergunta

Bom, depois de um tempo tentando e tentando fundir um script de paralyze e um de exausted na mesma spell n obtive sucesso...
Então resolvi pedir a ajudar de vcs, por favor se for possivel botar esse script de paralyze na spell, eu agradeço. THX

 

Paralyze:

 

 

function onCastSpell(cid)
time = 10
target = getCreatureTarget(cid)

function doRemoveParalyze(target)
if isCreature(target) then

mayNotMove(target, false)
end
return true
end

mayNotMove(target, true)

addEvent(doRemoveParalyze, time * 1000, cid)
end

 

 

Spell com Exausted ja

 

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 2)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -200.2, 1)

function onCastSpell(cid, var)
local waittime = 2 -- Tempo de exhaustion
local storage = 115822

if exhaustion.check(cid, storage) then
return false
end

local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position2 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position3 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position4 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
local position5 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position6 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position7 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
local position8 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position9 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 159)
doSendMagicEffect(position2, 159)
doSendMagicEffect(position3, 159)
doSendMagicEffect(position4, 159)
doSendMagicEffect(position5, 159)
doSendMagicEffect(position6, 159)
doSendMagicEffect(position7, 159)
doSendMagicEffect(position8, 159)
doSendMagicEffect(position9, 159)
exhaustion.set(cid, storage, waittime)
return doCombat(cid, combat, var)
end

 

Editado por Treevo
Link para o comentário
Compartilhar em outros sites

9 respostass a esta questão

Posts Recomendados

  • 0

Eu tenho essa Spell ai que eu postei ja com o exausted, agora queria que colocace o paralyze que no caso e :

 

 

function onCastSpell(cid)
time = 10
target = getCreatureTarget(cid)

function doRemoveParalyze(target)
if isCreature(target) then

mayNotMove(target, false)
end
return true
end

mayNotMove(target, true)

addEvent(doRemoveParalyze, time * 1000, cid)
end

 

 

Sendo assim o Paralyze+Exausted na mesma spell.

Editado por Treevo
Link para o comentário
Compartilhar em outros sites

  • 0


local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 2)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -200.2, 1)

 

local condition = createConditionObject(CONDITION_DRUNK)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

setCombatCondition(combat, condition)

 

function onCastSpell(cid, var)

local waittime = 2 -- Tempo de exhaustion

local storage = 115822

 

if exhaustion.check(cid, storage) then

return false

end

 

local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}

local position2 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}

local position3 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}

local position4 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}

local position5 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}

local position6 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}

local position7 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}

local position8 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}

local position9 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}

doSendMagicEffect(position1, 159)

doSendMagicEffect(position2, 159)

doSendMagicEffect(position3, 159)

doSendMagicEffect(position4, 159)

doSendMagicEffect(position5, 159)

doSendMagicEffect(position6, 159)

doSendMagicEffect(position7, 159)

doSendMagicEffect(position8, 159)

doSendMagicEffect(position9, 159)

exhaustion.set(cid, storage, waittime)

return doCombat(cid, combat, var)

end

Editado por Shoguns
Link para o comentário
Compartilhar em outros sites

  • 0

Tenta agora:

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 2)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -200.2, 1)
 
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
 
function onCastSpell(cid, var)
local waittime = 2 -- Tempo de exhaustion
local storage = 115822
if exhaustion.check(cid, storage) then
return false
end
local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position2 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position3 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position4 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
local position5 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
local position6 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position7 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
local position8 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position9 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+2, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 159)
doSendMagicEffect(position2, 159)
doSendMagicEffect(position3, 159)
doSendMagicEffect(position4, 159)
doSendMagicEffect(position5, 159)
doSendMagicEffect(position6, 159)
doSendMagicEffect(position7, 159)
doSendMagicEffect(position8, 159)
doSendMagicEffect(position9, 159)
exhaustion.set(cid, storage, waittime)
return doCombat(cid, combat, var)
end
Editado por Shoguns
Link para o comentário
Compartilhar em outros sites

  • 0

ta dando algum erro na distro? se coloco la no xml certo?

<instant name="Exevo Paralyze" words="Exevo gran mas paralyze" lvl="20" mana="50" selftarget="1" prem="0" exhaustion="1400" needlearn="0" event="script" value="SeuScript.lua">
  <vocation id="1"/>
  <vocation id="5"/>
  <vocation id="2"/>
  <vocation id="6"/>
  <vocation id="3"/>
  <vocation id="7"/>
  <vocation id="4"/>
  <vocation id="8"/>
</instant>
Editado por Shoguns
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...