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
No mark and recall zone
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
No mark and recall zone
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

[Image: 2hy9q0y.png]
07-13-2012 10:23 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: No mark and recall zone
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.
07-13-2012 01:02 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #3
RE: No mark and recall zone
(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 :'(

[Image: 2hy9q0y.png]
07-13-2012 01:19 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: No mark and recall zone
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...
07-13-2012 01:55 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #5
RE: No mark and recall zone
(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

[Image: 2hy9q0y.png]
07-13-2012 01:59 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: No mark and recall zone
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
(This post was last modified: 07-14-2012 09:20 AM by Anarch Cassius.)
07-14-2012 09:20 AM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #7
RE: No mark and recall zone
(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!

[Image: 2hy9q0y.png]
07-14-2012 03:28 PM
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: 3 Guest(s)