View Single Post
  #10  
Old 09-15-2008, 08:58 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

The factory door is handled by a Perl script, because it requires a character flag, and not a key. The door is permalocked using keyitem 1, and it's up to the script to determine if the player can open the door or not, and if so to do it. There are also doors in a similar situation, but the door can accept two keys. In that case, the script would be the same except for looking for a global, it would look for one of the keys in the player's inventory. Here is the script:

Code:
sub EVENT_CLICKDOOR {
   
   if($doorid == 7 || $doorid == 263){
      if($qglobals{pop_poi_dragon} == 1) {
            $client->Message(0,"You got the door open.");
            quest::forcedooropen(7);
      }
   }
   $qglobals{pop_poi_dragon}=undef;
  }
In other news, I must be a complete idiot, because I can't get this code to work at all. Even if I manually insert the keyitem into my database, it doesn't show up on /key, and I can't open the door without the item. (I've been trying the Paineel door.) Of course, it may be a compatibility issue as PEQ's code is significantly different than EQEmu's. Though, I think doors are the same, it could very well be my error. Also, I admit I only tried one keyitem/door so it just may be that one that is broken.
Reply With Quote