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

Create new map_region_changed action hook #256

Closed
8 tasks done
Tynarus opened this issue Mar 4, 2021 · 0 comments
Closed
8 tasks done

Create new map_region_changed action hook #256

Tynarus opened this issue Mar 4, 2021 · 0 comments
Assignees
Labels
needs workshopping new feature A new feature or request

Comments

@Tynarus
Copy link
Member

Tynarus commented Mar 4, 2021

Description

As a plugin developer, I expect to be able to hook into an event triggered when the player's map region changes.

Acceptance Criteria

  • Add new action hook type player_region_changed
  • Call player_region_changed hook whenever the player's current map region changes
  • Provide the following output parameters to player_region_changed:
    • player
    • player's previous position (world)
    • player's new position (world)
    • player's previous map region id
    • player's new map region id

Additional Information

Map region is the term used throughout RuneJS for each 64x64 map file area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs workshopping new feature A new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant