View/Edit #95!@chown

File name: @chown
Syntax:  @chown <object>            [to] <owner>
         @chown <object>.<propname> [to] <owner>
         @chown <object>:<verbname> [to] <owner>

Changes the ownership of the indicated object, property or verb.

Verb ownership changes are fairly straightforward, being merely a matter of changing the verb_info() on a single verb.

Changing an object ownership includes changing the ownership on all +c properties on that object.  Note that @chown will not change the ownership of any other properties, nor will it change verb ownerships.  Use @grant if you need to do a more complete ownership change.  The quota of the former owner is increased by one, as is the quota of the new owner decreased by one. 
ALSO: @chown will not change the ownership of a frozen object to a non-wizard.
To do that, @thaw it, @chown it, then @freeze it. See 'help @gele' for more nonsense on the subject --Dan.

Changing a property ownership is truly hairy.  If the property is +c one shouldnot be doing this, unless it is to correct a past injustice which caused the property to be owned by the wrong player.  In the case of -c properties, the property ownership is changed on all descendent objects (currently, if +c instances of a -c property are found in the traversal of all of the descendants, these are not changed, being deemed sufficiently weird that they should be handled on a case-by-case basis...).

http://files.moo.ca:8081/9/5/@chown
Size: 1,398 bytes.
File perms: Readable


You are not logged in.

[home | help | who | search | setup | code]