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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...