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
