Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Another interesting dilemna...
Forum Rules | Mark all | Recent Posts

Another interesting dilemna...
< Newer Topic :: Older Topic > yes.. Me.. again.. :P

Pages:<< prev 1 next >>
Post is unread #1 Apr 15, 2006, 2:30 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Yeah, Me again. You guys are bound to be tired of hearing from me.. I kow I would be. :P

Anywho down to this interesting dilemna. Now, This isn't causing any crashes or anything of the sort like the last one, this one is just.. well.. wierd.

I changed the config +vnums option to show vnums of rooms, mobs, and objects, but what's wierd is, If a player is fighting something and an Immortal looks, the player has the mobs vnum, and if the imm is fighting any player they look at has the vnum of the mob the imm is fighting, Now that you know what it's doing, how about a look at the chunk of code causing this little interesting thing.

void show_char_to_char_0( CHAR_DATA * victim, CHAR_DATA * ch )
{
   char buf[MAX_STRING_LENGTH];
   char buf1[MAX_STRING_LENGTH];
   char sbuf[MAX_STRING_LENGTH];
   char message[MAX_STRING_LENGTH];
   TIMER *timer = NULL;
   char tdesc[MAX_STRING_LENGTH];
   
   buf[0] = '\0';

  set_char_color( AT_PERSON, ch );
   if( IS_NPC( victim ) && !IS_NPC( ch ) && IS_IMMORTAL( ch ) && xIS_SET( ch->act, PLR_VNUMS ) )
       snprintf( sbuf, MAX_STRING_LENGTH, "&w(&B%d&w)&D ", victim->pIndexData->vnum );
       mudstrlcat( buf, sbuf, MAX_STRING_LENGTH );
   if( !IS_NPC( victim ) && !victim->desc )
   {
      if( !victim->switched )
         send_to_char_color( "[(Link Dead)] ", ch );
      else if( !IS_AFFECTED( victim, AFF_POSSESS ) )
         mudstrlcat( buf, "&P(&RSwitched&P)&D ", MAX_STRING_LENGTH );
   }
*rest of function*


Well, Hope you guys can help because well, while this isn't really a threat, it's really annoying. Thanks.
       
Post is unread #2 Apr 15, 2006, 6:35 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,868
JoinedJul 26, 2005

change
   if( IS_NPC( victim ) && !IS_NPC( ch ) && IS_IMMORTAL( ch ) && xIS_SET( ch->act, PLR_VNUMS ) )
       snprintf( sbuf, MAX_STRING_LENGTH, "&w(&B%d&w)&D ", victim->pIndexData->vnum );
       mudstrlcat( buf, sbuf, MAX_STRING_LENGTH );

to this
   if( IS_NPC( victim ) && !IS_NPC( ch ) && IS_IMMORTAL( ch ) && xIS_SET( ch->act, PLR_VNUMS ) )
   {
       snprintf( sbuf, MAX_STRING_LENGTH, "&w(&B%d&w)&D ", victim->pIndexData->vnum );
       mudstrlcat( buf, sbuf, MAX_STRING_LENGTH );
   }

While that should do the trick if it doesn't let me know :)
       
Post is unread #3 Apr 16, 2006, 9:54 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Yep that fixed it, I dunno why I didn't put it in brackets to begin with..
       
Pages:<< prev 1 next >>