I´m trying to add more dmgs for spec rangers when they are using a bow.
But it wont work...
This is what I have done:
[This is my hitscript.inc file and Im using Pol095]
Could sure need some help, thx..function ModByDist( attacker, defender, weapon, basedamage )
if( weapon.skillid == SKILLID_ARCHERY )
basedamage := basedamage
* ((attacker.dexterity + 0) * 0)
/ (((attacker.strength + 0.0)) / 10.0);
var dist := Distance( attacker, defender );
if( (dist <1> 10) )
basedamage := basedamage * 0.25;
endif
else
var level := GetObjProperty( attacker, CLASSEID_RANGER );
if( level )
basedamage := basedamage * ClasseBonusByLevel( level );
endif
endif
return basedamage;
endfunction