Script Function: Q658
From Ultima Online: The Second Age
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); }