Support::General SupportPost all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.
There is a function in the source (I think its called canAttack or isAttackable...something like that) that returns true or false depending on if the attacking mob can attack the defending mob. Somewhere in the middle of it there is a special check for client (and client pet) on client (or client pet) conditions. You would probably want to modify that block so that its checking vs. some factions instead of what it currently does. You could then expose a function to perl that you could call which would max the faction you want them to be, while simulataniously bottoming out the others. You would probably want to create a #command that would call the same function that Perl would use, so that you could change peoples factions in game for whatever reason.
Is this what you were looking for or did I completely miss the mark?
If you look in the zone folder the file named aggro.cpp is where you need to make this happen. The function is called IsAttackAllowed and this is where you need to set your rules at.
It shouldn't be that hard just take a look at the function and study the source for a bit. By studying the source you should be able to copy/cut and add your way into what you want.
Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.