antiblock
Rodnia | Alpha & Omega
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
Witness

Adicionar nivel minimo para negociar

1 post in this topic

Boas hoje vou ensinar-vos a implementar level Minimo para poderem negociar

 

Então vamos lá :

 

ficheiro : source\game\src\exchange.cpp

 

Procurar :

 

	if (victim->IsBlockMode(BLOCK_EXCHANGE))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ó´ë¹æÀÌ ±³È¯ °ÅºÎ »óÅÂÀÔ´Ï´Ù."));
		return false;
	}

adicinar em baixo :

 

	const int min_level_exchange = 15;
	
 	if (GetLevel() < min_level_exchange || victim->GetLevel() < min_level_exchange){
 		
 		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("necessitas de level %d para negociar"),min_level_exchange);
		return false;
 		
	 }
	 

Trocar 15 pelo Level minimo

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

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
Sign in to follow this