• 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 Looking for script that: Adds time to cooldown when player casts before cooldown is up.

Tysoch86

New Member
Joined
Jan 8, 2016
Messages
81
Reaction score
1
Hi everyone, I'm new here so hopefully I can explain this properly.

I am looking to add a punishment to players who spam or even incorrectly cast a spell. The script could add time to the cooldown that the player is attempting to use. I feel that this would add a large amount of skill and thus play to the game.

I hope this scrip exists or can exist. If it does I am sorry I could not find it..

I am using TFS 1.1-win32 on Windows 8.

Please let me know if you need any more info or if there is anything I can do to help.
Thank you!
 
this require a source edit, because no script is loaded if the spell is on cooldown.
what have to do is:

add a key in spells xml which represent the extra cooldown

in something like that:
if (player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, group)
get the remaining cooldown time, remove it and put on player the new condition remaining + extra cooldown

easy ^^
 
Back
Top