Skip to content

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

party.are_friends(player, other) -> boolean

Whether 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.

ParameterTypeDefault
playerinteger
otherinteger

Returns boolean.

party.is_member(a, b) -> boolean

Whether the two players belong to the same party; false when either is in none or is no player.

ParameterTypeDefault
ainteger
binteger

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.

ParameterTypeDefault
playerinteger

Returns table?.

Made with ❤️ by Tom

Buy me a coffee