Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-31-2011, 11:33 PM
Durge
Sarnak
 
Join Date: Jan 2010
Location: USA
Posts: 51
Default Creating A New Instance

Sorry folks, I'm back again :p, this time with an instancing problem. I have recently tried to use the plugin for it, but have had no luck with it.
I was not sure how to make it send you to the already made instance if one existed, therefore I just tried adding in the 'else' statement.

Code:
sub EVENT_SAY
{
	if($text=~/hail/i);
	{
		$client->Message(315, "Hello $name, would you be interested in creating a new [zone]?");
	}
	
	if($text=~/Zone/i || $text=~/Enter Zone/i);
	{
			my $TYPE = $uguild_id;
			my $space = "_";
			my $InstanceName = "Inst";
			my $ZoneSN = $zonesn;
			if($uguild_id)
			{
				if (defined($qglobals{"$TYPE$space$InstanceName$space$ZoneSN"}))
				{
					plugin::SendToInstance("guild", sebilis, 1, $Cx, $Cy, $Cz, "Inst", 648000);
					$client->Message(15, "I will now relocate you to the instance: [$zoneln].");
				}
				else
				{
					plugin::SendToInstance("guild", sebilis, 1, $Cx, $Cy, $Cz, "Inst", 648000);
				}
			}
	}
}
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:22 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3