Script: SetBounty

From Ultima Online: The Second Age
Revision as of 17:33, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> setBounty(<span style="color:#0000FF">obj</span> killer) { <span style="color:#0000...")
(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 ();
 }