• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua 8.42 TFS 0.2.3.0 - Sharpshooter Spell Won't Work

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:

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
 
Well I did some research and it turns out TFS 0.2.3.0 isn't capable of being compatable with those spell scripts for some reason. Anyone know how I can update to a newer version of TFS and the client while still keeping my custom sprites and spells and map and all that?
 
Back
Top