• 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.X+ Disable Spells in specific area

aalqaq2

Trying to help, but I'm not too good at it.
Joined
Apr 10, 2017
Messages
112
Solutions
3
Reaction score
8
Is it possible to prevent spells /a spell from being used in a specific area (During World Event)? I was looking at Itutorial's Monster Wave Event and wanted to prevent players from being able to cast an AoE spell which will give them an unfair advantage.
 
Set a global storage when the world event starts and do something like this inside the spell script.

Lua:
local stor = Game.getStorageValue(yourstorage)
if stor and stor >= 1 then
    player:sendCancelMessage('Sorry, not possible during this event.')
    return false
end
 
Back
Top