• 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

OP
OP
Svira

Svira

Member
Joined
Jan 27, 2008
Messages
137
Reaction score
9
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.
 

slaw

MyAAC Creator
Premium User
Joined
Aug 27, 2007
Messages
3,354
Solutions
103
Reaction score
808
Location
Germany
GitHub
slawkens
Twitch
PL_Flamaster
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.
 
Top