Script Function: Q55L

From Ultima Online: The Second Age
Revision as of 17:31, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q55L(<span style="color:#0000FF">obj</span> guard, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function obj Q55L(obj guard, obj killer)
 {
   obj Q58D;
   obj Q4QI;
   obj Q47Z = findClosestBBoard(getLocation(guard));
   list Q4E4;
   int Q55K = 0x00;
   int blah;
   string Q4GQ;
   int Q463;
   getContents(Q4E4, Q47Z);
   int Q55T = numInList(Q4E4);
   for(int i = 0x00; i < Q55T; i++)
   {
     Q58D = Q4E4[i];
     if (getObjType(Q58D) == 0x0EB0)
     {
       if (0x00)
       {
         blah = getResource(Q463, Q58D, "gold", 0x03, 0x02);
         Q4GQ = Q463;
         bark(guard, "Message has " + Q4GQ + " gold reward.");
       }
       if (hasObjVar(Q58D, "killer"))
       {
         Q4QI = getObjVar(Q58D, "killer");
         if (killer == Q4QI)
         {
           if (0x00)
           {
             bark(guard, "Posting for " + getName(killer) + " found!");
             blah = getResource(Q463, Q58D, "gold", 0x03, 0x02);
             Q4GQ = Q463;
             bark(guard, "Message has " + Q4GQ + " gold reward.");
           }
           return (Q58D);
         }
       }
     }
   }
   return (NULL());
 }