Extrodus
|| Blazera.net ||
So I searched the forums up and down but with no luck I have to come back to the support board.
Im trying to make haste shoot energy strikes from behind the character. Right now the effects go infront of the player and anyone in the effects that happen get hasted aswell. How can I make it so the effects happen behind the player, and other players dont get effected from the effects?
Also if I add selftarget="1" the spell stops hasting the player and the direction stops working.
Thanks in advance for anyone who helps me with this.
Also, this is the utamo vita script I changed but same effect.. anyone in the effect area gets mana shield as well so I can't use it either.
Im trying to make haste shoot energy strikes from behind the character. Right now the effects go infront of the player and anyone in the effects that happen get hasted aswell. How can I make it so the effects happen behind the player, and other players dont get effected from the effects?
Also if I add selftarget="1" the spell stops hasting the player and the direction stops working.
Code:
<instant name="Haste Test" words="utani test" lvl="14" mana="60" prem="1" aggressive="0" direction="1" exhaustion="1000" needlearn="0" event="script" value="support/hastetest.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
</instant>
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SOUND_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)
local area = createCombatArea(AREA_BEAM5, AREADIAGONAL_BEAM5)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Thanks in advance for anyone who helps me with this.
Also, this is the utamo vita script I changed but same effect.. anyone in the effect area gets mana shield as well so I can't use it either.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Last edited: