• 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 Non aggressive spell being aggressive.

Dionizy

New Member
Joined
Mar 18, 2018
Messages
15
Reaction score
0
Tfs 0.3.6
Lua:
local level = 1
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 14)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, (30 + 30 * level) * 1000)
setConditionParam(condition, CONDITION_PARAM_SUBID, CONDITIONSUBID_SHILLING)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 2 * level)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_AGGRESSIVE, false)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
It cannot be used in PZ and gives the user infight condition when used outside it.
 
Solution
Hello there, Dionizy.

What you're looking for can be found inside /data/spells/spells.xml.

Code:
    <instant group="healing" spellid="3" name="Ultimate Healing" words="exura vita" lvl="20" mana="160" aggressive="0" selftarget="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/ultimate healing.lua">
        <vocation name="Sorcerer"/>
        <vocation name="Druid"/>
        <vocation name="Master Sorcerer"/>
        <vocation name="Elder Druid"/>
</instant>

It's the "aggresive" attribute, which can be placed on 1 for true (this will give you the in fight condition) or 0 for false, which will not give you any condition unless specified in the spellName.lua

Kindest Regards,
Okke
Hello there, Dionizy.

What you're looking for can be found inside /data/spells/spells.xml.

Code:
    <instant group="healing" spellid="3" name="Ultimate Healing" words="exura vita" lvl="20" mana="160" aggressive="0" selftarget="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/ultimate healing.lua">
        <vocation name="Sorcerer"/>
        <vocation name="Druid"/>
        <vocation name="Master Sorcerer"/>
        <vocation name="Elder Druid"/>
</instant>

It's the "aggresive" attribute, which can be placed on 1 for true (this will give you the in fight condition) or 0 for false, which will not give you any condition unless specified in the spellName.lua

Kindest Regards,
Okke
 
Solution
Back
Top