[IMPLEMENTED] a couple wishes for the regions dfn

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
Ghostwolf
UOX3 Novice
Posts: 73
Joined: Mon Feb 11, 2008 9:41 am
Location: Hanging Around
Has thanked: 0
Been thanked: 0
Contact:

a couple wishes for the regions dfn

Post 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.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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)
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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
-= Ho Eyo He Hum =-
Post Reply