Script Function: Q658

From Ultima Online: The Second Age
Revision as of 04:12, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q658(<span style="color:#0000FF">obj</span> user) { <span style="color:#0000FF">int<...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q658(obj user)
 {
   int Q62A = getObjType(this);
   if (hasObjVar(this, "fuel"))
   {
     int fuel = getObjVar(this, "fuel");
   }
   switch (Q62A)
   {
   case 0x0B1A
     setObjVar(this, "burning", 0x00);
     setType(this, 0x0A26);
     break;
   case 0x0B1D
     setObjVar(this, "burning", 0x00);
     setType(this, 0x0A27);
     break;
   case 0x0B26
     setObjVar(this, "burning", 0x00);
     setType(this, 0x0A29);
     break;
   case 0x1854
     setObjVar(this, "burning", 0x00);
     setType(this, 0x1853);
     break;
   case 0x1858
     setObjVar(this, "burning", 0x00);
     setType(this, 0x1857);
     break;
   case 0x184A
     setObjVar(this, "burning", 0x00);
     setType(this, 0x1849);
     break;
   case 0x184E
     setObjVar(this, "burning", 0x00);
     setType(this, 0x184D);
     break;
   case 0x0A0F
     systemMessage(user, "You blow out the candle, and discard it.");
     destroyOne(this);
     break;
   case 0x0A12
     systemMessage(user, "You douse the torch, and discard it.");
     destroyOne(this);
     break;
   case 0x0A15
   case 0x0A1A
   case 0x0A22
     setObjVar(this, "burning", 0x00);
     setType(this, Q62A + 0x03);
     break;
   default
     return (0x00);
     break;
   }
   sfx(getLocation(this), 0x47, 0x00);
   return (0x01);
 }