Commit graph

29 commits

Author SHA1 Message Date
strattond
3831c7e4db Finish event fixups. Update scripts 2025-08-13 10:33:27 +10:00
strattond
5aecf0ba81 More event return validation 2025-08-12 16:45:07 +10:00
strattond
03c0199f28 More fixups for events 2025-08-12 12:43:20 +10:00
strattond
faf7b4672a Fix two events. Update JSDoc for the scripts 2025-08-12 11:31:41 +10:00
strattond
6a53759445 Fix TriggerEvent definition. Add ts check to every script 2025-08-06 20:37:11 +10:00
Xoduz
390280b892 Mainly timestamp-related fixes in scripts
Fixed misc edge-case-issues with handling of timestamps via GetCurrentClock() in various scripts, especially those stored in custom object tags. In cases of timestamps supposed to persist for a long time (and across server restarts), this is now handled via Date.now() instead.
Updated changelog :)
2025-05-29 09:24:12 +08:00
Geir Ove Alnes
f809b4cd68
Update special_moves.js
script ID 2205 was already in use by something else, so changed it to 2206 in special_moves.js and in jse_fileassociations.scp
2025-01-27 02:36:47 +08:00
Dragon Slayer
44f895ca19 Update
commit out the mana check for  se and up there not even included yet.

restrictedAbilities  so if they are double clicked in the bookl they will get a msg this move isnt active on server
2025-01-25 23:33:51 -06:00
Dragon Slayer
f8d35ab0c2 tab update 2025-01-25 10:06:59 -06:00
Geir Ove Alnes
7aa2e8711f
Merge branch 'develop' into special-moves 2025-01-25 17:41:40 +08:00
Dragon Slayer
d28b8daf16 Update leechstats.js 2024-06-22 17:53:00 -05:00
Dragon Slayer
6dbb01f124 Update special_moves.js 2024-06-22 17:03:16 -05:00
Dragon Slayer
da9267ac98 Added AOS Leech Properties 2024-06-18 18:28:50 -05:00
Dragon Slayer
d6a1d28291 Cleanup Mana Table
Added Description for all the mana and added SE and ML Mana
2024-06-12 21:48:18 -05:00
Dragon Slayer
77d00be485 Added socket checks
Added Socket Checks so if its a npc it does not error out on sysmessage
2024-06-12 20:05:38 -05:00
Dragon Slayer
3283ed5e2c Added restrictedAbilities
Added restrictedAbilitiesfor adding unsupported abilities
2024-06-12 00:46:05 -05:00
Dragon Slayer
0b5963437d cleanup and dictionary files
cleanup and dictionary files added
2024-06-09 22:52:23 -05:00
Dragon Slayer
e3ff890f4e Cleanup and Changes
Lots of changes
2024-05-30 21:32:33 -05:00
Dragon Slayer
bfb92c9ea0 Update special_moves.js 2024-05-29 23:00:18 -05:00
Dragon Slayer
707558681c Update special_moves.js 2024-05-29 22:47:50 -05:00
Dragon Slayer
680ecc1d30 fixes
Fixed timers to use scriptid
Fixed Bleed timer
added buff to bleed.
2024-05-29 17:46:05 -05:00
Dragon Slayer
0b8edf8a63 Added Infectious Strike 2024-05-28 20:16:15 -05:00
Dragon Slayer
6d52280971 added couple more moves
Bleed Attack and Mortal Strike,
2024-05-27 20:13:51 -05:00
Dragon Slayer
863c0dc3fc Update Skills
Cleanup functions
2024-05-27 17:20:19 -05:00
Dragon Slayer
a6437b935d Updates 2024-05-27 16:07:16 -05:00
Dragon Slayer
46b237cfa9 update Special Moves 2024-05-27 15:42:10 -05:00
Dragon Slayer
5d7eef00fd Special Moves
This is the 12 AOS abilites that are in the book on the paperdoll.
2024-05-25 19:05:38 -05:00
Xoduz
a48d9ee299 UOX3 0.99.6-RC6
Removed arbitrary and hidden restrictions on refreshing list of online players shown with 'wholist command
Fixed an issue where player ghosts that get teleported would not see themselves get updated to new location
Fixed a server crash from clients disconnecting while running server in debug mode
Improved how container updates are sent to players; now only sends to clients that have actually opened the container, and who are still within range
Added more information about UO data files being loaded during server startup
Enhanced the GM 'add menu to allow clicking directly on images of items/npcs to add them, and adjusted size of menus to accommodate this
Fixed an issue with fleeing NPCs that could cause them to attempt to flee across time and space, regardless of distance to target/attacker in combat
Added NPC AI that runs away from players if they get too close (even outside combat). Applied to hind, rabbits, squirrels, ferrets and various birds by default:
	AI_ANIMAL_SCARED (aitype 12)
Fixed issues with NPCs fleeing forever, or getting stuck in flee/don't flee loop, by introducing max fleeing distance (50 tiles) and cooldown (30 sec) on fleeing
Updated onNameRequest JS Event to include third parameter with origin of name request, so script responses can be tailored appropriately:
	onNameRequest( myObj, requestedBy, requestSource )
		Potential values for requestSource:
			0 - Speech/System Messages
			1 - Guild Menus
			2 - Stat Window (self)
			3 - Stat Window (other)
			4 - Tooltip
			5 - Paperdoll Journal
			6 - Paperdoll
			7 - Single Click / All-Names
			8 - System
			9 - Secure Trade Window
Added Adaptive Performance System (APS) that dynamically adjust how often NPC AI/movement is checked based on overall shard performance. If performance drops below defined threshold, UOX3 gradually slows down checks for NPC AI/movement to prioritize player movement/speech/command responsiveness. If performance climbs back up above threshold, slowdowns are gradually removed. The following UOX.INI options have been added under [system] category to support this system:
	APSPERFTHRESHOLD=50 	// Performance threshold (measured in simulation cycles/sec) below which the APS kicks in
	APSINTERVAL=100 		// How often (in milliseconds) the APS checks performance and makes adjustments (if needed) to balance out shard performance
	APSDELAYSTEP=50 		// How much the delay timer is modified by (in milliseconds) each time APS makes adjustments
	APSDELAYMAXCAP=2000 	// Max amount of of delay APS can introduce for NPC AI/movement handling when attempting to restore shard performance
Added new JS Methods for Region objects:
	.GetOrePrefs( oreType )	// Get ore preference data for ore type found in town region. Returned as an array containing the following data:
		orePrefData -> [
			oreName,	// name of ore
			color,		// color of ore
			minskill,	// min skill to mine ore
			ingotName,	// name of ingot created from ore
			makemenu,	// makemenu entry for crafting something from ingot
			oreChance,	// default global chance of finding this ore type
			scriptID 	// script attached to mined ore
		],
		orePrefChance 	// Chance of finding this ore type in given town region
	.GetOreChance() 	// Get base chance of finding any ore in town region
Moved Mining skill plus gravedigging feature from hard code to scripts (js/skill/mining.js) to make it easier to maintain and/or customize, and removed hard coded variants
Gravedigging now relies on the ore resource system behind the scenes to restrict how often graves in a given area can be dug up
Fixed some incorrect references to .worldNumber Character property in misc scripts (should be .worldnumber)
Made some "hard-scripted" system messages in misc scripts use dictionary system instead
Added spawn region for banker NPCs in Serpent's Hold (dfndata/spawn/felucca/spawn_town_serpents_hold.dfn, dfndata/spawn/trammel/spawn_town_serpents_hold.dfn)
Fixed region definition of Ocllo to actually cover the entire town (dfndata/regions/regions.dfn)
Added numerous additional locations accessible with 'goplace # command, for key locations in Ilshenar, Malas, Tokuno Islands and Ter Mur (dfndata/location/location.dfn)
Revised travel-menu portion of GM menu (shortcut: 'travel) to include more travel options based on new locations (dfndata/items/travelmenu.dfn and travelmenu.bulk.dfn)
Fixed an issue where NPCs could attempt to attack targets in other worlds/instances
Added new JS Event that triggers for characters who are about to deal damage in combat. Complimentary to onDamage, which triggers for chars receiving damage:
	onDamageDeal( dmgDealer, dmgReceiver, damageValue, damageType )
Added new JS Event that can trigger in global script upon creation of new player chars. Note that this will trigger in place of onCreateDFN event for player characters:
	onCreatePlayer( pChar )
Added new JS Event that triggers for characters selecting a target with a spell. Complimentary to onSpellTarget, which triggers for targets selected with a spell:
	onSpellTargetSelect( caster, target, spellNum )
Updated onCombatStart and onCombatEnd JS Events to also trigger for the other party in combat
Updated onPickup JS Event to include a third parameter - the potential container item was picked up from. Event now also triggers event in scripts attached to said containers:
	onPickup( iPickedUp, pChar, iCont )
Added tracking of total playtime per individual character, and per account across all characters, and exposed these properties to JS engine:
	.totalPlayTime		// Account property, total playtime across all chars
	.playTime 			// Character property, total playtime on given character only
Added new player-accessible command ('playtime) to spit out the playtime of current character/account as a whole (js/commands/playtime.js)
Implemented first version of Young Player System:
	Replaced the UNUSED9 account flag with YOUNG, to be used by Young/New Player System
	Added new JS Account property that gets/sets whether player account is considered Young:
		.isYoung
	Added new Char timers:
		TIMER_YOUNGHEAL		// Restricts how often Young players are healed by NPC healers
		TIMER_YOUNGMESSAGE	// Restricts how often Young players are warned about dangerous looking monsters in overworld
	Updated GM commands 'get and 'set to get/set .isYoung property of player's account (js/commands/targeting/get.js and set.js)
	Added new UOX.INI setting to enable/disable Young Player System (enabled by default):
		YOUNGPLAYERSYSTEM=1
	If Young Player System is enabled, all newly created player accounts are automatically marked with Young flag
	Added new script to handle various restrictions and functions related to Young characters (js/player/young_player.js):
		Young characters will have [Young] displayed over their head
		Young characters will have their Young status checked and verified on every login + every stat/skill gain, to revoke the Young status if any of the following is true:
			Account has a total playtime of more than 40 hours
			Any character has more than 350 total (base) skill points
			Any character has more than 70 skill points in a single skill
			Any character has more than 150 total stat points
			Any character has more than 80 stat points in a single stat
		Young characters can renounce their Young status manually by saying the words "I renounce my young player status"
		Young characters get two additional items upon creation:
			a new player ticket (can be combined with any other players new player ticket for both players to get a reward)
			a sextant (shows Young players directions to nearest moongate/bank regardless of where they are, as long as outdoors)
		Young characters cannot target other player characters with hostile spells or skills
		Young characters cannot be the target of other player characters' hostile spells or skills
		Young characters can only cast beneficial spells upon themselves or other Young characters
		Young characters can only be the target of beneficial spells from other Young players
		Young players (and their pets/followers) cannot attack or harm any other players (or their pets/followers), nor themselves be attacked or harmed by any other players (or their pets/followers), whether from combat, spells, skills or items
		Young players don't lose any of their items on death, and are teleported to the nearest healer upon death with all their items intact
		Young players receive a warning upon entering dungeons that monsters there will be hostile
	Updated global script (js/server/global.js) to:
		Check/Verify Young status of players upon login
		Attach young player script on login/creation for players on Young accounts
		Give specific items to Young players upon creation
	Added new script (js/item/corpse.js) that is assigned to all freshly created corpses. This script handles restrictions related to Young players interactions with corpses, and the interactions of other players with corpses of Young players
	Updated JS Method .Carve() to return true/false depending on whether carving a corpse was successful
	Updated Healer AI in code to heal nearby injured Young players
	Updated Evil AI and Evil Caster AI in code to avoid selecting Young players as targets in combat outside of dungeons
	Added a new section to UOX.INI - [young player starting locations] - that can be used to define starting locations for Young players. If only one such location is provided, all players start there. Otherwise, it matches the same starting location setup as the regular one - with one entry per town in Britannia.
	Restricted transferring and/or friending of pets (code) and hirelings (hirelings.js) between Young and non-Young players
	Restricted Young players from recalling or gating to Felucca facet
	Young players can instantly logout from anywhere, at any time
2023-07-01 20:02:40 +08:00
Xoduz
f0323918fb Help Menu Revamp
Added JS-based help menu accessible via character paperdoll, with modernized style and UI, ability for players to change their password
Minor cleanup and addition of a few extra features to help menu, like a safe teleport option for players who are potentially stuck, updated server info details and integration with UOX3's existing GM paging system as support options (Xuri)
Added new JS functions to retrieve server data used for server stats in help menu:
	GetItemCount()				// Gets number of items on server
	GetMultiCount() 			// Gets number of multis on server
	GetCharacterCount()			// Gets number of characters on server
	GetServerVersionString() 	// Gets server version as a string
Added new UOX.INI settings to control safe teleport for stuck players via the Help menu in Paperdoll:
	MAXSAFETELEPORTSPERDAY=1 		// Max teleports per day, defaults to 1
	TELEPORTNEARESTSAFELOC=1 		// Teleport player to nearest safe location (1) or random safe location (0)
2022-02-26 07:26:47 +08:00