Issue Information
-
#000052
-
5 - Critical
-
Fixed
Issue Confirmations
-
Yes (0)No (0)
Originally posted by theultramage
http://www.eathena.w...cker&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
SC_JAILED was first introduced in r7751.
http://www.eathena.w...cker&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!
{
...
if (sd->sc.data[SC_JAILED].timer != -1)
return 1; //You may not get out!
SC_JAILED was first introduced in r7751.