• 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+ [1.4.2] Possible to off spells coldown?

OTcreator

Active Member
Joined
Feb 14, 2022
Messages
425
Solutions
1
Reaction score
44
Hi,
It is possible to set a different colldown for spells when a player attacks a player and not monsters? NP. if it is marked as a target?
 
Yes, this is my idea how to do this

separate cooldown system from spells to
  • cooldown if monster is a target
  • cooldown if player is a target

maybe just spells.xml? like
cooldownMonster = 500, cooldownPlayer = 500 (if not set, read from cooldown defaulty)

then some checks if x spell has cooldownPlayer then it will set correct cooldown

in general doable in C++ mostly in spell.cpp / spell.h and maybe combat.h / combat.cpp
 
Back
Top