party
The parties of the players: who is in one, who leads it and who it holds.
Source: src/Moongate.Server.Ultima/Modules/PartyModule.cs
Functions
Section titled “Functions”are_friends
Section titled “are_friends”party.are_friends(player, other) -> booleanWhether the other mobile is a friend of the player: a member of the player's party, or a creature owned by one of its members (or by the player itself, in a party or not). The spells of a place leave friends alone. false when the first serial is no player.
| Parameter | Type | Default |
|---|---|---|
player | integer | |
other | integer |
Returns boolean.
is_member
Section titled “is_member”party.is_member(a, b) -> booleanWhether the two players belong to the same party; false when either is in none or is no player.
| Parameter | Type | Default |
|---|---|---|
a | integer | |
b | integer |
Returns boolean.
party.of(player) -> table?The party the player belongs to, as { id, leader, members }: the number of the party, the serial of its leader and the list of the serials of its members, the leader first; nil for a player in no party, an NPC or a serial that is no mobile.
| Parameter | Type | Default |
|---|---|---|
player | integer |
Returns table?.
Made with ❤️ by Tom
