SphereCommunity
sphere region - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: sphere region (/Thread-sphere-region)



sphere region - djazraell - 06-12-2014 02:59 PM

Friends, I am writing to divide into sphere_map0
Code:
[AREADEF a_tarlam]
EVENTS=r_tarlam
NAME=Tarla
RECT=1184,1839,1215,1839,
P=1200,1824
FLAGS=region_antimagic_recall_in | region_antimagic_all | region_flag_safe | region_flag_no_pvp|region_antimagic_recall_out | region_flag_nobuilding
If sphere_regio into
Code:
[REGIONTYPE r_tarlam]
on @enter
src.sysmessage @1153 Tarla alanina hosgeldin <src.name>

on @exit
src.sysmessage @38 Tarla alanindan ayrildiniz.
Error adding RECT coordinates into sphere_map0 I'm doing., Teach me?


RE: sphere region - XuN - 06-12-2014 03:34 PM

RECT=1184,1839,1215,1839, <--- this last comma makes sphere wait for a value for the map, if the map is default ( 0 ), write a 0
P=1200,1824 <--- same here, write the Z coord and the Map value.


RE: sphere region - djazraell - 06-12-2014 03:55 PM

For example, before
coord 1 left over (xxxx,aaaa)
ie xxxx?

After the bottom-left coord 2 (xxxx,aaaa)
ie aaaa?

The same as the left right?


RE: sphere region - XuN - 06-12-2014 10:14 PM

Creating regions is like creating squares ingame, just imagine that, think that you have to give 2 different points to Sphere: first one is the top left corner of the square, second one is the bottom right one (each one with xxxx,yyyy values) and after both you have to specify the map number of the region, its a must.


RE: sphere region - djazraell - 06-13-2014 01:34 AM

Ok, I did
Code:
[AREADEF a_tarlam]
EVENTS=r_tarlam
NAME=Tarla
RECT=1184,1808,1215,1839,0
RECT=1184,1839,1215,1808,0
RECT=1215,1839,1184,1808,0
RECT=1215,1808,1215,1839,0
P=1200,1824
FLAGS=region_antimagic_recall_in | region_antimagic_all | region_flag_safe | region_flag_no_pvp|region_antimagic_recall_out | region_flag_nobuilding



RE: sphere region - XuN - 06-13-2014 01:47 AM

(06-12-2014 03:34 PM)XuN Wrote:  RECT=1184,1839,1215,1839, <--- this last comma makes sphere wait for a value for the map, if the map is default ( 0 ), write a 0
P=1200,1824 <--- same here, write the Z coord and the Map value.



RE: sphere region - djazraell - 06-13-2014 04:16 PM

Thank you took care of it