The White Owl
New Member
- Joined
- Apr 4, 2015
- Messages
- 7
- Reaction score
- 0
I can't seem to get my sharpshooter spell among others to work...well if anyones willing to help me find out what I'm doing wrong here's the script:
-
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
And...This is the error that pops up in my server window.
[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
Again if anyone could help me out, that would be awesome... can't seem to figure out whats going on.
Also if anyone takes a look at this I'm using TFS 0.2.3.0. 8.42
Thanks again.
-
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
And...This is the error that pops up in my server window.
[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
Again if anyone could help me out, that would be awesome... can't seem to figure out whats going on.
Also if anyone takes a look at this I'm using TFS 0.2.3.0. 8.42
Thanks again.