Script Function: Q5VI

From Ultima Online: The Second Age
Revision as of 04:24, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5VI(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5VI(obj this, obj speaker)
 {
   if (getMoney(speaker) < 0x1E)
   {
     if (amtGoldInBank(speaker) < 0x1E)
     {
       bark(this, "Thou dost not have 30 gold, not even in thy bank account.");
       return ();
     }
   }
   list Q5I2;
   getContents(Q5I2, this);
   if (numInList(Q5I2) > 0x64)
   {
     bark(this, "I am sorry, my stables are full.");
     return ();
   }
   bark(this, "I charge 30 gold per pet for a real week's stable time. I will withdraw it from thy bank account. Which animal wouldst thou like to stable here?");
   setObjVar(this, "petStablerAsker", speaker);
   targetObj(speaker, this);
   return ();
 }