Quote:
Originally Posted by colonelklink
Are there any plans to improve the combat AI? I have a well geared witch that can kill everything easily but still dies when grinding because the bot doesn't use any evasion.
|
If you want to have a private Witch script for PYX contact me via skype or pm. We can discuss a price.
You can easily add evasion by yourself. The evasion can be handled with the combat script.
If mob distance < XXXX then do evasion shit with random numbers etc.
It's not sth that should be handled with the Grinding script itself, because you have different evasion moves for each class.
So it's based on the script's that are located in this folder
????\PyxBDO\scripts\Grinder\Combats
One example would be sth like that. It's from an official combat script that comes a long with pyx.
Code:
if actorPosition.Distance3DFromMe <= monsterActor.BodySize + 100 and selfPlayer.Stamina > 200 and selfPlayer.HealthPercent > 95 then
local rnd = math.random(1, 3)
if rnd == 1 then
print("GTFO! Teleporting time! To the left!")
selfPlayer:SetActionStateAtPosition(ACTION_FLAG_EVASION | ACTION_FLAG_MOVE_LEFT, actorPosition, 1750)
return
end
if rnd == 2 then
print("GTFO! Teleporting time! To the right!")
selfPlayer:SetActionStateAtPosition(ACTION_FLAG_EVASION | ACTION_FLAG_MOVE_RIGHT, actorPosition, 1750)
return
end
if rnd == 3 then
print("GTFO! Teleporting time! To the rear!")
selfPlayer:SetActionStateAtPosition(ACTION_FLAG_EVASION | ACTION_FLAG_MOVE_BACKWARD, actorPosition, 1750)
return
end
end