View Single Post
  #24  
Old 10-12-2016, 04:10 AM
NostalgiaEQ
Banned
 
Join Date: Sep 2016
Location: us
Posts: 201
Default

Quote:
Originally Posted by Uleat View Post
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.
Thanks a ton, just having trouble figuring out how to get zlib installed so I can compile the server.
Reply With Quote