EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Picklock bug (https://www.eqemulator.org/forums/showthread.php?t=33897)

image 07-21-2011 06:10 PM

Picklock bug
 
You can pick locks that are -1 (supposed to be immune and GM only doors or key required usually).

doors.cpp

Doors::HandleClick(Client* sender, int8 trigger)

New:
Code:

                else if(lockpicks != NULL)
                {
                        // Kings & Bandits - if lockskill is less than 65535 they can try to pick this lock, db people set -1.
                        if( (GetLockpick() < 65535) && sender->GetSkill(PICK_LOCK))
                        {

Old:
Code:

                else if(lockpicks != NULL)
                {
                        if(sender->GetSkill(PICK_LOCK))
                        {
                                if(lockpicks->GetItem()->ItemType == ItemTypeLockPick)
                                {



All times are GMT -4. The time now is 04:29 AM.

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