Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
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, Bing, Yahoo!, Sogou

Members: 0
Guests: 17
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
633
Rhyader
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,874
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 >>