Thanks for your response,
I've been studying the Endless Tower and other instances inside of that folder to get a better understanding of how they work, but so far my very basic instance script seems not to allow another to be created. As it is, this script will not allow the creation of multiple instances, am I correct?
prontera,155,191,6 script Instancer 4_F_OPERATION,{
//NPC Settings
set npcname$,"^339999[Instancer]^000000";
mes npcname$;
mes "Bear with me while I initiate the first sequence.";
next;
//Define instance
set .@instance, instance_create("AmatsuInstance", getcharid(3), IOT_CHAR);
//Check if it was successful, then check if attaching is problematic
if( .@instance < 0 ) {
mes npcname$;
mes "Failed to create the instance!";
close;
} if( instance_attachmap("amatsu", .@instance, 1, "amatsu2") == "" ) {
instance_destroy(.@instance);
mes npcname$;
mes "Failed to attach Amatsu as a map!";
close;
}
//Finally initialize it
instance_attach(.@instance);
instance_set_timeout(300, 10, .@instance);
instance_init(.@instance);
//Success, let them know
mes npcname$;
mes "Initialization successful. Sending you off!";
next;
//Warp the player to this new instance.
warp "amatsu2", 198, 90;
}
I mean I realize this script is the most basic possible, but I did it to understand how instances are handled. This script under my understanding should be re-executable even if someone else created an instance simultaneously.. but when one player uses it, then another tries, it fails with "Failed to Initialize," at that stage. I know for sure I am missing something..