Ir para conteúdo
  • 0

[Spell] Bold Fluor


Pergunta

14 respostass a esta questão

Posts Recomendados

  • 0

vai em data spells>scripts. crie 1 arquivo exevopally.lua e cole isso :

 




local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5, -10, -5, -10)

local arr = {
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
{ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
{ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
{ 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1 },
{ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
{ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }
}
local area = createCombatArea(arr)
setCombatArea(combat, area)

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

 

agora em spells.xml cole isso .



<instant name="Exevo mas pally" words="Exevo mas pally" aggressive="1" lvl="10" maglv="0" mana="500" soul="0" needtarget="0" direction="1" exhaustion="1" prem="0" enabled="1" needlearn="0" script="exevopally.lua"><vocation name="Paladin"/><vocation name="Royal Paladin"/></instant>

 

 

AJUDEI?REP+

Editado por Tchubaka
Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296079
Compartilhar em outros sites

  • 0

varias tpw de arrow?

 

tenta isso entao.


local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatParam(combat3, COMBAT_PARAM_AGGRESSIVE, 0)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISONARROW)
setCombatParam(combat4, COMBAT_PARAM_AGGRESSIVE, 0)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POWERBOLT)
setCombatParam(combat5, COMBAT_PARAM_AGGRESSIVE, 0)

arr1 = {
{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, 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},
{0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 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},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

arr2 = {
{0, 0, 0, 0, 0, 0, 0, 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},
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, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 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},
{0, 0, 1, 1, 1, 3, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

function onCastSpell(cid, var)
doSendMagicEffect(getCreaturePosition(cid),14)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 000, parameters)
addEvent(onCastSpell2, 600, parameters)
addEvent(onCastSpell3, 1200, parameters)
addEvent(onCastSpell4, 2000, parameters)
addEvent(onCastSpell3, 2600, parameters)
addEvent(onCastSpell2, 3200, parameters)
addEvent(onCastSpell5, 3800, parameters)

return TRUE
end

Editado por Tchubaka
Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296146
Compartilhar em outros sites

  • 0

você quer tpw o /x NUMEROS?

 

aaaa cara esse de arrows. e so para target so vai 1 mesmo =/

o area effect tem outros varios. mais arrows nao tem =/

 

 

desculpa tentei uq sabia' ;/

Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296169
Compartilhar em outros sites

  • 0

cara tem como fazer asism. ve se gosta



local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 4)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 43)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatParam(combat3, COMBAT_PARAM_AGGRESSIVE, 0)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 31)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISONARROW)
setCombatParam(combat4, COMBAT_PARAM_AGGRESSIVE, 0)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 34)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POWERBOLT)
setCombatParam(combat5, COMBAT_PARAM_AGGRESSIVE, 0)

arr1 = {
{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, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1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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},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{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},
{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}
}

arr5 = {
{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, 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},
{0, 0, 1, 1, 1, 3, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

function onCastSpell(cid, var)
doSendMagicEffect(getCreaturePosition(cid),14)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 000, parameters)
addEvent(onCastSpell2, 600, parameters)
addEvent(onCastSpell3, 1200, parameters)
addEvent(onCastSpell4, 2000, parameters)
addEvent(onCastSpell3, 2600, parameters)
addEvent(onCastSpell2, 3200, parameters)
addEvent(onCastSpell5, 3800, parameters)

return TRUE
end

Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296242
Compartilhar em outros sites

  • 0

local _combat = createCombatObject()

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 10, 2.8, 32)

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(_combat, area)

function onTargetTile(cid, position)
   doCombat(cid, combat, positionToVariant(position))
end
setCombatCallback(_combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

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

Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296425
Compartilhar em outros sites

  • 0

Oneshot seu script esta praticamente perfeito , se nao o fato de que eu queria que fosse 5x5 !! e tbm pq o player n tem exhaust com a magia

Editado por Luiiz1
Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296511
Compartilhar em outros sites

  • 0

local _combat = createCombatObject()

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 10, 2.8, 32)

local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(_combat, area)

function onTargetTile(cid, position)
doCombat(cid, combat, positionToVariant(position))
end
setCombatCallback(_combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

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

 

A parte do exhaustion é provavelmente no spells.xml. O script retorna o valor de doCombat, ou seja, true. Então se puder, dê uma olhada na tag XML da magia em questão e aumente o intervalo de exhaustion lá.

 

A tag XML passada pelo membro Tchubaka tem exhaustion de 1 milissegundo, se estiver usando ela, está aí o problema.

Editado por Oneshot
Link para o comentário
https://xtibia.com/forum/topic/190055-spell-bold-fluor/#findComment-1296592
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...