Jump to content
  • 0

Help Chat Global+Trade Chat By PvP


Question

Posted

Someone you can share the system global and trade chat chat pvp?

 

Example to speak for (!) Global 100 is required pvp

I searched and failed xD!!

I hope your help, thanks  ::)

8 answers to this question

Recommended Posts

  • 0
Posted

Say2.java

 

Put simple check with get player pvp count.

 

Or simply for example take a look how does blocking clan chat work, if you havent clan

  • 0
Posted

example

		if (_type == SHOUT && activeChar.getPvpKills() < 50 && !activeChar.isGM())
	{
		activeChar.sendMessage("You need at least 100 pvp's in order to use shout chat!");
		return;			
	}

  • 0
Posted

example

		if (_type == SHOUT && activeChar.getPvpKills() < 50 && !activeChar.isGM())
	{
		activeChar.sendMessage("You need at least 100 pvp's in order to use shout chat!");
		return;			
	}

 

This is what I want to add xD!  But the order would go "Freya" L2JServer?

I know it's a simple code,  and I have only seen for interlude!

Freya l2jserver But, I see very different. . . .

I expect a hand. Best Regards

  • 0
Posted

It's exactly the same.

 

I tried it and it does not work.

Maybe because they do not know what the order?

I have thought to pay 4 euros to give me the scrip show properly: S

  • 0
Posted

Didn't test it but I guess, this is on Say2.java

 

Put it after:

 

                 .....

	if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)
	{
		if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
		{
			activeChar.sendMessage("You can not chat with players outside of the jail.");
			return;
		}
	}

	if (_type == SHOUT && activeChar.getPvpKills() < 50 && !activeChar.isGM())
	{
		activeChar.sendMessage("You need at least 100 pvp's in order to use shout chat!");
		return;			
	}

                ....

  • 0
Posted

Didn't test it but I guess, this is on Say2.java

 

Put it after:

 

                 .....

	if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)
	{
		if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
		{
			activeChar.sendMessage("You can not chat with players outside of the jail.");
			return;
		}
	}

	if (_type == SHOUT && activeChar.getPvpKills() < 50 && !activeChar.isGM())
	{
		activeChar.sendMessage("You need at least 100 pvp's in order to use shout chat!");
		return;			
	}

                ....

 

Yeeeesss!!!!! I worked well 100%

Thanks Exia!!

 

matim was referring to that but I did not understand it hehehehe!!

can close the topic

Thanks

Guest
This topic is now closed to further replies.


×
×
  • Create New...