Script Function: setBounty

From Ultima Online: The Second Age
Jump to: navigation, search
function void setBounty(obj killer)
{
  string Q4GQ;
  postKillerToBB(killer);
  attachScript(killer, "bountymark");
  setNotoriety(killer, (0x00 - 0x7F));
  barkTo(killer, killer, "A bounty hath been issued for thee, and thy worldly goods are hereby confiscated!");
  obj bank = getItemAtSlot(killer, 0x1D);
  list Q47M;
  getContents(Q47M, bank);
  for(int i = 0x00; i < numInList(Q47M); i++)
  {
    bank = Q47M[i];
    if (0x00)
    {
      Q4GQ = "Deleting bank item: " + getName(bank);
      systemMessage(killer, Q4GQ);
    }
    deleteObject(bank);
  }
  return ();
}