Script Function: Q5VP
From Ultima Online: The Second Age
function void Q5VP() { int Q5L0 = Q5JY[0x00]; if (Q5L0 > getGeneric(Q4FQ, Q5LP)) { systemMessage(Q4FQ, "You ran out of " + getNameByType(Q5LP) + "."); Q4FQ = NULL(); return (); } destroyGeneric(Q4FQ, Q5LP, Q5L0); actionBark(Q4FQ, 0x22, "*You start grinding some " + getNameByType(Q5LP) + " in the mortar.*", "*" + getName(Q4FQ) + " starts grinding some " + getNameByType(Q5LP) + " in a mortar.*"); sfx(getLocation(Q4FQ), 0x0242, 0x00); shortCallback(this, 0x0B, 0x5A); return (); }