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, Amazonbot, Yandex, AhrefsBot, Google

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,722
591
TracySpencer

» SmaugMuds » Bugfix Lists » LoP Bugfix List » mud_prog.c
Forum Rules | Mark all | Recent Posts

mud_prog.c
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 1, 2016 9:25 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
around line 1202 find
            /* Check added to see if the person isleader of == clan Shaddai */
            if( !str_cmp( chck, "isleader" ) )
            {
               CLAN_DATA *temp;

               if( is_npc( chkchar ) || !( temp = get_clan( rval ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->leader, mob )
               || mprog_seval( chkchar->name, opr, temp->number1, mob )
               || mprog_seval( chkchar->name, opr, temp->number2, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }

               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            /* Check added to see if the person isleader of == clan Gorog */
            if( !str_cmp( chck, "isclanleader" ) )
            {
               CLAN_DATA *temp;

               if( is_npc( chkchar ) || !( temp = get_clan( rval ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->leader, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            if( !str_cmp( chck, "isclan1" ) )
            {
               CLAN_DATA *temp;

               if( is_npc( chkchar ) || !( temp = get_clan( rval ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->number1, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            if( !str_cmp( chck, "isclan2" ) )
            {
               CLAN_DATA *temp;

               if( is_npc( chkchar ) || !( temp = get_clan( rval ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->number2, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }

change it to
            /* Check added to see if the person isleader of == clan Shaddai */
            if( !str_cmp( chck, "isleader" ) )
            {
               CLAN_DATA *temp = NULL;

               if( is_npc( chkchar )
               || ( rval && rval[0] != '\0' && !( temp = get_clan( rval ) ) )
               || ( ( !rval || rval[0] == '\0' ) && !( temp = chkchar->pcdata->clan ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->leader, mob )
               || mprog_seval( chkchar->name, opr, temp->number1, mob )
               || mprog_seval( chkchar->name, opr, temp->number2, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }

               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            /* Check added to see if the person isleader of == clan Gorog */
            if( !str_cmp( chck, "isclanleader" ) )
            {
               CLAN_DATA *temp = NULL;

               if( is_npc( chkchar )
               || ( rval && rval[0] != '\0' && !( temp = get_clan( rval ) ) )
               || ( ( !rval || rval[0] == '\0' ) && !( temp = chkchar->pcdata->clan ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->leader, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            if( !str_cmp( chck, "isclan1" ) )
            {
               CLAN_DATA *temp = NULL;

               if( is_npc( chkchar )
               || ( rval && rval[0] != '\0' && !( temp = get_clan( rval ) ) )
               || ( ( !rval || rval[0] == '\0' ) && !( temp = chkchar->pcdata->clan ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->number1, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }
            if( !str_cmp( chck, "isclan2" ) )
            {
               CLAN_DATA *temp = NULL;

               if( is_npc( chkchar )
               || ( rval && rval[0] != '\0' && !( temp = get_clan( rval ) ) )
               || ( ( !rval || rval[0] == '\0' ) && !( temp = chkchar->pcdata->clan ) ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return true;
                  return false;
               }
               if( mprog_seval( chkchar->name, opr, temp->number2, mob ) )
               {
                  if( !str_cmp( opr, "!=" ) )
                     return false;
                  return true;
               }
               if( !str_cmp( opr, "!=" ) )
                  return true;
               return false;
            }

Wasn't working right

Pages:<< prev 1 next >>