Salvus
Well-Known Member
- Joined
- Feb 7, 2019
- Messages
- 102
- Solutions
- 1
- Reaction score
- 69
How can i make this work on TFS 1.3?
Trying to change my server from 0.4 to tfs 1.3 because of @oen432 scripts. xD
I need this spell to work on TFS 1.3
Trying to change my server from 0.4 to tfs 1.3 because of @oen432 scripts. xD
I need this spell to work on TFS 1.3
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_SUBID, 4)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPERCENT, 123)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5 * 60 * 1000)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end