EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   GM pass locked portral without having a key (https://www.eqemulator.org/forums/showthread.php?t=29598)

tsowl 09-19-2009 04:43 AM

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())))


pfyon 09-19-2009 01:22 PM

As I recall, if you have your gm status on then you get a special 'gm key' that lets you open every door.

cavedude 09-19-2009 03:03 PM

Yes, with #gm on you don't need a key.

KLS 09-19-2009 05:11 PM

GM doesn't work for every door unfortunately.

tsowl 09-20-2009 07:39 AM

e.g. GM cannot get in towers of bothunder without this change.

cavedude 09-20-2009 12:41 PM

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.

cavedude 09-27-2009 12:38 PM

Added to revision 995.


All times are GMT -4. The time now is 12:32 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.