PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
uo.em: GetRegionProperty

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Thu Dec 07, 2006 1:33 pm    Post subject: uo.em: GetRegionProperty Reply with quote

I know there is a similar function called
Quote:

GetRegionString( resource, x, y, propertyname, realm := _DEFAULT_REALM );


Perhaps this function can be rescripted to use also for the main regions.cfg.
Therefor we don't have everywhere e.g. in cities ressources, you have to place a dummy ressource to take advantage of this function.

A
GetRegionProperty(who/item, propertyname, realm := _DEFAULT_REALM );
could make that older command a lot easier i think.

Example regions.cfg wrote:


Region Pirates_Cove
{
Range 0 0 2303 1599
EnterText You have entered the Area of Pirates Cove
LeaveText You have left the Area of Pirates Cove
Guarded 0
midi 27
Realm ilshenar
Testprop 23
PropTest 24
}


Perhaps the problem is the who/item. IMHO characters and items have no "region" member. I don't know if the core can handle that this way. Otherwise one could use x,y instead of who/item.

I know that i also can read the regions.cfg and scan all entries till i found the correct region the player or item is in Very Happy

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Mon Jan 01, 2007 9:03 pm    Post subject: Reply with quote

Actually, the function name is a little misnamed. This is for regions, based on resources. The main regions file would not affect anything here, like that. That is why it doesn't look there for the custom properties. Why would you store an ore's properties in the file for regions? It's a resource, so it looks correctly, and as needed to keep confusion down.

If anything, it needs to be renamed to GetResourceString(), and another for Region, to check regions.cfg for others Smile

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Thu Jan 04, 2007 2:24 pm    Post subject: Reply with quote

Quote:

This is for regions, based on resources.


Yes i know Smile That's why i had the wish for a new or changed command.

Quote:

If anything, it needs to be renamed to GetResourceString(), and another for Region, to check regions.cfg for others


That's exactly what i tried to explain except the renaming. Maybe i was a little confusing that day. Like everyday Very Happy
Imho there is no need to rename the command GetRegionString cause we all have to check our scripts for that change Laughing

But if something like GetRegionProperty is possible, that would be great. I think the regions.cfg stays always in memory.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty