Login
User Name:

Password:



Register

Forgot your password?
 sting skill
Jan 8, 2025 2:40 pm
By Samson
 south command
Jan 7, 2025 7:22 pm
By Remcon
mphate
Jan 7, 2025 7:16 pm
By Remcon
do_setliquid
Jan 7, 2025 3:22 pm
By Remcon
Array overrun and incorrect string macros used in do_setclass
Jan 7, 2025 3:20 am
By Samson
Help.are for SmaugFUSS1.9.5
Author: Smaug
Submitted by: Remcon
LOP 1.6
Author: Remcon
Submitted by: Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
Users Online
Anthropic, Bytespider, Bing, DotBot, Google

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
495
3,819
19,759
588
Mortrex

» 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,988
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,988
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,714
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,988
JoinedJul 26, 2005

 
Sounds good :)

Pages:<< prev 1 next >>