View Single Post
  #3  
Old 06-16-2009, 06:42 PM
VallonTallonZek
Sarnak
 
Join Date: May 2008
Location: Halas
Posts: 42
Default

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?
Reply With Quote