I never tried a script like that, but maybe check if the flagIcon is actually a “Pilot if in your fleet/corp” cause it might be somethng else and remember that costum Overviews change that, make sure your Overview is showing all alliesas “in your fleet/corp”, then return the value individually for each nickname in chat and check what flagIconreally is because you might be comparing like “Pilot has no standing” with “Pilot is in your (fleet|corporation)” and that will return that player as an enemy.
Okay i guess i found the problem. I add my Alliance with a excellent standing but in the framework is still “Pilot is in your alliance”
i change the line 11 again
new { “good standing”, “excellent standing”, “Pilot is in your (fleet|corporation|alliance)”, }
What is shown, like I said, has to do with your Overview settings, that defines the priority order or the icons show (e.g: if he is on your fleet or corp). And the sample code you gave defines the variable chatLocal both outside and inside the while loop, that will always show you the same results while the bot is running. You need to either set/pass the values inside the while loop or add an update function.
E.g:
dont set chatLocal inside while loop
MemoryUpdate(); //inside the while toop
The code from the topic you linked to uses the values from the HintText property on the flag icon. This is the text the eve client shows when you hover the mouse over the icon.
You can see the values given for this property in the API Explorer