Difference between revisions of "Script: Sheep"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { setObjVar|<span style="color:#FF0000;font-weight:bold">...") |
(No difference)
|
Latest revision as of 14:07, 5 October 2018
inherits globals;
trigger creation { setObjVar(this, "woolOnSheep", 0x1E); return (0x01); }
trigger time("hour:**") { int value = 0x00; int Q4Y0 = 0x00; int Q56A = 0x1D; if (!hasObjVar(this, "woolOnSheep")) { return (0x01); } value = getObjVar(this, "woolOnSheep"); if (value < Q56A) { Q4Y0 = value + 0x01; setObjVar(this, "woolOnSheep", Q4Y0); } else { if (getObjType(this) == 0xDF) { obj Q617 = requestCreateObjectIn(0x0DF8, this); transferResources(this, Q617, 0x1E, "cloth"); setObjVar(this, "woolOnSheep", 0x1E); setType(this, 0xCF); deleteObject(Q617); } } return (0x01); }