Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
On 9/5/2018 at 11:30 AM, Reborn12 said:
REMOVE THIS

		final CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text);
		final int region = MapRegionTable.getMapRegion(activeChar.getX(), activeChar.getY());
		
		for (L2PcInstance player : L2World.getInstance().getPlayers())
		{
			if (!BlockList.isBlocked(player, activeChar) && region == MapRegionTable.getMapRegion(player.getX(), player.getY()))
				player.sendPacket(cs);
		}
	}

AND USE THIS

			final CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text);
						
			for (L2PcInstance player : L2World.getInstance().getPlayers())
			{
				if (!BlockList.isBlocked(player, activeChar))
					player.sendPacket(cs);
			}
		
		}

 do that for ChatTrade & ChatShout in chathandlers

Edited by Xenokage
  • Thanks 1

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...

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