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

TFS 0.X utito tempo does not lower shielding PERCENT problem TFS 0.4 r3884

Womos

Member
Joined
Dec 20, 2015
Messages
45
Reaction score
5
A negative value seems not to work with percentages, although is set by default:
Lua:
CONDITION_PARAM_SKILL_SHIELDPERCENT, -100)
but it works fine when I use option with reducing by chosen value without PERCENT:
Lua:
CONDITION_PARAM_SKILL_SHIELD, -100)
(like death ring for example)

I assume that the problem is in the sources?
 
Are you using main TFS 0.4 or something based on it (otx) or wtv? I have TFS 0.4 rev3777/3884 and it works fine on both, My default script looks like this one.
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 135)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, -100)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
XML:
    <instant name="Blood Rage" words="utito tempo" lvl="60" mana="290" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/blood rage.lua">
        <vocation id="4"/>
        <vocation id="8"/>
    </instant>
 
Are you using main TFS 0.4 or something based on it (otx) or wtv? I have TFS 0.4 rev3777/3884 and it works fine on both, My default script looks like this one.
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 135)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, -100)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
XML:
    <instant name="Blood Rage" words="utito tempo" lvl="60" mana="290" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/blood rage.lua">
        <vocation id="4"/>
        <vocation id="8"/>
    </instant>
I'm using exactly the same so it shouldn't work for you go and check it if you can shielding doesn't change
btw when you reverse it and add minus "-" to melee -135 it won't work either so it's not just a problem with shielding
 
My bad I have just noticed it doesn't work although I remember it used to work back in the time.
I have done a quick/bad workaround you might be using it or wait till tomorrow and I may find a different solution.
Lua:
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 100/100)
That's what I have done, It reduces the skills to 1.
 
Back
Top