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

[GM] Fixed wrong BasePlayer returned on NPC connection #378

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LDami
Copy link
Contributor

@LDami LDami commented Mar 6, 2021

Actually the ConnectNPC method returns a empty BasePlayer instance. The problem is we can't know when the NPC will be connected to the server ..

So I've created a "NPC" class with a Thread in it to loop through all connected players and check if a player matches with the NPC.
When a player matches with the NPC (same name, and "IsNPC" is true), an event is triggered to be able to make some actions after the NPC connection.

@LDami LDami changed the title [GM] Fixed wrong BasePlayer returned on NPC connection [WIP][GM] Fixed wrong BasePlayer returned on NPC connection Mar 9, 2021
@LDami LDami changed the title [WIP][GM] Fixed wrong BasePlayer returned on NPC connection [GM] Fixed wrong BasePlayer returned on NPC connection Mar 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant