Script: Ordershield

From Ultima Online: The Second Age
Jump to: navigation, search
inherits virtueshield;
trigger equip
{
  if (isNPC(equippedon))
  {
    return (0x01);
  }
  if (getCompileFlag(0x01))
  {
    if (hasScript(equippedon, "orderguild"))
    {
      return (0x01);
    }
  }
  else
  {
    if (Q4SN(equippedon) >= 0x05)
    {
      return (0x01);
    }
  }
  Q4HV();
  return (0x00);
}