Is there a way you can destroy an instance when a character zones out of it? I am using Akkadius's sendtoinstance plugin, but I was considering trying something like
Code:
my $i_id = quest::CreateInstance("arena", 1, 360);
quest::AssignToInstance($i_id);
quest::MovePCInstance(77, $i_id, -41, 131, -0.5);
quest::setglobal("InstID", $i_id, 5, "F");
on the instance giver. Then doing
Code:
sub EVENT_ZONE{
quest::DestroyInstance($qglobals{"InstID"});
}
on player.pl in the arena. Would this create any issues in any way?