SphereCommunity
No mark and recall zone - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: No mark and recall zone (/Thread-No-mark-and-recall-zone)



No mark and recall zone - Lazarus - 07-13-2012 10:23 AM

Hi! First, sry for my english ^_^
Im here just to know how can I do a new zone, like a dungeon on the map...
More specify the pirate lair at the left [southwest] of Cove...
¿How can I set a anti-mark and recall zone?
Thanks! Smile


RE: No mark and recall zone - RanXerox - 07-13-2012 01:02 PM

As a GM, go to that location and type:

Quote:.show region.name

...to find out if that area is already setup... in my case, that area is called "Cove Orc Camp".

Then find that AREADEF in the map files... mine looks like this:

Code:
[AREADEF a_cove_orc_camp]
NAME=Cove Orc Camp
FLAGS=0180
RECT=2151,1343,2193,1374,0
RECT=2159,1374,2193,1384,0
RECT=2167,1384,2193,1392,0
RECT=2175,1391,2200,1400,0
RECT=2193,1358,2208,1384,0
RECT=2183,1400,2192,1426,0
RECT=2159,1319,2184,1343,0
P=2171,1318,0,0
GROUP=Cove
EVENTS=r_default_rock,r_default_water,r_default_tree,r_default_grass

Now stop the shard and edit that file, replacing FLAGS=0180 with whatever flags you want... for example:

Code:
FLAGS=region_antimagic_recall_in|region_flag_nobuilding|region_flag_globalname

You can find all the region flags listed in the sphere_defs.scp file.

If the region doesn't exist (your .show command returns something generic like "Cove Territory"), make a new entry in that file.


RE: No mark and recall zone - Lazarus - 07-13-2012 01:19 PM

(07-13-2012 01:02 PM)RanXerox Wrote:  As a GM, go to that location and type:

Quote:.show region.name

...to find out if that area is already setup... in my case, that area is called "Cove Orc Camp".

Then find that AREADEF in the map files... mine looks like this:

Code:
[AREADEF a_cove_orc_camp]
NAME=Cove Orc Camp
FLAGS=0180
RECT=2151,1343,2193,1374,0
RECT=2159,1374,2193,1384,0
RECT=2167,1384,2193,1392,0
RECT=2175,1391,2200,1400,0
RECT=2193,1358,2208,1384,0
RECT=2183,1400,2192,1426,0
RECT=2159,1319,2184,1343,0
P=2171,1318,0,0
GROUP=Cove
EVENTS=r_default_rock,r_default_water,r_default_tree,r_default_grass

Now stop the shard and edit that file, replacing FLAGS=0180 with whatever flags you want... for example:

Code:
FLAGS=region_antimagic_recall_in|region_flag_nobuilding|region_flag_globalname

You can find all the region flags listed in the sphere_defs.scp file.

If the region doesn't exist (your .show command returns something generic like "Cove Territory"), make a new entry in that file.


Thanks!
but if I make COVE TERRITORY invul, that makes ALL the cove territory? Because i want anti-mage recall the coast of the fort orc ^_^
and dont want to destroy all the rest of the cove terr.

Thanks ^_^ rly Smile

and sry for my english again :'(


RE: No mark and recall zone - RanXerox - 07-13-2012 01:55 PM

If the place you want to change is inside an AREADEF, you can use a ROOMDEF to alter the FLAG's... You can add another overlapping AREADEF too if you want.

The reason you need to stop the shard to edit map files is because the default script pack has a LOT of overlapping AREADEF's and when you alter a map file you should test it by using a fresh start so you can be sure your change is really what you wanted...


RE: No mark and recall zone - Lazarus - 07-13-2012 01:59 PM

(07-13-2012 01:55 PM)RanXerox Wrote:  If the place you want to change is inside an AREADEF, you can use a ROOMDEF to alter the FLAG's... You can add another overlapping AREADEF too if you want.

The reason you need to stop the shard to edit map files is because the default script pack has a LOT of overlapping AREADEF's and when you alter a map file you should test it by using a fresh start so you can be sure your change is really what you wanted...

Id disconnected the game ^_^ and now works

thanks ! Smile


RE: No mark and recall zone - Anarch Cassius - 07-14-2012 09:20 AM

Here's something I did ages ago that I've never written up the script response for.

It displays region and room properties much like .edit does for mobiles and items. It just needs a function to set the region to the new values Smile

Code:
// Crested 6/30/2008 10:53:28 PM, with GumpStudio
// Exported SphereExporter ver 2.0.
// Script ver 0.56/Revisions

[function regionedit]
src.sdialog d_regionedit

[DIALOG d_regionedit]
0,0
page 0
resizepic 0 3 9270 500 386
dtext 157 12 51 Region Properties Editor

checkbox 340 274 9724 9721 <QVAL !(<SRC.REGION.FLAGS>&region_antimagic_damage) ? 0:1> 12
dtext 265 279 0 Harm Magic:
checkbox 340 236 9724 9721 <QVAL (<SRC.REGION.NOPVP>==1) ? 0:1> 10
dtext 265 241 0 No PVP:
checkbox 340 198 9724 9721 <QVAL (<SRC.REGION.SAFE>==1) ? 0:1>  0
dtext 265 203 0 Safe:
checkbox 340 160 9724 9721 <QVAL (<SRC.REGION.ARENA>==1) ? 0:1>  1
dtext 265 165 0 Arena:
checkbox 340 124 9724 9721 <QVAL (<SRC.REGION.GATE>==1) ? 0:1>  2
dtext 265 127 0 Gate:
checkbox 340 84 9724 9721 <QVAL (<SRC.REGION.MARK>==1) ? 0:1> 3
dtext 265 89 0 Mark:
checkbox 340 46 9724 9721 <QVAL (<SRC.REGION.MAGIC>==1) ? 0:1> 4
dtext 265 51 0 Magic:

checkbox 445 274 9724 9721 <QVAL (<SRC.REGION.FLAGS>&region_flag_insta_logout) ? 0:1> 13
dtext 370 279 0 Inn:
checkbox 445 236 9724 9721 <QVAL (<SRC.REGION.NODECAY>==1) ? 0:1> 11
dtext 370 241 0 No Decay:
checkbox 445 198 9724 9721 <QVAL (<SRC.REGION.UNDERGROUND>==1) ? 0:1> 5
dtext 370 203 0 Inside:
checkbox 445 160 9724 9721 <QVAL (<SRC.REGION.BUILDABLE>==1) ? 0:1>  6
dtext 370 165 0 Buildable:
checkbox 445 122 9724 9721 <QVAL (<SRC.REGION.RECALLIN>==1) ? 0:1>  7
dtext 370 127 0 Recall In:
checkbox 445 84 9724 9721 <QVAL (<SRC.REGION.RECALLOUT>==1) ? 0:1> 8
dtext 370 89 0 Recall Out:
checkbox 445 46 9724 9721 <QVAL (<SRC.REGION.GUARDED>==1) ? 0:1> 9
dtext 370 51 0 Guarded:


dtext 15 276 0 Vendor Inflation:
dtext 15 246 0 Vendor Restock:
dtext 15 216 0 Vendor Markup:
dtext 15 186 0 Cold Chance:
dtext 15 156 0 Rain Chance:
dtext 15 126 0 Region Guards:
dtext 15 96 0 Central Position:
dtext 15 66 0 Announcement:
dtext 15 36 0 Region Name:
dtextentry 131 276 108 20 52 1 <Eval <SRC.REGION.TAG0.INFLATION>>
dtextentry 131 246 108 20 52 1 <Eval <SRC.REGION.TAG0.RESTOCKVENDORS>>
dtextentry 131 216 108 20 52 1 <eval <SRC.REGION.TAG0.VENDORMARKUP>>
dtextentry 131 186 108 20 52 1 <SRC.REGION.COLDCHANCE>
dtextentry 131 156 108 20 52 1 <SRC.REGION.RAINCHANCE>
dtextentry 131 126 108 20 52 1 <SRC.REGION.TAG0.OVERRIDE.GUARDS>
dtextentry 131 66 108 20 52 0 Welcome
dtextentry 131 36 108 20 52 0 <SRC.REGION.NAME>
dtextentry 131 96 108 20 52 1 <SRC.REGION.P>
dtext 15 306 0 Events:
dtextentry 70 306 400 40 52 1 <SRC.REGION.EVENTS>
button 260 336 1149 1147 1 0 1
button 165 336 1146 1144 1 0 0

[DIALOG d_default text] // useless

[DIALOG d_default button]
ON=0


[FUNCTION SKILLMOD]
FLOAT.SKILLMODCALC=<fval (<STR>*<serv.SKILL.<ARGS>.bonus_str>)+(<DEX>*<serv.SKILL.<ARGS>.bonus_dex>)+(<INT>*<serv.SKILL.<ARGS>.bonus_int>)>
FLOAT.SKILLMODCALC *= <serv.SKILL.<ARGS>.bonus_stats>
FLOAT.SKILLMODCALC /= 1000
RETURN <eval <FLOAT.SKILLMODCALC>/1000000>


ON=1


[function roomedit]
src.sdialog d_roomedit

[DIALOG d_roomedit]
0,0
page 0
resizepic 0 3 9270 500 386
dtext 157 12 51 Room Properties Editor

checkbox 340 274 9724 9721 <QVAL !(<SRC.room.FLAGS>&region_antimagic_damage) ? 0:1> 12
dtext 265 279 0 Harm Magic:
checkbox 340 236 9724 9721 <QVAL (<SRC.room.NOPVP>==1) ? 0:1> 10
dtext 265 241 0 No PVP:
checkbox 340 198 9724 9721 <QVAL (<SRC.room.SAFE>==1) ? 0:1>  0
dtext 265 203 0 Safe:
checkbox 340 160 9724 9721 <QVAL (<SRC.room.ARENA>==1) ? 0:1>  1
dtext 265 165 0 Arena:
checkbox 340 124 9724 9721 <QVAL (<SRC.room.GATE>==1) ? 0:1>  2
dtext 265 127 0 Gate:
checkbox 340 84 9724 9721 <QVAL (<SRC.room.MARK>==1) ? 0:1> 3
dtext 265 89 0 Mark:
checkbox 340 46 9724 9721 <QVAL (<SRC.room.MAGIC>==1) ? 0:1> 4
dtext 265 51 0 Magic:

checkbox 445 274 9724 9721 <QVAL (<SRC.room.FLAGS>&region_flag_insta_logout) ? 0:1> 13
dtext 370 279 0 Inn:
checkbox 445 236 9724 9721 <QVAL (<SRC.room.NODECAY>==1) ? 0:1> 11
dtext 370 241 0 No Decay:
checkbox 445 198 9724 9721 <QVAL (<SRC.room.UNDERGROUND>==1) ? 0:1> 5
dtext 370 203 0 Inside:
checkbox 445 160 9724 9721 <QVAL (<SRC.room.BUILDABLE>==1) ? 0:1>  6
dtext 370 165 0 Buildable:
checkbox 445 122 9724 9721 <QVAL (<SRC.room.RECALLIN>==1) ? 0:1>  7
dtext 370 127 0 Recall In:
checkbox 445 84 9724 9721 <QVAL (<SRC.room.RECALLOUT>==1) ? 0:1> 8
dtext 370 89 0 Recall Out:
checkbox 445 46 9724 9721 <QVAL (<SRC.room.GUARDED>==1) ? 0:1> 9
dtext 370 51 0 Guarded:


dtext 15 96 0 Central Position:
dtext 15 66 0 Announcement:
dtext 15 36 0 room Name:
dtextentry 131 66 108 20 52 0 Welcome
dtextentry 131 36 108 20 52 0 <SRC.room.NAME>
dtextentry 131 96 108 20 52 1 <SRC.room.P>
button 260 336 1149 1147 1 0 1
button 165 336 1146 1144 1 0 0

I'll get around to it eventually but it's still very useful and if someone wants to complete it for me that'd be awesome. Smile


RE: No mark and recall zone - Lazarus - 07-14-2012 03:28 PM

(07-14-2012 09:20 AM)Anarch Cassius Wrote:  Here's something I did ages ago that I've never written up the script response for.

It displays region and room properties much like .edit does for mobiles and items. It just needs a function to set the region to the new values Smile

Code:
// Crested 6/30/2008 10:53:28 PM, with GumpStudio
// Exported SphereExporter ver 2.0.
// Script ver 0.56/Revisions

[function regionedit]
src.sdialog d_regionedit

[DIALOG d_regionedit]
0,0
page 0
resizepic 0 3 9270 500 386
dtext 157 12 51 Region Properties Editor

checkbox 340 274 9724 9721 <QVAL !(<SRC.REGION.FLAGS>&region_antimagic_damage) ? 0:1> 12
dtext 265 279 0 Harm Magic:
checkbox 340 236 9724 9721 <QVAL (<SRC.REGION.NOPVP>==1) ? 0:1> 10
dtext 265 241 0 No PVP:
checkbox 340 198 9724 9721 <QVAL (<SRC.REGION.SAFE>==1) ? 0:1>  0
dtext 265 203 0 Safe:
checkbox 340 160 9724 9721 <QVAL (<SRC.REGION.ARENA>==1) ? 0:1>  1
dtext 265 165 0 Arena:
checkbox 340 124 9724 9721 <QVAL (<SRC.REGION.GATE>==1) ? 0:1>  2
dtext 265 127 0 Gate:
checkbox 340 84 9724 9721 <QVAL (<SRC.REGION.MARK>==1) ? 0:1> 3
dtext 265 89 0 Mark:
checkbox 340 46 9724 9721 <QVAL (<SRC.REGION.MAGIC>==1) ? 0:1> 4
dtext 265 51 0 Magic:

checkbox 445 274 9724 9721 <QVAL (<SRC.REGION.FLAGS>&region_flag_insta_logout) ? 0:1> 13
dtext 370 279 0 Inn:
checkbox 445 236 9724 9721 <QVAL (<SRC.REGION.NODECAY>==1) ? 0:1> 11
dtext 370 241 0 No Decay:
checkbox 445 198 9724 9721 <QVAL (<SRC.REGION.UNDERGROUND>==1) ? 0:1> 5
dtext 370 203 0 Inside:
checkbox 445 160 9724 9721 <QVAL (<SRC.REGION.BUILDABLE>==1) ? 0:1>  6
dtext 370 165 0 Buildable:
checkbox 445 122 9724 9721 <QVAL (<SRC.REGION.RECALLIN>==1) ? 0:1>  7
dtext 370 127 0 Recall In:
checkbox 445 84 9724 9721 <QVAL (<SRC.REGION.RECALLOUT>==1) ? 0:1> 8
dtext 370 89 0 Recall Out:
checkbox 445 46 9724 9721 <QVAL (<SRC.REGION.GUARDED>==1) ? 0:1> 9
dtext 370 51 0 Guarded:


dtext 15 276 0 Vendor Inflation:
dtext 15 246 0 Vendor Restock:
dtext 15 216 0 Vendor Markup:
dtext 15 186 0 Cold Chance:
dtext 15 156 0 Rain Chance:
dtext 15 126 0 Region Guards:
dtext 15 96 0 Central Position:
dtext 15 66 0 Announcement:
dtext 15 36 0 Region Name:
dtextentry 131 276 108 20 52 1 <Eval <SRC.REGION.TAG0.INFLATION>>
dtextentry 131 246 108 20 52 1 <Eval <SRC.REGION.TAG0.RESTOCKVENDORS>>
dtextentry 131 216 108 20 52 1 <eval <SRC.REGION.TAG0.VENDORMARKUP>>
dtextentry 131 186 108 20 52 1 <SRC.REGION.COLDCHANCE>
dtextentry 131 156 108 20 52 1 <SRC.REGION.RAINCHANCE>
dtextentry 131 126 108 20 52 1 <SRC.REGION.TAG0.OVERRIDE.GUARDS>
dtextentry 131 66 108 20 52 0 Welcome
dtextentry 131 36 108 20 52 0 <SRC.REGION.NAME>
dtextentry 131 96 108 20 52 1 <SRC.REGION.P>
dtext 15 306 0 Events:
dtextentry 70 306 400 40 52 1 <SRC.REGION.EVENTS>
button 260 336 1149 1147 1 0 1
button 165 336 1146 1144 1 0 0

[DIALOG d_default text] // useless

[DIALOG d_default button]
ON=0


[FUNCTION SKILLMOD]
FLOAT.SKILLMODCALC=<fval (<STR>*<serv.SKILL.<ARGS>.bonus_str>)+(<DEX>*<serv.SKILL.<ARGS>.bonus_dex>)+(<INT>*<serv.SKILL.<ARGS>.bonus_int>)>
FLOAT.SKILLMODCALC *= <serv.SKILL.<ARGS>.bonus_stats>
FLOAT.SKILLMODCALC /= 1000
RETURN <eval <FLOAT.SKILLMODCALC>/1000000>


ON=1


[function roomedit]
src.sdialog d_roomedit

[DIALOG d_roomedit]
0,0
page 0
resizepic 0 3 9270 500 386
dtext 157 12 51 Room Properties Editor

checkbox 340 274 9724 9721 <QVAL !(<SRC.room.FLAGS>&region_antimagic_damage) ? 0:1> 12
dtext 265 279 0 Harm Magic:
checkbox 340 236 9724 9721 <QVAL (<SRC.room.NOPVP>==1) ? 0:1> 10
dtext 265 241 0 No PVP:
checkbox 340 198 9724 9721 <QVAL (<SRC.room.SAFE>==1) ? 0:1>  0
dtext 265 203 0 Safe:
checkbox 340 160 9724 9721 <QVAL (<SRC.room.ARENA>==1) ? 0:1>  1
dtext 265 165 0 Arena:
checkbox 340 124 9724 9721 <QVAL (<SRC.room.GATE>==1) ? 0:1>  2
dtext 265 127 0 Gate:
checkbox 340 84 9724 9721 <QVAL (<SRC.room.MARK>==1) ? 0:1> 3
dtext 265 89 0 Mark:
checkbox 340 46 9724 9721 <QVAL (<SRC.room.MAGIC>==1) ? 0:1> 4
dtext 265 51 0 Magic:

checkbox 445 274 9724 9721 <QVAL (<SRC.room.FLAGS>&region_flag_insta_logout) ? 0:1> 13
dtext 370 279 0 Inn:
checkbox 445 236 9724 9721 <QVAL (<SRC.room.NODECAY>==1) ? 0:1> 11
dtext 370 241 0 No Decay:
checkbox 445 198 9724 9721 <QVAL (<SRC.room.UNDERGROUND>==1) ? 0:1> 5
dtext 370 203 0 Inside:
checkbox 445 160 9724 9721 <QVAL (<SRC.room.BUILDABLE>==1) ? 0:1>  6
dtext 370 165 0 Buildable:
checkbox 445 122 9724 9721 <QVAL (<SRC.room.RECALLIN>==1) ? 0:1>  7
dtext 370 127 0 Recall In:
checkbox 445 84 9724 9721 <QVAL (<SRC.room.RECALLOUT>==1) ? 0:1> 8
dtext 370 89 0 Recall Out:
checkbox 445 46 9724 9721 <QVAL (<SRC.room.GUARDED>==1) ? 0:1> 9
dtext 370 51 0 Guarded:


dtext 15 96 0 Central Position:
dtext 15 66 0 Announcement:
dtext 15 36 0 room Name:
dtextentry 131 66 108 20 52 0 Welcome
dtextentry 131 36 108 20 52 0 <SRC.room.NAME>
dtextentry 131 96 108 20 52 1 <SRC.room.P>
button 260 336 1149 1147 1 0 1
button 165 336 1146 1144 1 0 0

I'll get around to it eventually but it's still very useful and if someone wants to complete it for me that'd be awesome. Smile

Wow, that's impressive!