• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Need Help, Sharpshooter{{LUA Script Error:Spell Interface}}

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.
 
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.


This needs to be in support board https://otland.net/forums/support.16/ if u want this spell solved by someone
 
Back
Top