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 02-28-2010, 03:00 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I tried to use this quest on the NPC, but it is only sending my characters to the regular arena despite their qglobal. It will say the message that it is assigning them to the correct instance, but then it will zone them into the original zone.

Code:
my $zoneB = 0;
my $zoneC = 0;

sub EVENT_SPAWN {
  $zoneB = quest::CreateInstance("arena", 1, 3000);
  $zoneC = quest::CreateInstance("arena", 2, 3000);
}

sub EVENT_SAY {
  if($text=~/Hail/i) {
    if($qglobals{arena1} == 1) {
      quest::AssignToInstance($zoneB);
	$client->Message(3,"Assigning to Arena1");
	quest::MovePCInstance(77, $zoneB, -41, 131, -0.5);
    }
    elsif($qglobals{arena1} == 2) {
      quest::AssignToInstance($zoneC);
      $client->Message(3,"Assigning to Arena2");
	quest::MovePCInstance(77, $zoneC, -41, 131, -0.5);
    }
    else{
	$client->Message(3,"Sending to regular arena");
	quest::zone(arena);
}
  }
 if ($text =~/arena1/i){
  $client->Message(3,"Would you like me to enable ArenaA or ArenaB?");
 }
 if ($text =~/arenaA/i){
 quest::setglobal("arena1", 1, 5, "F");
 $client->Message(3,"Global arena1 set to 1");
 }
 if ($text =~/arenaB/i){
 quest::setglobal("arena1", 2, 5, "F");
 $client->Message(3,"Global arena1 set to 2");
 }
}
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 07:36 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