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

[Spell] Cid in conditons?

kyoushirou

I like trains
Joined
Apr 29, 2009
Messages
224
Reaction score
59
Is there anyway to make cid work in conditions?

like

setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, getPlayerLevel(cid))
 
huh you cant use:
Code:
variable = getPlayerLevel(cid)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, variable)
??
 
Code:
local condition = {}

for i = 1, 500 do
	condition[i] = createConditionObject(CONDITION_ATTRIBUTES)
	setConditionParam(condition[i], CONDITION_PARAM_BUFF, true)
	setConditionParam(condition[i], CONDITION_PARAM_SKILL_MELEE, i)
end

function onCastSpell(cid, var)
	return doAddCondition(cid, condition[getPlayerLevel(cid)])
end
the only way :p
 
Back
Top