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

09-03-2013, 10:12 PM
|
Hill Giant
|
|
Join Date: Aug 2010
Location: Arizona
Posts: 164
|
|
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);
}
}
|

09-03-2013, 10:40 PM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 143
|
|
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.
|
 |
|
 |

09-03-2013, 10:54 PM
|
 |
Developer
|
|
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
|
|
Can you verify whether the instance name is prefixed with 'pub'?
__________________
Uleat of Bertoxxulous
Compilin' Dirty
|

09-03-2013, 11:01 PM
|
Hill Giant
|
|
Join Date: Aug 2010
Location: Arizona
Posts: 164
|
|
Where would I check that?
|

09-03-2013, 11:13 PM
|
 |
Developer
|
|
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
|
|
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
|

09-04-2013, 12:26 AM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
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.
|

09-06-2013, 01:09 AM
|
Hill Giant
|
|
Join Date: Aug 2010
Location: Arizona
Posts: 164
|
|
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.
|

09-06-2013, 09:39 AM
|
Hill Giant
|
|
Join Date: Oct 2002
Location: Rockville, MD
Posts: 124
|
|
Quote:
Originally Posted by GurkhaPanzers
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/
|

09-06-2013, 04:27 PM
|
Demi-God
|
|
Join Date: Mar 2012
Posts: 1,103
|
|
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
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 04:40 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |