[Encore] Shared rooms
Kevin Jepson
kevijeps at telusplanet.net
Wed Jul 15 07:02:03 MDT 2009
Paul
Here is a post from the enCore list back in 2003 that might help.
I had archived/posted it to the Barn in the Core Code section:
http://www.encore-consortium.org/Barn/core.htm
Ciao
KJ
----- Original Message -----
From: "Joel Haefner" <jhaefner at iwu.edu>
To: <encore at utdallas.edu>
Sent: Tuesday, September 23, 2003 10:19 AM
Subject: [encore] entrance permission
| I know this is a stupid question, but how do I, as wizard, set the
| properties on a space so that builders can attach entrances and exits
| without my granting permission every time?
-----------------------------
From: encore-bounce at utdallas.edu on behalf of Alexandre Borgia
Sent: September 23, 2003 6:45 PM
To: enCore
Subject: [encore] Re: entrance permission
Follow Up Flag: For Your Information
Flag Status: Flagged
Hi Joel,
There is no built-in way, but you can do the following:
1) @prop $room.free_exits 0 rc
... this adds a boolean flag to the Generic Room, similar to the
"free_entry" one that can be set to permit or prohibit users from
teleporting into a room.
2) Edit both $room:add_exit and $room:add_entrance verbs. These two
verbs are very short (2 lines!) and should look almost similar. The first
line is a "set_task_perms" statement that sets security on the verb, and
this is what prohibits exits-linkage from users other than the one who owns
the room.
The trick is to simply wrap the following conditional statement
around the security check - which should be the very first line of both
verbs:
-----------
if (!(this.free_exits && callers()[1][1] in {$xpress_object_editor,
$building_utils}))
set_task_perms(caller_perms());
endif
... (other code is here)
------------
So if the "free_exits" flag is set to 1 (that is done by doing:
"@set here.free_exits to 1" when in a room), everyone will be able to add
exits from the room:)
I tested this in plain telnet (using @dig) - I verified it should work
in the enCore interface as well, but if you ever implement it and it doesn't
please get back to me. I also verified that recycling exits works as
expected :)
Hope this help!
- Alexandre Borgia
==============================
----- Original Message -----
To: <encore at utdallas.edu>
Sent: Friday, September 26, 2003 7:31 AM
Subject: [encore] How to Publicize a place
| Dear MOOers,
|
| I used to use the command to publicize a room
| for anyone to connect their room.
| @set #0.room_connection_points to {#nnn, #nnn, #nnn, #nnn}
| PS: #nnn should include all the old ones and new ones
|
| why it doesn't work now.
| I use encore database on a window 2k server.
|
| Thanks for your help.
Hi Su,
From what I see this list of rooms is available from the web only if the
user has not created any rooms yet. It will be used to build the list of
possible room connections in the "new room wizard" form. So one possible
reason for not working is that the user has already created a room.
Actually this messages goes well with the last inquery from Joel: it
ends up using :add_exit and :add_entrance on the $room object (from
"$xpress_object_editor:make_exit"). I have not confirmed this but I think
you should face the same problem I pointed earlier if you want the room to
link both ways. For instance you can link "My Room" to a public room, but
the public room will never display a link to "My Room" since you don't own
it. If that's the expected behavior, what I posted earlier should make it
work except that the check should be somewhat different, like using:
(this in $room_connection_points)
... instead of "this.free_exits". Though I don't want to give too many
suggestions, and really since this seems a "hot" issue that'd be nice to be
clarified in some future enCore release;)
- Alexandre Borgia
________________________________
From: encore-bounces at encore-consortium.org
[mailto:encore-bounces at encore-consortium.org] On Behalf Of paul
Sent: Wednesday, July 15, 2009 2:48 AM
To: Encore at encore-consortium.org
Subject: [Encore] Shared rooms
Hi
I'm trying to build a space in enCore MOO. I'm using a Generic classroom,
and around that, I want other players to be able to build their own rooms.
I'd like all those rooms to be connected to the Generic classroom.
When I try using the GUI to do that in enCore, it doesn't allow the player
to connect or link to the generice classroom. (I'm using 2 accounts here - 1
as a wizard and 1 as a normal player/builder).
It seems to me to be probably a permissions thing. Can someone enlighten me
how to share this room with perhaps a class full of kids?
The aim of this exercise is to build an exhibit - with kids working in their
own rooms, but linked to the main generic classroom.
Checked by AVG - www.avg.com
Version: 8.5.387 / Virus Database: 270.13.8/2224 - Release Date: 07/13/09
17:57:00
More information about the Encore
mailing list