Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, DotBot

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 7:25 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
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 >>