• 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 [0.4] DPS meter

elnelson

Lunaria World Dev
Joined
Jun 20, 2009
Messages
580
Solutions
2
Reaction score
58
Location
México
i looked this post: Monster - Training Dummy with DPS calculation (https://otland.net/threads/training-dummy-with-dps-calculation.263659/) and would see a nice addition if someone could help me build this script, to be honest i donot have an idea how to calculate this.

The main idea is to check how many damage (or heal) has be done in the last second (for example with a trainer or a boss).
Since TFS 0.4 doesnt have :
Lua:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
I was thinking if it was possible to be done via storages, i dunno, like using:
Code:
function onStatsChange(cid, attacker, type, combat, value)
to save the damage done as a storage value in the last second and then show an animatedtext with the DPS (?)

Hope you guys could help me doing this :)
 
Back
Top