Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, Bing, Google

Members: 0
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» 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,917
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 >>