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 {
.@last = getarg(1);
for ( .@i = getarg(0); .@i <= .@last; .@i++ ) {
if (checkquest(.@i) != -1)
continue;
switch(.@i) {
if (checkquest(.@i) != -1)
continue;
case 9252:
mes "- Let's examine Poppy first -";
return;
close;
case 9253:
mes "- Let's examine the messy";
mes "bookshelves first -";
return;
close;
case 9254:
mes "- Let's examine the damaged";
mes "book first -";
return;
close;
case 9255:
mes "- Let's examine the";
mes "container first -";
return;
close;
case 9256:
mes "- Let's examine the";
mes "messed up table first -";
return;
close;
}
}
return;