The White Owl
New Member
- Joined
- Apr 4, 2015
- Messages
- 7
- Reaction score
- 0
Hello everyone, I'm seeking some help for my sharpshooter spell. It's not the only one that is doing this but I figured it was a good starting point. I don't know what I'm doing wrong here but when I run my startup this pops up in the window:
This is the script for the sharpshooter spell.
Code:
[27/10/2015 18:30:40] Lua Script Error: [Spell Interface]
[27/10/2015 18:30:40] data/spells/scripts/support spells/sharpshooter.lua
[27/10/2015 18:30:40] luaSetConditionObject(). Condition not found
[27/10/2015 18:30:40] Lua Script Error: [Spell Interface]
[27/10/2015 18:30:40] data/spells/scripts/support spells/sharpshooter.lua
[27/10/2015 18:30:40] luaSetConditionParam(). Condition not found
[27/10/2015 18:30:40] Lua Script Error: [Spell Interface]
[27/10/2015 18:30:40] data/spells/scripts/support spells/sharpshooter.lua
[27/10/2015 18:30:40] luaSetConditionParam(). Condition not found
[27/10/2015 18:30:40] Lua Script Error: [Spell Interface]
[27/10/2015 18:30:40] data/spells/scripts/support spells/sharpshooter.lua
[27/10/2015 18:30:40] luaSetCombatCondition(). Condition not found
This is the script for the sharpshooter spell.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local speed = createConditionObject(CONDITION_HASTE)
setConditionParam(speed, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(speed, 0.7, 56, 0.7, 56)
setCombatCondition(combat, speed)
local exhaust = createConditionObject(CONDITION_EXHUAST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end