View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001527SphereServerexecutable - genericpublic28-09-08 18:2202-05-09 03:58
ReporterCoruja 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001527: @RegionLeave and Jail problems
DescriptionTrigger @RegionLeave is not being called when someome 'get back' to jail cell.
I have a scripted jail system that uses sphere default jail behavior, the scripted part just add reason, custom time, etc.. But the problem is that I use another region as jail cells (Yew Prison). Every player goes to jail on a different cell. It goes to the yew prison region and get "jail 1" to prevent scape.
But when this player logout and login again, it will be sent to 'default' (old) jail, and 'return 1' on @RegionLeave does not prevent this move.

So my 'suggestion' (fix?) is: not allow the player goes back to default jail if it has 'return 1' on @RegionLeave, or it region have 'return 1' on @Exit.
Additional InformationBtw, theres any propertie to change char jail region?
TagsNo tags attached.
Nightly Version09-09-2008
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000099)
nazghul (developer)
29-09-08 02:28

I'd prefer a region flag marking a region as "jail"
(0000190)
MrSugarCube (administrator)
20-04-09 00:01

Currently the "jail" location is determined by finding a region called "jail", either by defname or name, like the following:

[AREADEF jail]
NAME=Trinsic Jail
P=1851,2773,0,0

or:

[AREADEF a_myjail]
NAME=Jail
P=5295,1187,0,0


Is simply removing the jail areadef from your scripts enough to resolve this problem you're having?
(0000191)
Coruja (developer)
20-04-09 01:24
edited on: 20-04-09 01:25

hm.. what about the cells? I have 20 jail cells to separe jailed players, and maybe a 'global' region will sent everybody to the same cell. I think it's better a jail flag region that just prevent JAILED players to get out from this region (like on actual jail sphere system)
PS: oh, and removing jail region doesn't changed anything here :(

(0000192)
MrSugarCube (administrator)
20-04-09 01:57

If you're referring to the '.jail x' to send a player to cell 'x', then Sphere simply searches for a region named "jailx" ("jail1", "jail2", "jail3", etc) so you could rename your jail areadefs in a similar fashion and your custom jail/cells will behave in exactly the same way as the ones in the default script pack.

If you don't want Sphere to teleport players at all then you can simply remove/rename the "jail" and "jailx" regions from the script pack and you'll then have more control over how your jail cells work.
(0000193)
MrSugarCube (administrator)
22-04-09 15:48

I didn't see your edit - after removing the jail region (remember to check for both "NAME=Jail" and "DEF jail]", and also the jail1,jail2,jail3,etc) it's likely that you will need to restart Sphere for the change to take effect. (you can use '.go jail'/'.go jailx' to check that Sphere no longer knows where the jail is or cells are)

The jail regions that I can find in the default script pack are a_jail_2 (main jail), a_jail1_1, a_jail2_1, a_jail3_1, a_jail4_1, a_jail5_1, a_jail6_1, a_jail7_1, a_jail8_1, a_jail9_1 and a_jail_10_1 (jail cells).
(0000196)
Coruja (developer)
01-05-09 06:14

Sure, its working fine now on latest nightly release :D

- Issue History
Date Modified Username Field Change
28-09-08 18:22 Coruja New Issue
28-09-08 18:22 Coruja Nightly Version => 09-09-2008
28-09-08 18:22 Coruja Experimental Flags => None
28-09-08 18:22 Coruja Option Flags => None
29-09-08 02:28 nazghul Note Added: 0000099
20-04-09 00:01 MrSugarCube Note Added: 0000190
20-04-09 01:24 Coruja Note Added: 0000191
20-04-09 01:25 Coruja Note Edited: 0000191
20-04-09 01:57 MrSugarCube Note Added: 0000192
22-04-09 15:48 MrSugarCube Note Added: 0000193
01-05-09 06:14 Coruja Note Added: 0000196
02-05-09 03:58 MrSugarCube Status new => closed
02-05-09 03:58 MrSugarCube Resolution open => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker