View Single Post
  #12  
Old 02-08-2017, 11:33 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Yeah, I think there has been several flips on philosophy regarding bots.

Mercs should follow the same behavior as that of live, since that's where they originate.

Bots, on the other hand, are not and can be implemented as we choose.

But, you are correct..mercs were essentially a cut-and-paste from the bot code in the beginning.

That code should work with mercs..but, the timer issue would need to be worked out.

I had to add a timer to the bot class and I'm not familiar enough with mercs to know what they use..but, it should be possible.
(Though, I wouldn't recommend the "back-off" code..unless live npcs do that too - not to be confused with pet back_off..)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote