Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anti-Gate, recall and mark?
Author Message
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #1
Anti-Gate, recall and mark?
How i can to make a part of an area can't cast mark, recall or gate spells?

i need to redefine a new region?,if is so, how i can applied this condition to the region?

Thanks
10-15-2012 10:13 PM
Find all posts by this user Like Post Quote this message in a reply
Rayvolution
Journeyman
*

Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1

Aetharia

Post: #2
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|reg​ion_antimagic_recall_out|region_antimagic_gate
P=2473,2107,10,0
RECT=2350,1981,2588,2198,0

[Image: 4_Logo.png]
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
Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #3
RE: Anti-Gate, recall and mark?
Thanks man!.
10-15-2012 11:05 PM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #4
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>&region_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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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