On OTS it's not 'attacking', it's 'using weapon'.
When you attack with basic attack, it goes to weapons.cpp and calculates damage for weapon you wear (by type: club, axe, sword, distance or wand), not check all equipped items 'attack'.
There are 3 functions that calculate weapon damage in TFS...