PlayerGetAlliance
bool PlayerGetAlliance(int player, int type, int target);
Alliance state equality of player towards target.
Parameters
- int player
Player slot.
- int type
Alliance type to be used in comparison. Possible types are:
- 0 (c_allianceIdPassive)
- 1 (c_allianceIdVision)
- 2 (c_allianceIdControl)
- 3 (c_allianceIdSpend)
- 4 (c_allianceIdTrade)
- 5 (c_allianceIdSeekHelp)
- 6 (c_allianceIdGiveHelp)
- 7 (c_allianceIdChat)
- 8 (c_allianceIdDefeat)
- 9 (c_allianceIdPushable)
- int target
Target slot.
Return value
bool - True or false, whether the player has the type of alliance towards target.