Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Bamfin/bamfout

Bamfin/bamfout

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 18 Jan 2005 04:55 PM (UTC)
Message
Bamfin/bamfouts are setup in a way I really don't like. If the user is invis, no one will see the bamfin/out, even if they are a higher level. After installing ghost and incognito, it's even worse now, since the bamfin shows up when ghosted, so ghosting has no point.

Bamfout setup:
    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
    {
        if (ch->pcdata && ch->pcdata->bamfout[0] != '\0')
            act( AT_IMMORT, "$T", ch, NULL, ch->pcdata->bamfout ,  TO_ROOM );
        else
            act( AT_IMMORT, "$n $T", ch, NULL, "disappears in a brilliant flash of light.",  TO_ROOM);
    }

/* Old bamfout code  -Zeno
    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
        act( AT_IMMORT, "$n $T", ch, NULL,
            (ch->pcdata && ch->pcdata->bamfout[0] != '\0')
            ? ch->pcdata->bamfout : "leaves in a swirling mist.",  TO_ROOM );
*/


Bamfin setup:
    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
    {
        if (ch->pcdata && ch->pcdata->bamfin[0] != '\0')
        {
            act( AT_IMMORT, "$T", ch, NULL, ch->pcdata->bamfin ,  TO_ROOM );
        }
        else
        {
            act( AT_IMMORT, "$n $T", ch, NULL, "appears in a brilliant flash of light.", TO_ROOM );
        }
    }

/*  Old bamfin code  -Zeno
    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
        act( AT_IMMORT, "$n $T", ch, NULL,
            (ch->pcdata && ch->pcdata->bamfin[0] != '\0')
            ? ch->pcdata->bamfin : "appears in a swirling mist.", TO_ROOM );
*/


Changing TO_ROOM to TO_CANSEE makes it so the bamfin/out still shows up, but the user name is replaced with "Someone" which is useless.

Does anyone see a way around this so bamfin will work so those above the invis user will see the bamfin/out? Is it understood what I want to do? I'd rather not do a for loop just for this.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Tue 18 Jan 2005 05:04 PM (UTC)
Message
Just to be clear, you're trying to have the bamfin/out appear when somebody is wizinvis, but only to people who could normally see that person while wizinvis?

I'm afraid you'd need a forloop for that, where you act TO_CHAR, if the current act flags don't do it.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Tue 18 Jan 2005 05:50 PM (UTC)
Message
Yes, correct.

Argh. It's easy to a forloop, but don't want to do one because I'd have to deal with ghost, incog, invis, and so on. Arghhhh. -.-

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Tue 18 Jan 2005 06:06 PM (UTC)
Message
I suppose you could always add an extra flag to act, or modify the cansee flag. Sure, it'll be a pain, but at least then you only do it once and you can use it everywhere. You'll have to be careful to not introduce new 'features' by accident, though. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,741 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.