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

[Lua] Need help finishing spell :P

sonata

New Member
Joined
Jan 26, 2009
Messages
84
Reaction score
0
Need help finishing this spell :P it for "shield block" spell xD
will putting (combat, COMBAT_PARAM_BLOCKSHIELDPERCENT, 50) work to block at a 50% chance?

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT)
setCombatParam(combat, COMBAT_PARAM_[B]BLOCKSHIELDPERCENT[/B], 50)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_TICKS, 500000)
setCombatCondition(combat, condition)

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

end
 
Nope, there's no such function. You would need to modify sources, which means you must know C++.

Kind regards,
Cykotitan
 
Back
Top