I made a change to the code snippet..oversight of untested code :/
The changed logic is correct - sorry about that!
There is no code 'replacement' involved.
Just go to the end of line 1015, press enter, then paste this on the new line:
Code:
if (!client->GetGM() && (!IsPlayerCorpse() || (IsPlayerCorpse() && (char_id != client->CharacterID())))) {
if (item->ReqLevel && (item->ReqLevel > client->GetLevel()))
continue;
if (item->Races && (item->Races & ~GetPlayerRaceBit(client->GetRace())))
continue;
if (item->Classes && (item->Classes & ~GetPlayerClassBit(GetPlayerClassValue(client->GetClass()))))
continue;
}
If you 'remove' any of the current code, you will have issues.