Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #000052

  • 5 - Critical

  • Fixed

Issue Confirmations

  • Yes (0)No (0)
Photo

Jail Status Messes Up Jail Scripts

Posted by Hercules Bot on 13 September 2007 - 10:44 PM

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
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.

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