SphereCommunity
problem about new areadef - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: problem about new areadef (/Thread-problem-about-new-areadef)



problem about new areadef - ograso - 06-16-2014 03:59 AM

Hey all,

I dupe a new areadef with a new name but I receive error on console.

First: is it possible to do like that. If answer is no then why and how is possible to dupe same region with different name

Code:
[AREADEF a_lycaeum]
NAME=Lycaeum
GROUP=Moonglow
P=4310,1009,0,0
RECT=4285,947,4336,1012,0
FLAGS=region_flag_nobuilding
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass

[AREADEF a_lycaeum_1]
NAME=Lycaeum
GROUP=Moonglow
P=4310,1009,0,0
RECT=4285,947,4336,1012,0
FLAGS=region_flag_nobuilding
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass



RE: problem about new areadef - Mordaunt - 06-16-2014 04:20 AM

Duping a region and changing it's name serves no purpose....

Why not just rename the existing region? Unless you are wanting to modify it's area or something. Then ensure it loads after the original region.


RE: problem about new areadef - ograso - 06-16-2014 04:36 AM

I dont know which fucntion is used in the script pack. Then I dupe new areadef with the different name. So I will change and track then.

Tyvm


RE: problem about new areadef - Coruja - 06-16-2014 06:26 AM

you can't use duplicated AREADEF's, it's useless and will conflict both AREADEFs

if you want rename Lycaeum to some other name, or add/remove some flags, just do it on the original AREADEF.
you can comment the original line to maintain the default value, like this

Code:
[AREADEF a_lycaeum]
NAME=NewName    //Default: Lycaeum
FLAGS=region_flag_safe|region_flag_nobuilding    //Default: region_flag_nobuilding
or you can totally comment out all lines of the old AREADEF using // and copy/paste a new one and modify this new AREADEF. You can freely add/remove/mod anything, just make sure there's no AREADEF conflict. Also dont forget to restart the server if you modify anything, it's not recommended change AREADEFS on a running server


RE: problem about new areadef - ograso - 06-16-2014 07:58 AM

(06-16-2014 06:26 AM)Coruja Wrote:  you can't use duplicated AREADEF's, it's useless and will conflict both AREADEFs

if you want rename Lycaeum to some other name, or add/remove some flags, just do it on the original AREADEF.
you can comment the original line to maintain the default value, like this

Code:
[AREADEF a_lycaeum]
NAME=NewName    //Default: Lycaeum
FLAGS=region_flag_safe|region_flag_nobuilding    //Default: region_flag_nobuilding
or you can totally comment out all lines of the old AREADEF using // and copy/paste a new one and modify this new AREADEF. You can freely add/remove/mod anything, just make sure there's no AREADEF conflict. Also dont forget to restart the server if you modify anything, it's not recommended change AREADEFS on a running server

Thanks coruja