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 
fist: 10
sword: 10
club: 10
axe: 10
distance: 10
fist: 10
sword: 10
club: 9
axe: 10
distance: 10
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