Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2013, 10:12 PM
GurkhaPanzers
Hill Giant
 
Join Date: Aug 2010
Location: Arizona
Posts: 164
Default Instance set to public but creates 1 instance per player, any ideas?

sub EVENT_SAY {
my $NPCName = $npc->GetCleanName();
if ($text=~/hail/i) {
my $sl1 = quest::saylink("Mortal!", 1, "Do you have the strength to engage the Vampire lord of the Froglocks?.");
$client->Message(14, "$NPCName says 'Froglock Master Vampire must be stopped!'");
$client->Message(11, "::: $sl1");
} elsif ($text=~/Mortal!/i) {
if ($ulevel >= 70) {
$client->Message(13, "Beware the undead have grown strong");
plugin::SendToInstance("public", "guke", 1, 688, -1026, 59, "gukeVI", 64000); # Creates a instance trough a class in plugin folder
} else {
$client->Message(14, "$NPCName says 'Come back when you have more courage.'");
}
}
}

sub EVENT_ITEM {
plugin::return_items(\%itemcount);
if ($platinum != 0 || $gold !=0 || $silver != 0 || $copper != 0) {
quest::givecash($copper, $silver, $gold, $platinum);
}
}
Reply With Quote
  #2  
Old 09-03-2013, 10:40 PM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

Code:
sub EVENT_SAY 
{
	my $NPCName = $npc->GetCleanName();
	
	if ($text=~/hail/i) 
	{
		my $sl1 = quest::saylink("Mortal!", 1, "Do you have the strength to engage the Vampire lord of the Froglocks?.");
		
		$client->Message(14, "$NPCName says 'Froglock Master Vampire must be stopped!'");
		$client->Message(11, "::: $sl1");
	} 
	elsif ($text=~/Mortal!/i)
	{
		if ($ulevel >= 70) 
		{
			$client->Message(13, "Beware the undead have grown strong");
			plugin::SendToInstance("public", "guke", 1, 688, -1026, 59, "gukeVI", 64000); # Creates a instance trough a class in plugin folder
		} 
		else 
		{
			$client->Message(14, "$NPCName says 'Come back when you have more courage.'");
		}
	}
}

sub EVENT_ITEM 
{
	plugin::return_items(\%itemcount);
	
	if ($platinum != 0 || $gold !=0 || $silver != 0 || $copper != 0) 
	{
		quest::givecash($copper, $silver, $gold, $platinum);
	}
}
Indented and converted to BBCode for clarity.
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote
  #3  
Old 09-03-2013, 10:54 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Can you verify whether the instance name is prefixed with 'pub'?
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #4  
Old 09-03-2013, 11:01 PM
GurkhaPanzers
Hill Giant
 
Join Date: Aug 2010
Location: Arizona
Posts: 164
Default

Where would I check that?
Reply With Quote
  #5  
Old 09-03-2013, 11:13 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

This looks like a place to start..

Code:
quest::write("InstanceLogs/$TYPE$space$InstanceName$space$ZoneSN.txt","[$timestamp] : $name has created instance $zoneln");

I'm not familiar enough with all of the #commands to know which might help..if there is one...
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #6  
Old 09-04-2013, 12:26 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Turn qglobals on for the NPC.

If you don't have qglobals on the NPC is not able to perform the lookup necessary to find an instance ID associated with the identifier, therefore it decides to create another instance (separately) and sends the player there.

Hopefully that helps.
Reply With Quote
  #7  
Old 09-06-2013, 01:09 AM
GurkhaPanzers
Hill Giant
 
Join Date: Aug 2010
Location: Arizona
Posts: 164
Default

Thanks the qglobal was it. Its amazing how something I done right a hundred times I completely spaced and never checked. Often times the hardest thing to see is the obvious. Thanks again everyone for the help.
Reply With Quote
  #8  
Old 09-06-2013, 09:39 AM
Dunge0nMastr
Hill Giant
 
Join Date: Oct 2002
Location: Rockville, MD
Posts: 124
Default

Quote:
Originally Posted by GurkhaPanzers View Post
Thanks the qglobal was it. Its amazing how something I done right a hundred times I completely spaced and never checked. Often times the hardest thing to see is the obvious. Thanks again everyone for the help.
I can not count the number of times i have forgotten to turn qglobals on, and spent hours banging my head over a script i knew should work :P
__________________
Bront -Server Admin/Owner and Lead Quest Dev for Kildrukaun's Prophecy
http://kpemu.com/
Reply With Quote
  #9  
Old 09-06-2013, 04:27 PM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default

It was every script on NL in the old days when we didn't know how to use qglobals...
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
Reply


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 04:40 PM.


 

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