Rayvolution
Journeyman
Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1
Aetharia
|
RE: Anti-Gate, recall and mark?
Yes, you need to add a new region, and apply these flags to it:
region_antimagic_recall_in 00002
region_antimagic_recall_out 00004
region_antimagic_gate 00008
For example, here's one I made in sphere_map0.scp that will announce when you enter the area, block recalling and gate, and won't allow you to place buildings:
Code:
[AREADEF a_newdungeon]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=New Dungeon
GROUP=Dungeons
FLAGS=region_flag_announce|region_flag_nobuilding|region_antimagic_recall_in|region_antimagic_recall_out|region_antimagic_gate
P=2473,2107,10,0
RECT=2350,1981,2588,2198,0
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
(This post was last modified: 10-15-2012 10:59 PM by Rayvolution.)
|
|
10-15-2012 10:58 PM |
|
|
Barnabus
Journeyman
Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1
|
RE: Anti-Gate, recall and mark?
Just to add to Rayvolutions expanation for you and others that might like to know.
There is loads of region commands, here.. http://wiki.sphere.torfo.org/index.php/AREADEF
You can turn them all off and off by changing the value (1/0) (region.guarded=0) is GZ off.
You can also check if a flag is on or off in game by saying
.show region.mark
Below I have added an example script that checks the region for a guarded flag.
To use it type .IsRegionGuarded in game...
PHP Code:
[FUNCTION IsRegionGuarded] IF (<REGION.FLAGS>®ion_flag_guarded) SYSMESSAGE @95 The region is guarded ELSE SYSMESSAGE @35 The region is not guarded eeek! ENDIF
The Defs for the Region Flags can be found in sphere_defs.scp.
Example ::
region_flag_ship 00040 // this is a ship region. ship commands
region_flag_nobuilding 00080 // no building in this area
|
|
10-16-2012 06:26 AM |
|
|