[HELP]HOW TO BLOCK CHAT AT OX MAP?

07/07/2013 19:43 Calibur27#1
hi guys,
it is possible to block the chat in the ox map,i mean noone can talk ?there is a way to do that?to block all comunications in ox map,not the PM's just the normal chat..
Ty
07/08/2013 08:38 mazdacostel#2
ai tu cont din 2010 ma ?:))
07/08/2013 09:26 Calibur27#3
Quote:
Originally Posted by mazdacostel View Post
ai tu cont din 2010 ma ?:))
da am

anyone knows how to disable comunication in ox map?
07/10/2013 19:09 Calibur27#4
UP?
07/11/2013 00:43 yasin41baba#5
Up
07/11/2013 01:22 Ap0kalyps3#6
You can disable communication @ OX-Map by editing root > uichat.py.


At first, add "import background" to the other imports @ the first lines of the script..

Then search "def __SendChatPacket(self"
and add the following, the line below.

PHP Code:
[TAB][TAB]if background.GetCurrentMapName() == "metin2_map_oxevent":
[
TAB][TAB][TAB]return 
Not sure if this work.
If not - you have to change "metin2_map_oxevent" to "season1/metin2_map_oxevent".


Also you can permit GameMasters with [ ] in their name to use the chat.. to do this modify the if statement as following..
PHP Code:
[TAB][TAB]if background.GetCurrentMapName() == "metin2_map_oxevent" and str(player.GetName())[0] != "["

Finally replace [TAB] with real tab characters..


hope this will help you.
kind regards.


edit;ps;
uhm.. i see, it could be possible, that you have to add the code above twice..
search for "def __SendTalkingChatPacket(self" and add it there the same way. :)
07/11/2013 10:12 Calibur27#7
Finally replace [TAB] with real tab characters..


hope this will help you.
kind regards.
i don't get it,TAB what u mean?