On Tue, 16 Feb 1999, anthony benjamin wrote: > I was just wondering what is all involved in adding a new special proc > to a room. What I would like to do is make a portal in the room, and > then when someone types enter portal, they are transfered into another > room, I would use a door, but I want some messages, etc. I am having > trouble getting the process to work, I try typing a command in the > special room, and nothing happens..then like 3 lines later, I get > teleported, and the character just freezes..the mud doesn't crash but > the character freezes. Does anyone have a good way of just making a > generic portal implementation? > > thanks in advance, > anthony - newbie twink SPECIAL(portal) { one_argument(argument, buf); if (CMD_IS("enter")) { if (!buf || str_cmp(buf, "portal") return FALSE; else { send_to_char("your nifty message\r\n", ch); char_from_room(ch); char_to_room(ch, real_room(your room vnum here)); look_at_room(ch, 0); return TRUE; } } return FALSE; } *BEWARE* Mailer Code(tm) Simple and uncompiled/untested. Use at your own risk. "Misery is boundless" -Xual the Torturer, on the Eve of the Sundering. Danathara Online RPG telnet://danathara.ml.org:4000 +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST