View Single Post
Old 16.11.2006, 14:14   #17
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by HF View Post
hm... Are you can learn me?
Code:
effect = {{t_hp;50;3}} = 700 hp 15sec
effect = {{t_hp;24;3}} = 336 hp 15sec
effect = {{t_hp;8;3}} = 112 hp 15sec
effect = {{t_hp;1;3}} = 14 hp 15sec
1) how do calculate it? 700 hp... 15 sec... from this [t_hp;50;3]
And from 1 to 2 question.
2) what mean each param? 50 what? 3 what?
I'm pretty sure the formula is like so:

t_hp effect = (((param1 * param2) * seconds / param2) - param1)
700 = (((50 * 3) * (15/3)) - 50)
700 = ((150 * 5) - 50)
700 = 750 - 50
700 = 700

So param1 is HP healed per tick (1 second) and param2 is how many ticks to wait between heals (3 seconds). Potions work the same way, healing you n HP every 3 seconds about.
mcrabben7 is offline