@prog pchown.muf 1 999 d i ( pchown.muf by Wog A Player Chown command. Takes an object @chown's it if it's set CHOWN_OK, and then unset the CHOWN_OK flag. Also checks the @chlock. NOT designed to replace the @chown command. Create an action named similarly to @pchown;@pch to this program... --- Change History ---------------------------------- v 1.0 02/24/00 Assignment of version number to programs. --- Distrubution Information ------------------------ Copyright {C} Charles "Wog" Reiss This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or {at your option} any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. For a copy of the GPL: a> see: http://www.gnu.org/copyleft/gpl.html b> write to: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ) $ifdef __glowver $def .tell me @ swap ansi_notify $else $include $lib/ansi $def .tell ansi-tell $endif $def CHLOCK_PROP "/_/chlk" : main dup "#help" stringpfx if "~&160Usage: ~&170" command @ strcat " ~&030<~&130object~&030>" strcat .tell exit then match dup ok? not if dup #-2 dbcmp if "~&110I don't know what you mean!" .tell exit then dup #-1 dbcmp if "~&110I don't see that here!" .tell exit then int dbtop int >= if "~&110You can't own things that don't exsit!" .tell exit then "~&110No one wants to own garbage!" .tell exit then dup player? if "~&110You can't change the owner of players!" .tell exit then dup owner me @ dbcmp if "~&110You already own that!" .tell exit then dup "C" flag? not if "~&110That doesn't have the CHOWN_OK flag set on it!" .tell exit then ( Okay, now check @chlock... ) dup CHLOCK_PROP getprop dup lock? if me @ swap testlock not if "~&110You can't take possession of that." .tell exit then else pop then dup me @ setown "~&120Owner changed to you." .tell "!C" set "~&120CHOWN_OK flag removed." .tell ; . c q @set pchown.muf=W