The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem about new areadef
Author Message
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #1
problem about new areadef
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
06-16-2014 03:59 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: problem about new areadef
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.

[Image: 2nis46r.jpg]
06-16-2014 04:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: problem about new areadef
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
06-16-2014 04:36 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: problem about new areadef
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
06-16-2014 06:26 AM
Find all posts by this user Like Post Quote this message in a reply
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: problem about new areadef
(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
06-16-2014 07:58 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)