Hello there,
I actually have a problem with formulas for the melee bot output dmg. The goal is to make their dmg calculated on criterias and to be as close as the clients.
My maths are pretty bad and I need your help.
For the dmg calculation, I would like to take into consideration:
- the lvl of the bot
- the class
- the atk/delay ratio of a weapon (1h, dual wield and 2h)
- the str/dex/agi depending of the class
- any other criteria ?
For an example and for a warrior with 100str, I've tried:
For a 1hand weap in the primary melee slot:
Code:
( (atk/delay)*(str/3) ) + lvl
For a 1hand weapon in the secondary melee slot:
Code:
( (atk/delay)*(str/3) ) + (lvl*0.33)
At lvl10, with a 10/30 weapon, the warrior would deal as its max melee output:
primary: 14dmg
At lvl20,
primary: 18dmg
at lvl50,
primary: 27dmg
wich isn't accurate at all..
This is just an example to show how bad are my maths and what the issue is : to find a correct formula for the melee bot.
The second issue is the way the bots do assist. I need to have advises/ideas on this.
Actually, each bot attacks the mob(s) that attack this bot. Also, each bot attacks the mob(s) that attacks you(the leader).
It needs to be improved and for that I have an idea but I need your advises.
I can make it so each bot (but the CC bots) assist the main melee of the group. I mean, if there is a warrior, they only assist him, else if there is a SK they assist him, else if there is a paladin, etc... This way, it will be easier to code the CC bot so they can do some CC on adds.
But now, what happens if you're not grouped with any melee ? I could make it so they assist you by default... or a pet...
Any ideas on this ?
G'day,
mag