• 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 tfs 1.2 unlock spells

Svira

Active Member
Joined
Jan 27, 2008
Messages
263
Solutions
11
Reaction score
35
Hello!

I'm using this script:
Team Battle

Question:
How too unlock healing spells? ... like exura vita...
 
You need to describe more.. if you really want help.
I don't know what the description is missing ... the problem is:
The script works perfectly, no bugs, BUT after transferring to the arena, spells such as: Exura (gran & vita) do not work, healing runes such as UH do not work.

Ultimately, utana vid was to be blocked and all spells and runes responsible for healing the player are blocked.

Please have someone find this lock in the code or explain how to remove it.
 
I don't know what the description is missing ... the problem is:
The script works perfectly, no bugs, BUT after transferring to the arena, spells such as: Exura (gran & vita) do not work, healing runes such as UH do not work.

Ultimately, utana vid was to be blocked and all spells and runes responsible for healing the player are blocked.

Please have someone find this lock in the code or explain how to remove it.

ok, so now you provided more description :)

Now I think I can help you, probably.

So, I looked into the files, and found this:

Code:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
    if not team_battle.isEnemy(creature, attacker) then
        return false
    end
    return primaryDamage, primaryType, secondaryDamage, secondaryType
end

This function is executed every time player executes a healing spell - for example "exura vita".

I think you need to change "return false" to "return true" to allow healing. I might be wrong. Just try it and tell me the result.

It's the creature script.
 
Back
Top