After some fooling around with some concepts, this is where I ended up. All of this was done without any source code modification. I intentionally added notes where things did not work as you might expect. I had to kludge together some logic because bots don't return owner-related information correctly via Perl for such reasons. All required "QnD" plugins included.
in <EQEMU_DIR>\plugins\MySQL.pl Code:
# USAGE: plugin::SelectHashref($dbh, $sql); Code:
# USAGE: plugin::GetGroupedBots($client) Code:
sub EVENT_SAY { |
I've made a small patch that allows for easier manipulation of bots via Perl. The patch was applied to source that was up to date at the time of this posting. I've got a lot of other ideas on how to manage this. Anything that I choose to retain for my custom server will be there. A link is available in my signature.
|
Thanks c0ncrete for looking into options for greater bot control. Also thanks for sharing with the community. I hope to get to a point where I can contribute as well. I would love to see this project continually get better as a whole.
I notice other classes being healed differently so I took a peak at the bot code. In SpellType_Heal Necromancers were configured to only be healed if less than 40% health. So that answered my question. I will update my initial post accordingly. I don't really have any coding experience. Obviously I can look at some of the code and half ass follow what it is doing. Once I become more comfortable and knowledgeable I will start modifying and compiling custom settings. I have a lot of ideas I want to test out! :) Thanks for everyone's help! EDIT: Well, I can't edit my original post with the conclusion and answer so everyone will just have to read the whole thing to get it. |
I'm getting serious about how to approach this over in another thread.
You lucked out and hit three areas I love to screw about with. Scripting, bots and their AI, and poking around databases. |
All times are GMT -4. The time now is 01:06 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.