11-23-2013, 12:54 AM
(11-22-2013, 07:05 PM)tem0x43 Wrote: Yes ID monster and player is 99 and which i get by using Creature.ByName return own ID. But i want know only why dosn't work c:=(k-z). Why don't return: ...-2..-1..0..1.2..., and always return 0?
becouse if you want to make any mathematical operations you need to use :
Code:
VarAdd(Name, Value) Increase the variable value by a given value
Inc(Name, Value) Increase the variable value by a given value
VarSub(Name, Value) Decrease the variable value by a given value
Dec(Name, Value) Decrease the variable value by a given value
VarMult(Name, Value) Multiplies the variable value by the given value
Mult(Name, Value) Multiplies the variable value by the given value
VarDiv(Name, Value) Divides the variable value by the given value
Div(Name, Value) Divides the variable value by the given value
VarMod(Name, Value) Returns the modulos remainder of the Variable by the Value
Mod(Name, Value) Returns the modulos remainder of the Variable by the Value