Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, Meta

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,723
594
Bardecome

» SmaugMuds » Codebases » SmaugFUSS » mphate
Forum Rules | Mark all | Recent Posts

mphate
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 7, 2025 5:14 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
Ok, so fast question since im working on help files and Samson maybe you have an idea here on what it should do?
Syntax: mphate <player> <vnum>
 
This sets the first mobile with the vnum to start hating the player.
Actually...Every mobile with that vnum to hating the player...

While doing this help file and looking at the code I see this
   if( arg2[0] == '\0' )
   {
      progbug( "Mphate - bad syntax, no aggressor", ch );
      return;
   }
   else
   {
      if( is_number( arg2 ) )
      {
         vnum = atoi( arg2 );
         if( vnum < 1 || vnum > MAX_VNUM )
         {
            progbug( "Mphate -- aggressor vnum out of range", ch );
            return;
         }
      }
      else
      {
         progbug( "Mphate -- aggressor no vnum", ch );
         return;
      }
   }

   for( mob = first_char; mob; mob = mob->next )
   {
      if( !IS_NPC( mob ) || !mob->in_room || !mob->pIndexData->vnum )
         continue;

      if( vnum == mob->pIndexData->vnum )
         start_hating( mob, victim );
   }

So should we just leave it as all mobiles with that vnum start hating the player? Chances are that its meant for a single mobile that would then hunt you down....but well lol.

Post is unread #2 Jan 7, 2025 5:16 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
same for mphunt and mpfear as well

Post is unread #3 Jan 7, 2025 5:24 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,707
JoinedJan 1, 2002

 
I don't see a problem with leaving this alone because it appears the intent is to make all currently loaded references to the VNUM hostile toward the victim.

As those get killed off and new ones replace them the hatred should subside naturally.

Post is unread #4 Jan 7, 2025 7:16 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
Sounds good :)

Pages:<< prev 1 next >>