Fixes an issue in eclage quest (#4547)

* The script should stop when the quest is not active
* Fixes issue #4540

Thanks to @Indigo000
This commit is contained in:
Atemo 2020-01-20 22:35:52 +01:00 committed by GitHub
parent 148519b47a
commit 79a5a5b32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4600,28 +4600,28 @@ OnTouch:
function script CheckBurglary { function script CheckBurglary {
.@last = getarg(1); .@last = getarg(1);
for ( .@i = getarg(0); .@i <= .@last; .@i++ ) { for ( .@i = getarg(0); .@i <= .@last; .@i++ ) {
switch(.@i) {
if (checkquest(.@i) != -1) if (checkquest(.@i) != -1)
continue; continue;
switch(.@i) {
case 9252: case 9252:
mes "- Let's examine Poppy first -"; mes "- Let's examine Poppy first -";
return; close;
case 9253: case 9253:
mes "- Let's examine the messy"; mes "- Let's examine the messy";
mes "bookshelves first -"; mes "bookshelves first -";
return; close;
case 9254: case 9254:
mes "- Let's examine the damaged"; mes "- Let's examine the damaged";
mes "book first -"; mes "book first -";
return; close;
case 9255: case 9255:
mes "- Let's examine the"; mes "- Let's examine the";
mes "container first -"; mes "container first -";
return; close;
case 9256: case 9256:
mes "- Let's examine the"; mes "- Let's examine the";
mes "messed up table first -"; mes "messed up table first -";
return; close;
} }
} }
return; return;