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

Adds an emote handler and implements the /dance emote #46

Merged
merged 7 commits into from
Jan 6, 2025

Conversation

poffdeluxe
Copy link
Contributor

@poffdeluxe poffdeluxe commented Jan 4, 2025

Adds a basic emote handler that the chat handler can use. I decided to break the emote stuff into its own module since there are a lot of emotes and these emote definitions could probably grow really quickly but happy to roll all into the main chat.ex file if you think that's the best play from an organizational perspective.

Also, added a helper to easily get pids for players that are within a certain spatial range. Maybe an outstanding TODO here is to unify and abstract all the different player/entity access methods

Closes #12

@pikdum
Copy link
Owner

pikdum commented Jan 6, 2025

Made a few small tweaks:

  • target guid wasn't packed, so needed to grab directly instead
  • to save some memory, instead of adding mob names to :guid_name ask the entity process for the name
  • add some more emotes to the mapping table

@pikdum pikdum merged commit e52ce60 into pikdum:master Jan 6, 2025
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.

add /dance emote
2 participants