Script Function: Deactivate
From Ultima Online: The Second Age
function void deactivate(obj this) { if (hasObjVar(this, "_objectId") && hasObjVar(this, "_objectType")) { obj objectId = getobjvar_obj(this, "_objectId"); int objectType = getobjvar_int(this, "_objectType"); deleteIfValid(objectId, objectType); removeObjVar(this, "_objectId"); processTriggerCmds(this, "d"); } return; }