EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Destroying Instances on Zone Out (https://www.eqemulator.org/forums/showthread.php?t=35637)

Randymarsh9 08-11-2012 09:46 PM

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?


All times are GMT -4. The time now is 01:20 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.