Modify class stats

Hi, im making a custom server and im modifying the aviable classes but i dont know how to modify their atributes, i mean, the agility for a warrior only mod his armor and melee power but in a hunter it changes the range power too, the intelect in a mage increase his % haste but in a hunter makes nothing (only more mana) and in a warrior the strenght increases his defense too but it does not in other classes. How can i make increase the hunter’s defenses with strenght and his % haste in spell with intelect?