sahisahi
Member
Im trying to add checks to notoriety based on SolidHueOverride (Player colors) is not working. Players with same solidhueoverride see each other as enemy and can attack each other. I want them to be invul if player have same solidhueoverride.
Pic below players have same solidhueoverride 1150 and see each other as enemy also can attack. (i want them to be invul to each other if have same solidhueoverride)
Next pic, player one have solidhueoverride 1150, player two doesnt (-1) and see each other as enemy, why?
I have an event where players get their solidhueoverride.
MobileNotoriety
Allow_Harmful
EDIT: i noticed that
that check is just wrong, removed it, will test and post results
EDIT2: Doesnt matter if player have solidhueoverride or not, everyone see everyone as enemy, weird
Pic below players have same solidhueoverride 1150 and see each other as enemy also can attack. (i want them to be invul to each other if have same solidhueoverride)
Next pic, player one have solidhueoverride 1150, player two doesnt (-1) and see each other as enemy, why?
I have an event where players get their solidhueoverride.
MobileNotoriety
Code:
public static int MobileNotoriety( Mobile source, Mobile target )
{
if (source is PlayerMobile && target is PlayerMobile)
{
if (source.SolidHueOverride != -1 || target.SolidHueOverride != -1)
{
if ( source.SolidHueOverride == 1156 && target.SolidHueOverride == 1150); //Differente solidhueoverride = enemy
return Notoriety.Enemy;
if ( source.SolidHueOverride == 1150 && target.SolidHueOverride == 1156); //Differente solidhueoverride = enemy
return Notoriety.Enemy;
if ( source.SolidHueOverride == 1150 && target.SolidHueOverride == 1150); ////Same team solidhueoverride = invul
return Notoriety.Invulnerable;
if ( source.SolidHueOverride == 1156 && target.SolidHueOverride == 1156); ////Same team solidhueoverride = invul
return Notoriety.Invulnerable;
}
}
Allow_Harmful
Code:
public static bool Mobile_AllowBeneficial( Mobile from, Mobile target )
{
if (from is PlayerMobile && target is PlayerMobile)
{
if (from.SolidHueOverride != -1 || target.SolidHueOverride != -1)
{
if ( from.SolidHueOverride == 1156 && target.SolidHueOverride == 1171); //Differente solidhueoverride = enemy
return true;
if ( from.SolidHueOverride == 1150 && target.SolidHueOverride == 1156); //Differente solidhueoverride = enemy
return true;
if ( from.SolidHueOverride == 1150 && target.SolidHueOverride == 1150); ////Same team solidhueoverride = invul
return false;
if ( from.SolidHueOverride == 1156 && target.SolidHueOverride == 1156); ////Same team solidhueoverride = invul
return false;
}
}
EDIT: i noticed that
Code:
if (from.SolidHueOverride != -1 || target.SolidHueOverride != -1)
EDIT2: Doesnt matter if player have solidhueoverride or not, everyone see everyone as enemy, weird
Last edited: