Full Version : Guards
xmlspawner >>Scripting Support >>Guards


<< Prev | Next >>

Hanse of DL- 07-05-2006
I have found this to be a useful system, but I wanted to know, if I spawn giards, is there a manner for them not to attack players of negative karma while in trammel?

example: a necromage goes to cove, the city is guarded but the guards attack them

ArteGordon- 07-05-2006
you would have to modify baseguard.cs to add something like this

CODE

 public override bool IsEnemy(Mobile m)
 {
  if (m.Player && m.Karma < 0 && m.Map == Map.Trammel)
   return false;

  return base.IsEnemy(m);
 }