Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2009, 04:43 AM
tsowl
Fire Beetle
 
Join Date: Jul 2004
Posts: 8
Default GM pass locked portral without having a key

zone/doors.cpp

Code:
-		else if (( !IsDoorOpen() || opentype == 58 ) && (keyneeded && keyneeded == playerkey)) 
+		else if (( !IsDoorOpen() || opentype == 58 ) && (keyneeded && ((keyneeded == playerkey) || sender->GetGM())))
Reply With Quote
  #2  
Old 09-19-2009, 01:22 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

As I recall, if you have your gm status on then you get a special 'gm key' that lets you open every door.
Reply With Quote
  #3  
Old 09-19-2009, 03:03 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Yes, with #gm on you don't need a key.
Reply With Quote
  #4  
Old 09-19-2009, 05:11 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

GM doesn't work for every door unfortunately.
Reply With Quote
  #5  
Old 09-20-2009, 07:39 AM
tsowl
Fire Beetle
 
Join Date: Jul 2004
Posts: 8
Default

e.g. GM cannot get in towers of bothunder without this change.
Reply With Quote
  #6  
Old 09-20-2009, 12:41 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Ah yes, I forgot about quest/port doors. My team and I really need to get into the habit of adding status checks to some of the scripts. However, this is a better approach anyway.
Reply With Quote
  #7  
Old 09-27-2009, 12:38 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Added to revision 995.
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 05:44 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3