Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2012, 07:57 PM
mamba700
Fire Beetle
 
Join Date: Oct 2010
Posts: 5
Default Star Trek Doors

The doors auto open if Boss xx is defeated. You can change to item or no condition to just make the doors open on approach.

I made an NPC that is invisible and untargetable near the door.

The cool things is you don't have to touch the door, you just walk up to it and it checks to see if the condition is met before opening, or gives a message that condition must be met first.

I have the doors set to require a key. It so happens that the key cannot be found in the dungeon.

Code:
sub EVENT_SPAWN {

        my $z = $npc->GetZ(); ###Just incase $z object isn't defaulted
        #my $x = $npc->Getx(); ###Just incase $x object isn't defaulted
        #my $y = $npc->Gety(); ###Just incase $y object isn't defaulted

	quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50, $z - 30, $z + 30); 

 
}

sub EVENT_ENTER{

 

           $check_boss = $entity_list->GetMobByNpcTypeID(294154); #Boss xx

	    if(!$check_boss) {
		$client->Message(15, "The Boss xx has been defeated. Opening the Chamber doors.");
  		quest::forcedooropen(1008); #- Forces a door with "doorid" to open.
  		quest::forcedooropen(1009);
 
		return;
	    } else {
		$client->Message(15, "You must defeat the Boss xx to Gain Entry.");
		
	      }
	
}
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 09:00 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3