• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Spell] Spell that reduce random skill

  • Thread starter Thread starter Evil Puncker
  • Start date Start date
Status
Not open for further replies.
E

Evil Puncker

Guest
Hello =) i want a spell that reduces -1 on a random skill for 20 seconds, i only need the .lua the rest i can do by myself :D
 
not the skill rate, example:

I atk the player B with that spell and randomly one of his skills goes -1

example (before):
fist: 10
sword: 10
club: 10
axe: 10
distance: 10

example(after ataked):
fist: 10
sword: 10
club: 9
axe: 10
distance: 10

then after 20 seconds its goes back to 10, got it? :D
 
You can try smth alternative: using onStatsChange to reduce the damage dealt by player
 
From a barbarian brutetamer:
local condition, combat = {}, {}

for i = 20, 25 do
combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SNOWBALL)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, i, -1)
setCombatCondition(combat, condition)
end

function onCastSpell(cid, var)
return doCombat(cid, combat[math.random(20, 25)], var)
end

It will reduce with -1 on a random skill for 5 seconds, just change 5000 to 20000..

Sentielo.
 
Status
Not open for further replies.
Back
Top