• 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!

How to - Monster spell -10% HP allways

Szafi

www.rookwar.pl
Joined
Mar 2, 2009
Messages
165
Reaction score
10
Location
Poland
TFS 0.4
Hello.

Code:
  <attacks>
    <attack name="Fire Stone" interval="100" range="6" chance="10" min="-1000" max="-1000"/>
    </attacks>

How make script?
Monster use spell and remove always 10% hp

Thanks.
 
That is why you should get used to multiplying using decimals for more precision because you never know the value being passed :)
Code:
101 / 32 = 3.15625 -- bad
101 * .32 = 32.32  -- good
Do you realize what I just said? Apparently not based on your second demonstration, so I'd like to advise you to re-read it. You act as if I've never multiplied decimals when it turns out a majority of my spells are multiplied with decimals. Just because I prove a point to you that one of your ideas that you thinks a great idea, is a terrible idea doesn't mean you gotta come back and try teaching me something I'm well aware of. It's not my first rodeo here, so just sit in the stands and observe instead of making yourself look like an idiot.
 
Do you realize what I just said? Apparently not based on your second demonstration, so I'd like to advise you to re-read it. You act as if I've never multiplied decimals when it turns out a majority of my spells are multiplied with decimals. Just because I prove a point to you that one of your ideas that you thinks a great idea, is a terrible idea doesn't mean you gotta come back and try teaching me something I'm well aware of. It's not my first rodeo here, so just sit in the stands and observe instead of making yourself look like an idiot.
Rage much?
 
Back
Top