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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-10-2009, 07:53 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,503
Default

You don't need the $name. part and to set a global you need to show the npc/player/zone level.
Reply With Quote
  #2  
Old 10-10-2009, 08:14 PM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

Quote:
Originally Posted by joligario View Post
You don't need the $name. part and to set a global you need to show the npc/player/zone level.
$name. is part of the global name,helps me identify what global is for who, and i'm not understanding what you mean by need to show the npc/player/zone level. could you please clarify?
Reply With Quote
  #3  
Old 10-11-2009, 10:12 AM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

Code:
if($zoneid == 189 && !defined($qglobals{$name."tutb"}) && $ulevel ==1) {
	my $instanceID = quest::CreateInstance("tutorialb", 1, 64800);
    quest::AssignToInstance($instanceID); 
    quest::setglobal($name."tutb",$instanceID,7,"H18");
	quest::setglobal($name."zone",$instanceID,7,"H18");
    quest::MovePCInstance(189, $instanceID, -696.0, 271.2, 16.4);
  }
  if ($zoneid == 189 && defined($qglobals{$name."tutb"}) && !defined($qglobals{$name."zone"})) {
  my $instanceID = $qglobals{$name."tutb"};
  quest::AssignToInstance($instanceID);
  quest::setglobal($name."zone",$instanceID,7,"H18");
  quest::MovePCInstance(189, $instanceID, -696.0, 271.2, 16.4);  
  }
  if($zoneid != 189 && defined($qglobals{$name."zone"})) {
	quest::delglobal($name."zone");
  }
got it working, here is a working version, for anyone that wants to do somethin similar. I just rewrote it, so honestly, IDK what was causing it to not work. but it works now, so thats all I care lol.
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:20 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 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3