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

How to enable spells in PZ?

skeira97

New Member
Joined
Dec 12, 2011
Messages
13
Reaction score
0
Hey!

Im using TFS 1.4... how/where do i change so i can use all defensive spells like utani gran hur, exura vita, exiva etc when in PZ?


Thanks in advance!:)
 
In spells.xml change this
XML:
aggressive="1"
to this
XML:
aggressive="0"
or just remove it.
sometimes its added inside the Lua script file like this one.
Lua:
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, true)
change to
Lua:
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
Also 1.4 not released yet so I guess you should write 1.3 till the official release.
 
In spells.xml change this
XML:
aggressive="1"
to this
XML:
aggressive="0"
or just remove it.
sometimes its added inside the Lua script file like this one.
Lua:
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, true)
change to
Lua:
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
Also 1.4 not released yet so I guess you should write 1.3 till the official release.


Does not work, cant do spells still even when both set to false hmm
 
Post the script of the spell you are testing and the XML line.
Also do you have any flags in your player group?
What error do you get when you try to use the spell?
 
Post the script of the spell you are testing and the XML line.
Also do you have any flags in your player group?
What error do you get when you try to use the spell?


Im testing just Exura Vita for example....


Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 6.8) + 42
    local max = (level / 5) + (maglevel * 12.9) + 90
    return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
    return combat:execute(creature, var)
end


and XML

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

What do u mean with flags in group? and i DONT get any errors ^^ it only says "cannot cast this spell while in protection zone"
 
Just tested it and it works fine, Check data\scripts\spells if you have it there too.
also did you restart the server when testing or you only reloaded?
 
Last edited:
Back
Top