Jump to content

Bloquear EXP se o item XPTO estiver equipado


Braunwald

Recommended Posts

####  Src/game/char.cpp

 

Spoiler
///in: 		case POINT_EXP:

//Search:
				else
				{
					if (gPlayerMaxLevel <= GetLevel())
						return;

					if (test_server)
						ChatPacket(CHAT_TYPE_INFO, "You have gained %d exp.", amount);
                                                     
//Add after:
					LPITEM pItem = GetWear(WEAR_WEAPON);
					if (NULL != pItem && pItem->GetVnum() == 10){
						return;
					}

 

 

Edited by Braunwald
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...