RE: help w/a command similar to transfer

"Dale Kingston" <[email protected]>
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
If you don't mind my asking, why? To make a command that will only transfer
someone one room over is a little idk over kill? Why not just use force and
force them to walk to the next room?

Tho a command to do that would be simple, go look at your scan command.
Notice how it looks into the rooms in each direction. And simplify the
command a bit. All you would need to do is run threw the exits in that room
and do something like:

For (i = 0; i != MAX_DIRECTION; i++)
{
	if (ch->in_room == pRoom->exit[i])
		break;
}

If (i == MAX_DIRECTION)
	Return;

That's very very simply and needs work but that's all you would really need
to do.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brittany
Dannenberg
Sent: Wednesday, April 20, 2005 6:34 PM
To: [email protected]
Subject: help w/a command similar to transfer

Heya,

I'm writing up a command kind of like transfer, but I
want it to only transfer people into the room if the
victim is in a room connected to the original room
where the character is. I looked around other parts of
the code for hints but no luck. Any ideas on this one?
Thanks.

Brittany.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.