• 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!

DBO, Aura effect work for few minutes >= 5000 mana

legadoss

New Member
Joined
Jun 1, 2014
Messages
142
Reaction score
4
Give as much information as possible(TFS version, OS, errors, scripts)
hello, how i can make this spell:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 91)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_LIGHT)
setConditionParam(condition, CONDITION_PARAM_LIGHT_LEVEL, 8)
setConditionParam(condition, CONDITION_PARAM_LIGHT_COLOR, 215)
setConditionParam(condition, CONDITION_PARAM_TICKS, 30000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
work for few minutes and if player have mana 5000 or more
 
Please read Support board rules before posting a thread.

5. Incomplete Problem Description:
- Post as much useful information as possible. If the problem is about something on your server, post the server version and client version. Also always post the errors you get and the scripts with the problems.
- Give as much information as possible(TFS version, OS, errors, scripts).
1. This should be in Support section
Back to your issue
Lua:
setConditionParam(condition, CONDITION_PARAM_TICKS, 30000)
Means 30 seconds so if you want to change it to 5 mints you can write
Lua:
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 30000)
or
Lua:
setConditionParam(condition, CONDITION_PARAM_TICKS, 300000)
And for the more than 5k mana it should be in
data\spells\spells.xml
change mana="xxxx"
 
Back
Top