From 3ddf8c5a6e6b3571699992fee9935633855b5fb0 Mon Sep 17 00:00:00 2001 From: Atemo Date: Fri, 28 Feb 2020 20:53:32 +0100 Subject: [PATCH] Corrected the doc instancing sample (#4671) Fixed #4670 --- doc/sample/instancing.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/sample/instancing.txt b/doc/sample/instancing.txt index 0fa082a3f1..f67b3510f8 100644 --- a/doc/sample/instancing.txt +++ b/doc/sample/instancing.txt @@ -17,7 +17,7 @@ prontera,151,190,6 script Sample Instance 101,{ .@instance$ = "Abyss Lake Instance"; - if (instance_id()) { // ignore the console debug message (harmless) + if (instance_live_info(ILI_NAME, instance_id(IM_PARTY)) == .@instance$) { // the instance "Abyss Lake Instance" is running mes "[Sample Instance]"; mes "You are already part of an instance."; next; @@ -30,7 +30,13 @@ prontera,151,190,6 script Sample Instance 101,{ emotion ET_CRY; close; } - } else { + } + else if (instance_id(IM_PARTY)) { // another instance is running + mes "[Sample Instance]"; + mes "You are part of the instance " + instance_live_info(ILI_NAME, instance_id(IM_PARTY)) + "."; + close; + } + else { mes "[Sample Instance]"; mes "Would you like to try the sample instance in Abyss Lake 3?"; next;