Difference between revisions of "Script: SetBounty"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
 
 
Line 2: Line 2:
 
   {
 
   {
 
     <span style="color:#0000FF">string</span> Q4GQ;
 
     <span style="color:#0000FF">string</span> Q4GQ;
     [[postKillerToBB|<span style="color:#2B91AF">postKillerToBB</span>]](killer);
+
     [[Script_Function:_postKillerToBB|<span style="color:#2B91AF">postKillerToBB</span>]](killer);
 
     [[Engine Function:_attachScript|<span style="color:#FF0000;font-weight:bold">attachScript</span>]](killer, <span style="color:#800000">"bountymark"</span>);
 
     [[Engine Function:_attachScript|<span style="color:#FF0000;font-weight:bold">attachScript</span>]](killer, <span style="color:#800000">"bountymark"</span>);
 
     [[Engine Function:_setNotoriety|<span style="color:#FF0000;font-weight:bold">setNotoriety</span>]](killer, (0x00 - 0x7F));
 
     [[Engine Function:_setNotoriety|<span style="color:#FF0000;font-weight:bold">setNotoriety</span>]](killer, (0x00 - 0x7F));

Latest revision as of 10:06, 21 October 2018

 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 ();
 }