-
Notifications
You must be signed in to change notification settings - Fork 29
Event Manager, onScriptLoad, onStart, FindItemBySection #500
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
Open
Xoduz
wants to merge
8
commits into
develop
Choose a base branch
from
event_manager_system_20260207
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
Xoduz
commented
Feb 7, 2026
- [ADD] Added new JS Event that runs once for all scripts after shard has fully started up:
- onScriptLoad()
- [ADD] Added new JS Event that runs for all instances of scripts attached to objects after shard has fully started up:
- onStart( myObj ) // myObj can be a Character, Item or TownRegion
- [ADD] Added new JS Function to find nearest item with a specific section ID at a given location:
- FindItemBySection( x, y, z, world, sectionId, [instanceId] )
- [ADD] Added new Event Manager system that initializes on shard startup, which listens to event registrations from other scripts and schedules these events to be run once, a number of times with an interval, or recurring on specific day(s)/time of the week. See UOX3 documentation for full details. System can be enabled or disabled via a new setting in uox.ini:
- EVENTMANAGERSYSTEM=0/1 // Defaults to enabled
- [ADD] Added a global JS constant to detect in scripts whether UOX3 runs in debug mode:
- UOX_DEBUG_MODE // Ex: if( UOX_DEBUG_MODE )
- [FIX] Fixed an incorrectly named socket variable in js/item/potion.js
- [ADD] Added new JS Event that runs once for all scripts after shard has fully started up: - onScriptLoad() - [ADD] Added new JS Event that runs for all instances of scripts attached to objects after shard has fully started up: - onStart( myObj ) // myObj can be a Character, Item or TownRegion - [ADD] Added new JS Function to find nearest item with a specific section ID at a given location: - FindItemBySection( x, y, z, world, sectionId, [instanceId] ) - [ADD] Added new Event Manager system that initializes on shard startup, which listens to event registrations from other scripts and schedules these events to be run once, a number of times with an interval, or recurring on specific day(s)/time of the week. See UOX3 documentation for full details. System can be enabled or disabled via a new setting in uox.ini: - EVENTMANAGERSYSTEM=0/1 // Defaults to enabled - [ADD] Added a global JS constant to detect in scripts whether UOX3 runs in debug mode: - UOX_DEBUG_MODE // Ex: if( UOX_DEBUG_MODE ) - [FIX] Fixed an incorrectly named socket variable in js/item/potion.js
DragonSlayer62
approved these changes
Feb 7, 2026
strattond
requested changes
Feb 9, 2026
Contributor
strattond
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly all good. Probably needs a sync up, one obvious bug (a function that doesn't exist). The rest is largely cosmetic stuff.
- [UPD] Updated FindItem() and FindItemBySection() JS Functions to also find items that are within +/- 5 Z of target location; Z no longer acts as an absolute condition Added back in the dictionary entries for Dawn's Music Box, which somehow got lost in the first submission Moved several Event Manager object properties from script to DFN Added in typedef comments for functions in event manager script Added in missing code to properly trigger onScriptLoad after script reloads
a0adda5 to
dc6d610
Compare
strattond
requested changes
Feb 12, 2026
Fixed some incorrectly named variables, and an invalid check for the result of an UOXCFile operation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.