Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Land Snippet (Auric MUD) *tin...
Forum Rules | Mark all | Recent Posts

Land Snippet (Auric MUD) *tiny* BUG
< Newer Topic :: Older Topic > Simple Bug Fix / Correction

Pages:<< prev 1 next >>
Post is unread #1 Jul 4, 2003, 9:25 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts392
JoinedMar 7, 2005

I'm not sure how many people actually use this snippet, but I happen to really like it for what it does and I figured that this might be useful to anyone who's just thrown it in (like me) and not noticed this tiny flaw.

What happens is when you're flying/floating and you enter 'land' the function, as written, responds with;

"You land."
"Ok."

Of course when you're already on the ground, it just tells you, "Ok."

I thought it was annoying that it would say "Ok." after you landed, and that you didn't get a more appropriate message when trying to land while already on the ground. :blink:

I implemented this fix, so far so good:

In do_land (wherever you put it, I used act_move.c) go to the end and find this section,

if (found)
    {
     act( AT_PLAIN, "You land.", ch, NULL, NULL, TO_CHAR );
     act( AT_PLAIN, "$n lands.", ch, NULL, NULL, TO_ROOM );
    }

    send_to_char( "Ok.\n\r", ch );
    return;
}



I changed it to this,

if (found)
    {
     act( AT_PLAIN, "You land.", ch, NULL, NULL, TO_CHAR );
     act( AT_PLAIN, "$n lands.", ch, NULL, NULL, TO_ROOM );
     return;
    }

    send_to_char( "You're already on the ground.\n\r", ch );
    return;
}



I tested this and it appears to work fine.
       
Pages:<< prev 1 next >>