• 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 Spell Buff Weapon

lazarus321

Member
Joined
May 8, 2017
Messages
209
Reaction score
20
Is it difficult to make a spell to buff weapons? Ex. 20% of the damage of the equipped weapon will be extra poison damage. Can anyone help to develop this?
 
onCastSpell
player:setStorageValue(storage, 1)
addEvent(setPlayerStorageValue, bufftime(ms), player.uid, storage, 0)

onHealthChange
if player:getStorageValue(storage) == 1 then
secondaryDamage = primaryDamage * 0.2
secondaryType = COMBAT_EARTH

its just an example, and a really quick code to show you the idea to do it, you need some lua knowledge.
 
Back
Top