• 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 Weird Exura Sio [TFS 1.3]

Addams

OTMadness.com OTSes Services
Staff member
Board Moderator
Joined
Sep 29, 2009
Messages
2,920
Solutions
342
Reaction score
1,688
Location
Egypt
When I use this script it looks like this and it doesn't heal friend or heal myself.
35749
Lua:
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)
    min = ((level / 5) + (maglevel * 6.3) + 45)
    max = ((level / 5) + (maglevel * 14.4) + 90)
    return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var)
    return combat:execute(creature, var)
end
I tried other one still not working and it looks like this.
35750
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

function onGetFormulaValues(player, level, magicLevel)
    local min = (level / 5) + (magicLevel * 6.3) + 45
    local max = (level / 5) + (magicLevel * 14.4) + 90
    return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant)
    creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
    return combat:execute(creature, variant)
end
 
Last edited:
Solution
Server doesn't start when I put this. I forgot to mention sorry I am using downgraded TFS 1.3 Downgraded.
That's how my spells.xml looks like, I don't think it has any difference from the one you posts only
XML:
    <instant group="healing" name="Heal Friend" words="exura sio" level="18" mana="140" premium="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" needlearn="0" script="healing/heal_friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
I added and
Still nothing changes same errors.
so i think the problem is in your tfs, because your lua scripts is ok, and your xml is ok too...
i think is better u ask to Nekiro and report...
data/spells/spells.xml
change your to this:
Code:
    <instant group="healing" spellid="84" name="Heal Friend" words="exura sio" lvl="18" mana="140" prem="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/heal friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
 
data/spells/spells.xml
Code:
    <instant group="healing" spellid="84" name="Heal Friend" words="exura sio" lvl="18" mana="140" prem="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/heal friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
Server doesn't start when I put this. I forgot to mention sorry I am using downgraded TFS 1.3 Downgraded.
That's how my spells.xml looks like, I don't think it has any difference from the one you posts only
groupcooldown="1000"
XML:
    <instant group="healing" name="Heal Friend" words="exura sio" level="18" mana="140" premium="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" needlearn="0" script="healing/heal_friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
I added
groupcooldown="1000"
and
spellid="84"
Still nothing changes same errors.
 
Last edited:
Server doesn't start when I put this. I forgot to mention sorry I am using downgraded TFS 1.3 Downgraded.
That's how my spells.xml looks like, I don't think it has any difference from the one you posts only
XML:
    <instant group="healing" name="Heal Friend" words="exura sio" level="18" mana="140" premium="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" needlearn="0" script="healing/heal_friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
I added and
Still nothing changes same errors.
so i think the problem is in your tfs, because your lua scripts is ok, and your xml is ok too...
i think is better u ask to Nekiro and report this bug in her downgraded tfs..
and u dont need add groupcooldown and spellid, because 8.6 dont have this system
 
Solution
Ah I will report it, Thanks for your help.
Gonna set thread as solved and mark your answer as best answer just as soon as Nekiro confirms it is source related.
 
Last edited:
Yeah just report it on github, also there is possibility to heal through magic wall.
Ah going to try when I get this solved, I am still waiting for Nekiro to confirm on discord if this bug related to Source or LUA so I don't just make a false issue report because he said he won't help editing LUA bugs, just the ones related to source.
 
Ah going to try when I get this solved, I am still waiting for Nekiro to confirm on discord if this bug related to Source or LUA so I don't just make a false issue report because he said he won't help editing LUA bugs, just the ones related to source.
Try this :
Code:
    <instant group="healing" name="Heal Friend" words="exura sio" level="18" mana="140" premium="0" aggressive="0" blockwalls="1" selftarget="0" playernameparam="1" params="1" cooldown="1000" needlearn="0" script="healing/heal_friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
 
Try this :
Code:
    <instant group="healing" name="Heal Friend" words="exura sio" level="18" mana="140" premium="0" aggressive="0" blockwalls="1" selftarget="0" playernameparam="1" params="1" cooldown="1000" needlearn="0" script="healing/heal_friend.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
Yeah that one works perfect when I do exura sio "name" but If I just used Exura sio it does same error above instead of giving poff exhaust.
edit :
it also heals through walls like you expected above Mister Budex
 
It required source editing as roriscrave mentioned above.
Really thanks to Nekiro for fixing it quick everything is working perfect now!
 
Back
Top