feat(LuaEngine/GlobalMethods): add GetGossipMenuOptionLocale, GetMapEntrance #233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces 2 new methods in mod-Eluna, enabling developers to retrieve specific localized gossip_menu option and box_text, get map entrance position.
New Methods
GetMapEntrance
: Returns the entrance position (x
,y
,z
,o
) for a specified map ID.GetGossipMenuOptionLocale
: Retrieves the localizedOptionText
andBoxText
for a specific gossip menu option. Falls back to the default text if the specified locale is unavailable.Code Highlights
Example: Get Localized Gossip Text
Example: Retrieving Map Entrance position
Test performed :
Results:
![image](https://private-user-images.githubusercontent.com/125808072/406536526-45f604bd-5ac1-4160-aea4-ea7ceb3d1b1a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjY5MjcsIm5iZiI6MTczOTI2NjYyNywicGF0aCI6Ii8xMjU4MDgwNzIvNDA2NTM2NTI2LTQ1ZjYwNGJkLTVhYzEtNDE2MC1hZWE0LWVhN2NlYjNkMWIxYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwOTM3MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZTVkZTA3YjQ4MzQ5NzJiZTEwY2YzYzc2NzM1OGIxZWQwYTgzNTNlMjc2ZDNlMGY1ODdjNzdjZGIzOGU0ZTlkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.P09hebqzwMEiRb7LkNvuuJ5eLzx4Kpyu-9yL4bEprdk)
Desktop.2025-01-24.18-46-10.mp4