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-nmm6 (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-nmm6 (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-nmm6 (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
how to set a safe area?
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
how to set a safe area?
I wanted to know how to define a secure area.
I wanted in a cage has no security but outside had.
Ty! Tongue
[Image: 315d65k.jpg]
(This post was last modified: 02-17-2016 09:37 PM by jexnico.)
02-17-2016 09:35 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
RE: how to set a safe area?
Like this
Code:
[AREADEF a_cage_1]
events=r_default
name=cage_1
group=Cage's
flags=region_flag_safe
p=1367,942,0,0
rect=1373,900,1395,928,0

Grandmaster Localhost Admin
02-17-2016 10:06 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #3
RE: how to set a safe area?
Hey kanibal, ty for you answer but how i set the others cage using the same logic?
02-17-2016 10:47 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: how to set a safe area?
(02-17-2016 10:47 PM)jexnico Wrote:  Hey kanibal, ty for you answer but how i set the others cage using the same logic?

[AREADEF a_cage_2]
.....

[AREADEF a_cage_3]
.....

[AREADEF a_cage_4]
.....

Grandmaster Localhost Admin
02-17-2016 10:51 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #5
RE: how to set a safe area?
(02-17-2016 10:51 PM)Kanibal Wrote:  
(02-17-2016 10:47 PM)jexnico Wrote:  Hey kanibal, ty for you answer but how i set the others cage using the same logic?

[AREADEF a_cage_2]
.....

[AREADEF a_cage_3]
.....

[AREADEF a_cage_4]
.....

it's me again, sorry for disturbing you, I am new in the sphere .. haha
I'm trying to get inside without safety cage but I'm not getting, I am putting the flag in the "sphere map1", correct?

I managed to score inside the cage as unsafe, but now has a problem, there's a part of the cage that does not want to be embarrassed any security.
(This post was last modified: 02-17-2016 11:35 PM by jexnico.)
02-17-2016 11:19 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #6
RE: how to set a safe area?
When defining a new AREADEF block, you need to write the correct RECT values, which are:
1) Min X of the rectangle
2) Min Y of the rect
3) Max X of the rect
4) Max Y of the rect
5) Map

X and Y are those of the corners of the rectangle which contains the area you are defining.
Since i think you are using map0, it would be correct to put this block inside scripts/map/sphere_map0.scp. Also, i would use an unambiguous defname, like a_magincia_zoo_cage_1.

Areadef's P is instead the P at which you will be teleported if you do .GO *name of the areadef* (NAME=Cage 1 of Magincia zoo). Is that Magincia, right? I don't remember °_°
02-18-2016 12:53 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes karma's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #7
RE: how to set a safe area?
(02-18-2016 12:53 AM)karma Wrote:  When defining a new AREADEF block, you need to write the correct RECT values, which are:
1) Min X of the rectangle
2) Min Y of the rect
3) Max X of the rect
4) Max Y of the rect
5) Map

X and Y are those of the corners of the rectangle which contains the area you are defining.
Since i think you are using map0, it would be correct to put this block inside scripts/map/sphere_map0.scp. Also, i would use an unambiguous defname, like a_magincia_zoo_cage_1.

Areadef's P is instead the P at which you will be teleported if you do .GO *name of the areadef* (NAME=Cage 1 of Magincia zoo). Is that Magincia, right? I don't remember °_°

Ty karma Big Grin
02-18-2016 01:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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