def setMeleyMap(self): mapName = background.GetCurrentMapName() if mapName == "metin2_map_n_flame_dragon": if player.GetGuildID() != 0 and player.GetPKMode( ) != player.PK_MODE_GUILD: for btn in self.pvpModeButtonDict.values(): btn.SetUp() net.SendChatPacket("/pkmode 4", chat.CHAT_TYPE_TALKING) self.pvpModeButtonDict[player.PK_MODE_GUILD].Down()
def __RefreshPVPButtonList(self): self.__SetPKMode(player.GetPKMode())