Jump to content
  • 0

Help Chat Global+Trade Chat By PvP


AlexCardyz

Question

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  ::)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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;			
	}

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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;			
	}

                ....

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock