Issue information

Issue ID
#52
Status
Fixed
Severity
Critical
Started
Hercules Elf Bot
Sep 13, 2007 22:44
Last Post
Hercules Elf Bot
Apr 4, 2012 9:57
Confirmation
N/A

Hercules Elf Bot - Sep 13, 2007 22:44

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=52

The new 'jailed' status somewhat breaks old scripts. I got a report that npc/custom/penal_servitude.txt wasn't working right.

The problem is, the SC_JAILED status prevents you from warping away. And it does it very thoroughly - it even blocks gm-level atcommands and script-attempted warping. Basically, you can't move from the spot until an @unjail command is issued.
Contrast this to jail scripts that would usually like to warp you around the prison or into the secondary prison map. Penal Servitude is totally broken atm.

The precise cause is
CODE
int pc_setpos(struct map_session_data *sd,unsigned short mapindex,int x,int y,int clrtype)
{
    ...

            if (sd->sc.data[SC_JAILED].timer != -1)
                return 1; //You may not get out!


SC_JAILED was first introduced in r7751.

Hercules Elf Bot - Dec 14, 2011 23:42

Originally posted by [b]Ind[/b]
was fixed in a previous eA. I'd like to note the script in question no longer exists.