Ben Python'dan tamamen engellemenin yolunu anlatıyorum kullanıp kullanmamak size kalmış.
[CODE lang="python" title="root\uichat.py"]#arat;
if net.IsChatInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
else:
net.SendChatPacket(text, type)
#değiştir;
if net.IsChatInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
else:
if text.lower().find('/pkmode 2') != -1:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Serbest modunu açmak için yeterli iznin yok.")
return
elif text.lower().find('/pk 2') != -1:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Serbest modunu açmak için yeterli iznin yok.")
return
net.SendChatPacket(text, type)[/CODE]
[CODE lang="python" title="root\uigameoption.py"]#arat;
self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free")
#değiştir;
#self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free")
#tekrar arat;
self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton)
#değiştir;
#self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton)
#tekrar arat;
def __OnClickPvPModeFreeButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 2", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInf

PTION_PVPMODE_NOT_SUPPORT)
#değiştir;
#def __OnClickPvPModeFreeButton(self):
#if self.__CheckPvPProtectedLevelPlayer():
#return
#self.__RefreshPVPButtonList()
#if constInfo.PVPMODE_ENABLE:
#net.SendChatPacket("/pkmode 2", chat.CHAT_TYPE_TALKING)
#else:
#chat.AppendChat(chat.CHAT_TYPE_INFO, localeInf

PTION_PVPMODE_NOT_SUPPORT)[/CODE]
[CODE lang="python" title="root\uioption.py"]#arat;
self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free")
#değiştir;
#self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free")
#tekrar arat;
self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton)
#değiştir;
#self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton)
#tekrar arat;
def __OnClickPvPModeFreeButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 2", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInf

PTION_PVPMODE_NOT_SUPPORT)
#değiştir;
#def __OnClickPvPModeFreeButton(self):
#if self.__CheckPvPProtectedLevelPlayer():
#return
#self.__RefreshPVPButtonList()
#if constInfo.PVPMODE_ENABLE:
#net.SendChatPacket("/pkmode 2", chat.CHAT_TYPE_TALKING)
#else:
#chat.AppendChat(chat.CHAT_TYPE_INFO, localeInf

PTION_PVPMODE_NOT_SUPPORT)[/CODE]
[CODE lang="python" title="uiscript\gameoptiondialog.py"]#arat;
{
"name" : "pvp_free",
"type" : "radio_button",
"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*3,
"y" : 90,
"text" : uiScriptLocale.OPTION_PVPMODE_FREE,
"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_FREE_TOOLTIP,
"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},
#değiştir;
#{
#"name" : "pvp_free",
#"type" : "radio_button",
#"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*3,
#"y" : 90,
#"text" : uiScriptLocale.OPTION_PVPMODE_FREE,
#"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_FREE_TOOLTIP,
#"default_image" : ROOT_PATH + "small_Button_01.sub",
#"over_image" : ROOT_PATH + "small_Button_02.sub",
#"down_image" : ROOT_PATH + "small_Button_03.sub",
#},[/CODE]