( copy.muf by Mbamh 10/26/97 ) ( Duplicates the specified object ) ( Object must be owned by user or ) ( must be chown_ok ) ( Wizzes may copy objects whether ) ( they own them or not ) lvar arg : copy dup copyobj dup me @ setown intostr arg ! "New object created with dbref #" arg @ strcat "." strcat .tell ; : help "copy.muf by Mbamh - syntax: " command @ strcat " " strcat .tell ; : main dup not if help exit then dup "#h*" smatch if pop help exit then dup .pmatch dup player? if "You can't copy a player." .tell exit then pop dup match dup #-1 dbcmp if "I don't see that here." .tell exit then dup #-2 dbcmp if "You can't copy that!" .tell exit then dup #-3 dbcmp if "You can't copy that!" .tell exit then dup program? if "You can't copy a program." .tell exit then dup exit? if "You can't copy and exit." .tell exit then dup room? if "You can't copy a room." .tell exit then dup "CHOWN_OK" flag? if copy exit then dup owner me @ "WIZARD" flag? if arg ! copy exit then dup me @ dbcmp if pop copy exit then "Permission Denied." .tell ;