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

Condition Names/Poison Spell help

Captain Orhotek

New Member
Joined
May 20, 2009
Messages
118
Reaction score
1
I have been in the process of making two spells but I have ran into a road block. My first spell is

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -1.1, -100)

local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, TRUE)
setConditionParam(condition, CONDITION_PARAM_STARTVALUE, 50)
setConditionParam(condition, CONDITION_PARAM_MAXVALUE, 70)
setConditionParam(condition, CONDITION_PARAM_MINVALUE, 20)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 6000)
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, TRUE)
setCombatCondition(combat, condition)

local area = createCombatArea( { {1, 1, 1}, {1, 2, 1}, {1, 1, 1} } )
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

The problem I face on the above spell is everything seems to work but the min-max value and unless I am mistaken the spell should do its initial dmg based off the skill/ml calc then go to the start value (as the spell currently does) but after that it goes from 50 and counts down. I have the Min/Max in there to its random until the poison is taken off..but it is not random.

Now the next spell is this

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
 
local condition2 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition2, CONDITION_PARAM_SKILL_CLUB, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_SWORD, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_AXE, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, 50)
setCombatCondition(combat, condition2)

function onCastSpell(cid, var)
	local ret = LUA_ERROR
	if(doCombat(cid, combat, var) == LUA_NO_ERROR) then
		ret = LUA_NO_ERROR
	end
	return ret
end

The spell above as you can see adds skills to axe,sword,shield..etc but I am trying to get it to add to magic level but I can not find a way for that to happen as MAGIC does not work inplace of anything.

Now for the condition part of this post that I need help on simply means other words to use in place of
Code:
local condition = createConditionObject(CONDITION_POISON)
because all I can get to work for me at the moment is poison and drunk. I have not tried Haste but I am sure that works. The one that I have tried that I cant get us CURSED or CURSE in the condition part. Is that the correct word or is it something else? And on top of that what are all the conditions.
 
Back
Top