View Single Post
  #1  
Old 08-11-2012, 09:46 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Destroying Instances on Zone Out

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?
Reply With Quote