Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Entry Point: Does Character by name X exist #91

Closed
brightrim opened this issue Jun 12, 2022 · 1 comment
Closed

Server Entry Point: Does Character by name X exist #91

brightrim opened this issue Jun 12, 2022 · 1 comment

Comments

@brightrim
Copy link
Member

It would be very useful to have a server entry point that can check whether an entered string of text actually matches a character name in the database, returning a boolean value.

Examples of where this would be used:
Housing -> When setting the tenant/guest/builder-permission names (Functions already exists on housing test server, but allows typing names of non-existent characters currently)
GM tools -> When scheduling changes to quest statuses/other things for an offline players next login (Function already exists on live but allows typing names of non-existent characters currently)
In game messengers -> When typing in the recipient for your message (Not yet implemented, ideally awaiting this server entry point before implementation)

@vilarion
Copy link
Member

Implemented the following in 669a8ec:
exists, id = world:getPlayerIdByName(name)
exists: true iff player with name exists in the database
id: id of the player with name, if that player exists

Still needs to be documented: Illarion-eV/Illarion-Lua#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants