utani gran hur
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
addEvent(addFire, i, {cid = cid, pos = getThingPos(cid), i = 0})
return doCombat(cid, combat, var)
end
function addEffect(param)
local i = param.i + 100
if getDistanceBetween(getThingPos(param.cid), param.pos) > 0 then
doSendMagicEffect(getThingPos(param.cid), CONST_ME_STUN)
end
if i < 22000 then
addEvent(addEffect, 100, {cid = param.cid, pos = getThingPos(param.cid), i = i})
end
return true
end
utani tempo hur
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionFormula(condition, 0.9, -81, 0.9, -81)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
addEvent(addFire, i, {cid = cid, pos = getThingPos(cid), i = 0})
return doCombat(cid, combat, var)
end
function addEffect(param)
local i = param.i + 100
if getDistanceBetween(getThingPos(param.cid), param.pos) > 0 then
doSendMagicEffect(getThingPos(param.cid), CONST_ME_FIREWORK_BLUE)
end
if i < 5000 then
addEvent(addEffect, 100, {cid = param.cid, pos = getThingPos(param.cid), i = i})
end
return true
end
utani tempo san
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, 0.8, -72, 0.8, -72)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
addEvent(addFire, i, {cid = cid, pos = getThingPos(cid), i = 0})
return doCombat(cid, combat, var)
end
function addEffect(param)
local i = param.i + 100
if getDistanceBetween(getThingPos(param.cid), param.pos) > 0 then
doSendMagicEffect(getThingPos(param.cid), CONST_ME_HOLYAREA)
end
if i < 10000 then
addEvent(addEffect, 100, {cid = param.cid, pos = getThingPos(param.cid), i = i})
end
return true
end
Quanto ao nome das spells, vá no config.lua e na parte das spells mude para isso:
spellNameInsteadOfWords = true
emoteSpells = true