• 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 DoT type spell

DrComet

New Member
Joined
Nov 25, 2014
Messages
63
Reaction score
3
Hello there. I would like to create DoT type spell based on creature's max health. Something like hit 10 times for 2% of its max hp (if it's not possible for get target hp, it may be the caster's hp). I've tried many ways but none of them work like for example getCreatureMaxHealth(cid) / 100. Is it even possible to do something like this?

I use TFS 0.3.6

Cheers.
 
for example on my tfs 1.2 i create 3 different combat (1 for intial dmg, 1 for dot and 1 for last tick dmg) then i just do
docombat -- initial dmg
for i=1,x,1 do
addEvent(docombat) --with the dot combat
end
addEvent(docombat,x)--last dmg tick
 
Yeah but it's 1.x so it may use another functions etc, so I can only have hope that I can do something similar on 0.3.6 :D
 
Back
Top