PDA

View Full Version : Destroying Instances on Zone Out


Randymarsh9
08-11-2012, 09:46 PM
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

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

sub EVENT_ZONE{
quest::DestroyInstance($qglobals{"InstID"});
}
on player.pl in the arena. Would this create any issues in any way?