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

Skill Formula

russogracie

New Member
Joined
Sep 9, 2010
Messages
205
Reaction score
2
I wanted someone who could modify this formula because I have a star atk: 85, and i want to hit it 400 to 600. Anyone can modify the formula?

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 10, -200, 1.0, -200)

local xCombat = createCombatObject()
setCombatParam(xCombat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)

local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 4, 2000, -2)
addDamageCondition(condition, 6, 2000, -1)
setCombatCondition(xCombat, condition)

function onUseWeapon(cid, var)
local ret = doCombat(cid, combat, var)
if(ret == false) then
return false
end

local target = variantToNumber(var)
if(target ~= 0) then
-- chance to poison the enemy
local chance = math.random(0, 100)
if(chance > 100) then
ret = doCombat(cid, xCombat, var)
end
end
return ret
end
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 10, -400, 1.0, -600)

local xCombat = createCombatObject()
setCombatParam(xCombat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)

local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 4, 2000, -2)
addDamageCondition(condition, 6, 2000, -1)
setCombatCondition(xCombat, condition)

function onUseWeapon(cid, var)
local ret = doCombat(cid, combat, var)
if(ret == false) then
return false
end

local target = variantToNumber(var)
if(target ~= 0) then
-- chance to poison the enemy
local chance = math.random(0, 100)
if(chance > 100) then
ret = doCombat(cid, xCombat, var)
end
end
return ret
end
 
Back
Top