Thread: Picklock bug
View Single Post
  #1  
Old 07-21-2011, 06:10 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default 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)
                                {
__________________
www.eq2emu.com
EQ2Emu Co-Founder / EQ2Emu Developer
EQEMu Co-Founder / Former EQEMu Developer / GuildWars / Zek Seasons Servers
Reply With Quote