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

TFS 1.2 block Spell in pz

lazarus321

Member
Joined
May 8, 2017
Messages
209
Reaction score
20
Anyone know how to put this spell to not use it in pz area?

 
There might be 2 solutions I can think of right now.

On your spells.xml file, your spell needs to be on the attack group
XML:
group="attack"

Or maybe, for some reason, you need to remove the following flag from your spell:
XML:
agressive="1"

Your spell should look like something like this:
XML:
    <instant group="attack" name="Ultimate Explosion" words="exori gran max flam" level="90" mana="100" premium="1" range="3" casterTargetOrDirection="1" blockwalls="1" cooldown="30000" groupcooldown="4000" needlearn="0" script="attack/ultimate_explosion.lua">
        <vocation name="Sorcerer" />
        <vocation name="Master Sorcerer" />
    </instant>
If neither of these solutions work, please paste your spells.xml file here.
 
Thanks Sleet for try help.

Well, neither of these solutions work. My spell.xml it's according to your file.
I think I have other methods to solve but I do not know.

this way down I know how to put however I have to put "tile" as the coordinate. The spell above is in area I do not know how it would look.
Code:
tile:hasFlag(bit.bor(TILESTATE_IMMOVABLEBLOCKSOLID, TILESTATE_IMMOVABLEBLOCKPATH, TILESTATE_FLOORCHANGE, TILESTATE_PROTECTIONZONE))
 
Back
Top