
Pages:<< prev 1 next >>



Geomancer

GroupAdministrators
Posts1,992
JoinedJul 26, 2005
around line 1202 find
change it to
Wasn't working right
/* 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 >>