Log in

View Full Version : Picklock bug


image
07-21-2011, 06:10 PM
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:

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:
else if(lockpicks != NULL)
{
if(sender->GetSkill(PICK_LOCK))
{
if(lockpicks->GetItem()->ItemType == ItemTypeLockPick)
{