PDA

View Full Version : GM pass locked portral without having a key


tsowl
09-19-2009, 04:43 AM
zone/doors.cpp


- 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.