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

Defining condition damage.

DemShion

New Member
Joined
Apr 8, 2013
Messages
82
Reaction score
1
Location
Mexico
Hello, i want to know if its possible to define formula that returns a value that can be used in the addDamageCondition(condition1, 4, 1000, -THISVALUE), since ive tried math.random(), trying to get a formula by players lvl and sill etc but nothing seems to work im starting to think that i might have to add a 'condition' made by me in creature events or something like that.... ty for reading gl & and hf.
 
Yep I Tryed this too the conditions will have to be source codes to add values like that or make your own in creaturescripts
 
Okay so i got around it this way, just make an addEvent() after your onCastSpell

local time1 = 6
local storage1 = 999578

function doTheDamage(cid)
if isCreature(target) or isMonster(target) then
if exhaustion.check(cid, storage1) == true then
doTargetCombatHealth(cid, target, COMBAT_POISONDAMAGE, -10, -20, CONST_ME_HITBYPOISON)
addEvent(doTheDamage, 1 * 1200, cid)
return true
else
return false
end
end
end

exhaustion.set(cid, storage1, time1)
addEvent(doTheDamage, 1 * 1200, cid)
 
Last edited:
Back
Top Bottom