View Single Post
  #22  
Old 10-11-2016, 08:03 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

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.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote