Page 1 of 1

a couple wishes for the regions dfn

Posted: Tue Mar 17, 2009 8:55 am
by Ghostwolf
Region Max entries [Edit by Xuri: Implemented in 0.99.2 - UOX3 now supports 65535 regions!]
If the maximum number of regions is 255 I would like to see it doubled to 510. When I scripted in the regions of trammel, Ilshenar and Malas at LW I found that I was quickly filling up those areas to the point that there weren't that many free entries left. I asked Lord Binary at the time if he could increase it and he did. 510 should be able to absorb all the current UO locations plus any possible new ones for the next few years or more.

Spell control
I know currently you can control gate, recall, & mark but I'd like to be able to stop teleport. There is one dungeon where teleport should be disabled (wisp 3rd level) and it would be useful in other ways such as limiting access to places in quest.

Posted: Sun Nov 08, 2009 1:45 am
by Xuri
Extremely slow reply. Sorry :)

I'm guessing this is caused by the following tidbit of code (uByte = 0 to 255?), though I'm not sure if it needs changing in multiple locations or if just swapping that out with a short or something will take care of the issue:

Code: Select all

			regEntry = regScp->EntryName();
			if( regEntry.section( " ", 0, 0 ) == "REGION" )
			{
				[color=red]i = regEntry.section( " ", 1, 1 ).toUByte();[/color]
				if( cwmWorldState->townRegions.find( i ) == cwmWorldState->townRegions.end() )
(from void LoadRegions( void ) in fileio.cpp)

Re: a couple wishes for the regions dfn

Posted: Tue Aug 11, 2020 3:45 pm
by Xuri
UOX3 supports 65535 spawn regions since 0.99.2, and as of right about now also supports blocking Teleport spell in regions through a TELEPORT=0/1 tag! :P