Jump to content

Need party & guild inviting block functions


Recommended Posts

  • 2 weeks later...

 

[File: /src/Server/game/src/char.cpp]

..//1.) Search:

	else if (pchInvitee->IsBlockMode(BLOCK_PARTY_INVITE))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<파티> %s 님이 파티 거부 상태입니다."), pchInvitee->GetName());
		return;
	}

..//2.) Add bellow:

#ifdef ENABLE_EXTRA_BLOCK_PARTY	
	#define ERROR_PARTY(argument)	ChatPacket(CHAT_TYPE_INFO, argument); //me_vegas_func183

	else if (GetGMLevel() > GM_PLAYER && pchInvitee->GetGMLevel() == GM_PLAYER) {
		ERROR_PARTY("<<Party>> You can not send a request to a player!");
		return;
	}	
	
	else if (GetGMLevel() == GM_PLAYER && pchInvitee->GetGMLevel() > GM_PLAYER) {
		ERROR_PARTY("<<Party>> You can not send a request to a staff member!");
		return;
	}	
#endif

 

 

[File: /src/Server/game/src/guild.cpp]

..//1.) Search:

	else if ( pchInvitee->GetEmpire() != pchInviter->GetEmpire() ) 
	{
		pchInviter->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("<길드> 다른 제국 사람을 길드에 초대할 수 없습니다.") );
		return;
	}

..//2.) Add bellow:

#ifdef ENABLE_EXTRA_BLOCK_GUILD	
	#define ERROR_GUILD(argument)	 pchInviter->ChatPacket(CHAT_TYPE_INFO, argument); //me_vegas_func184

	else if (pchInviter->GetGMLevel() > GM_PLAYER && pchInvitee->GetGMLevel() == GM_PLAYER) {
		ERROR_GUILD("<<Party>> You can not send a request to a player!");
		return;
	}	
	
	else if (pchInviter->GetGMLevel() == GM_PLAYER && pchInvitee->GetGMLevel() > GM_PLAYER) {
		ERROR_GUILD("<<Party>> You can not send a request to a staff member!");
		return;
	}				
#endif

 

[File: /src/Server/game/common/service.h]

#define ENABLE_EXTRA_BLOCK_GUILD
#define ENABLE_EXTRA_BLOCK_PARTY

 

Edited by VegaS
fix
  • Love 3
Link to comment
Share on other sites

1 hour ago, VegaS said:

 

[File: /src/Server/game/src/char.cpp]

..//1.) Search:


	else if (pchInvitee->IsBlockMode(BLOCK_PARTY_INVITE))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<파티> %s 님이 파티 거부 상태입니다."), pchInvitee->GetName());
		return;
	}

..//2.) Add bellow:


#ifdef ENABLE_EXTRA_BLOCK_PARTY	
	#define ERROR_PARTY(argument)	ChatPacket(CHAT_TYPE_INFO, argument); //me_vegas_func183

	else if (GetGMLevel() > GM_PLAYER && pchInvitee->GetGMLevel() == GM_PLAYER) {
		ERROR_PARTY("<<Party>> You can not send a request to a player!");
		return;
	}	
	
	else if (GetGMLevel() == GM_PLAYER && pchInvitee->GetGMLevel() > GM_PLAYER) {
		ERROR_PARTY("<<Party>> You can not send a request to a staff member!");
		return;
	}	
#endif

 

 

[File: /src/Server/game/src/guild.cpp]

..//1.) Search:


	else if ( pchInvitee->GetEmpire() != pchInviter->GetEmpire() ) 
	{
		pchInviter->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("<길드> 다른 제국 사람을 길드에 초대할 수 없습니다.") );
		return;
	}

..//2.) Add bellow:


#ifdef ENABLE_EXTRA_BLOCK_GUILD	
	#define ERROR_GUILD(argument)	 pchInviter->ChatPacket(CHAT_TYPE_INFO, argument); //me_vegas_func184

	else if (pchInviter->GetGMLevel() > GM_PLAYER && pchInvitee->GetGMLevel() == GM_PLAYER) {
		ERROR_GUILD("<<Party>> You can not send a request to a player!");
		return;
	}	
	
	else if (pchInviter->GetGMLevel() == GM_PLAYER && pchInvitee->GetGMLevel() > GM_PLAYER) {
		ERROR_GUILD("<<Party>> You can not send a request to a staff member!");
		return;
	}				
#endif

 

[File: /src/Server/game/common/service.h]


#define ENABLE_EXTRA_BLOCK_GUILD
#define ENABLE_EXTRA_BLOCK_PARTY

 

Thank you so much, exactly what I needed :)

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Target Information System

    2. 1

      Feeding game source to LLM

    3. 2

      anti exp explanation pls

    4. 1

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 0

      [GR2] Positioning an object added with "Attach"

    7. 1417

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.