Skip to content

profile

The profile of a player's character: the text the player writes about themselves.

Source: src/Moongate.Server.Ultima/Modules/ProfileModule.cs

profile.get(player) -> string

The profile text of the player, with its line breaks; an empty string for a player who wrote none, an NPC or a serial that is no mobile.

ParameterTypeDefault
playerinteger

Returns string.

profile.set(player, text?) -> boolean

Writes the profile of the player: the text is cleaned of control characters and cut at 511 characters; nil, no text or an empty text clears it. true when the profile changed; false for the same text, an NPC or a serial that is no mobile.

ParameterTypeDefault
playerinteger
text (optional)stringnil

Returns boolean.

Made with ❤️ by Tom

Buy me a coffee