TFS 1.2 block Spell in pz

lazarus321

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

 

Sleet

Member
Joined
Sep 3, 2016
Messages
107
Reaction score
7
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.
 
OP
L

lazarus321

Member
Joined
May 8, 2017
Messages
155
Reaction score
15
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))
 

Sleet

Member
Joined
Sep 3, 2016
Messages
107
Reaction score
7
Please send your spell script and I'll take a look.
 
Top