Script Function: setBounty

From Ultima Online: The Second Age
Revision as of 09:06, 21 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ();
}