import app shopislem = 0 if app.TITLE_SYSTEM: title_status = { 0 : ["0"], 1 : ["0"], 2 : ["0"], 3 : ["0"], 4 : ["0"], 5 : ["0"] } TitleUpgradeItems = [ # Boş Title --Dokunma-- [ [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ], # Canavar Avcısı [ # [item1-item1adet-item2-item2adet......], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ], # Metin Avcısı [ # [item1-item1adet-item2-item2adet......], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ], # Patron Avcısı [ # [item1-item1adet-item2-item2adet......], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ], # Avcı [ # [item1-item1adet-item2-item2adet......], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ], # Katil [ # [item1-item1adet-item2-item2adet......], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [20066,0,0,0,0,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0] ] ] TitleBonus = [ # Boş Title --Dokunma-- [ [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0] ], # Canavar Avcısı [ # [bonuskodu,seviye1 bonus,seviye2 bonus,seviye3 bonus], ["Canavarlara Karşı Güç",100,250,500], [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0] ], # Metin Avcısı [ # [bonuskodu,seviye1 bonus,seviye2 bonus,seviye3 bonus], ["Canavarlara Karşı Güç",500,750,1000], ["Metinlere Karşı Güç",500,750,1000], [0,0,0,0], [0,0,0,0], [0,0,0,0] ], # Patron Avcısı [ # [bonuskodu,seviye1 bonus,seviye2 bonus,seviye3 bonus], ["Canavarlara Karşı Güç",1000,1500,2000], ["Metinlere Karşı Güç",1000,1500,2000], ["Patronlara Karşı Güç",1000,1500,2000], [0,0,0,0], [0,0,0,0] ], # Avcı [ # [bonuskodu,seviye1 bonus,seviye2 bonus,seviye3 bonus], ["Canavarlara Karşı Güç",2000,2500,3000], ["Metinlere Karşı Güç",2000,2500,3000], ["Patronlara Karşı Güç",2000,2500,3000], ["Ortalama Zarar",10,15,25], [0,0,0,0] ], # Katil [ # [bonuskodu,seviye1 bonus,seviye2 bonus,seviye3 bonus], ["Canavarlara Karşı Güç",3000,4000,5000], ["Metinlere Karşı Güç",3000,4000,5000], ["Patronlara Karşı Güç",3000,4000,5000], ["Ortalama Zarar",35,50,75], ["Berserker",5,10,20] ] ] if app.BOSS_ARENA: bossarena = [] MONSTER_INFO_DATA_VNUM = {} secilenBoss = 0 ENABLE_NEW_LEVELSKILL_SYSTEM = 0 # don't set a random channel when you open the client ENABLE_RANDOM_CHANNEL_SEL = 0 # don't remove id&pass if the login attempt fails ENABLE_CLEAN_DATA_IF_FAIL_LOGIN = 0 # ctrl+v will now work ENABLE_PASTE_FEATURE = 0 # display all the bonuses added by a stone instead of the first one ENABLE_FULLSTONE_DETAILS = 1 # enable successfulness % in the refine dialog ENABLE_REFINE_PCT = 0 # extra ui features EXTRA_UI_FEATURE = 1 # NEW_678TH_SKILL_ENABLE = 1 # EXTRA END LOAD_CURTAIN = 0 # option if app.FIRSATI_YAKALA: firsatYakalaInfo = [] IN_GAME_SHOP_ENABLE = 1 CONSOLE_ENABLE = 0 ENABLE_DEPO = 0 INPUT_IGNORE = 0 CLIENT_YOL = "lib/" if app.ENABLE_ITEM_DELETE_SYSTEM: silme = 0 ITEM_DELETE_LIST = {} DELETE_ITEM_WINDOW = 0 ITEM_REMOVE_WINDOW_STATUS = 1 deleteitem=0 if app.ENABLE_HIDE_COSTUME_SYSTEM: HIDDEN_BODY_COSTUME = 0 HIDDEN_HAIR_COSTUME = 0 if app.ENABLE_ACCE_COSTUME_SYSTEM: HIDDEN_ACCE_COSTUME = 0 if app.ENABLE_WEAPON_COSTUME_SYSTEM: HIDDEN_WEAPON_COSTUME = 0 HIDDEN_MOUNT_COSTUME = 0 HIDDEN_PET_COSTUME = 0 if app.ENABLE_INGAME_WIKI: OPEN_WIKI = 0 if app.ENABLE_KILL_STATISTICS: KILL_STATISTICS_DATA = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,] auto_shout_status = 0 auto_shout_text = "" ENABLE_MODEL_PREVIEW = 1 PVPMODE_ENABLE = 1 PVPMODE_TEST_ENABLE = 0 PVPMODE_ACCELKEY_ENABLE = 1 PVPMODE_ACCELKEY_DELAY = 0.5 PVPMODE_PROTECTED_LEVEL = 15 EnvanterAcilsinmi = 0 FOG_LEVEL0 = 4800.0 FOG_LEVEL1 = 9600.0 FOG_LEVEL2 = 12800.0 FOG_LEVEL = FOG_LEVEL0 FOG_LEVEL_LIST=[FOG_LEVEL0, FOG_LEVEL1, FOG_LEVEL2] IKARUS_NOT_NAME_SEARCH = 1 OFFLINESHOP_FUNCTION = 1 IBOYINEKAFAYIYICEKHADIBAKALIM = 1 CAMERA_MAX_DISTANCE_SHORT = 5000.0 CAMERA_MAX_DISTANCE_LONG = 5000.0 CAMERA_MAX_DISTANCE_LIST=[CAMERA_MAX_DISTANCE_SHORT, CAMERA_MAX_DISTANCE_LONG] CAMERA_MAX_DISTANCE = CAMERA_MAX_DISTANCE_SHORT CHRNAME_COLOR_INDEX = 0 ENVIRONMENT_NIGHT="d:/ymir work/environment/moonlight04.msenv" battle = 0 etkinlik = 0 # constant HIGH_PRICE = 500000 MIDDLE_PRICE = 50000 ERROR_METIN_STONE = 28960 SUB2_LOADING_ENABLE = 1 EXPANDED_COMBO_ENABLE = 1 CONVERT_EMPIRE_LANGUAGE_ENABLE = 0 USE_ITEM_WEAPON_TABLE_ATTACK_BONUS = 0 ADD_DEF_BONUS_ENABLE = 0 LOGIN_COUNT_LIMIT_ENABLE = 0 USE_SKILL_EFFECT_UPGRADE_ENABLE = 1 VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD = 1 GUILD_MONEY_PER_GSP = 100 GUILD_WAR_TYPE_SELECT_ENABLE = 1 TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE = 10 HAIR_COLOR_ENABLE = 1 ARMOR_SPECULAR_ENABLE = 1 WEAPON_SPECULAR_ENABLE = 1 SEQUENCE_PACKET_ENABLE = 1 KEEP_ACCOUNT_CONNETION_ENABLE = 1 MINIMAP_POSITIONINFO_ENABLE = 1 NESNE_MARKET = 0 isItemQuestionDialog = 0 shop_acik_bro = 0 #FREE_MOVE_CAM_ADALET GAMERAYI_ACTIM_KNK = 0 #FREE_MOVE_CAM_ADALET def GET_ITEM_QUESTION_DIALOG_STATUS(): global isItemQuestionDialog return isItemQuestionDialog def SET_ITEM_QUESTION_DIALOG_STATUS(flag): global isItemQuestionDialog isItemQuestionDialog = flag import app import net if app.ENABLE_REFINE_RENEWAL: IS_AUTO_REFINE = False AUTO_REFINE_TYPE = 0 AUTO_REFINE_DATA = { "ITEM" : [-1, -1], "NPC" : [0, -1, -1, 0] } if app.ENABLE_INVENTORY_ADDITION: SYSTEMS_WINDOW_CLOSE = 0 SYSTEMS_WINDOW_OPEN = 0 market = 0 OPEN_NEW_BOT = 0 zindan = 0 patron = 0 guvenlik = 0 offlineshop = 0 biyolog = 0 blokkurtar = 0 rank = 0 playrank = 0 # if app.ENABLE_DUNGEON_INFO_SYSTEM: # dungeonInfo = [] # dungeonRanking = { # "ranking_type" : 0, # "ranking_list" : [] # } # IS_RENDER_OPEN = 0 if app.ENABLE_NEW_PET_SYSTEM: PET_EVOLUTION = 0 PET_LEVEL = 0 PET_MAIN = 0 FEEDWIND = 0 SKILL_PET3 = 0 SKILL_PET2 = 0 SKILL_PET1 = 0 LASTAFFECT_POINT = 0 LASTAFFECT_VALUE = 0 EVOLUTION = 0 PET_TOPLAMA_AC = 0 PET_TOPLAMA_HEPSI = 0 PET_TOPLAMA_KOSTUM = 0 PET_TOPLAMA_BK = 0 PET_TOPLAMA_RUH_TASI = 0 PET_TOPLAMA_75 = 0 PET_TOPLAMA_CELIK = 0 PET_TOPLAMA_TAKI = 0 PET_TOPLAMA_ARTI = 0 PET_TOPLAMA_SANDIK = 0 PET_TOPLAMA_COR = 0 PET_TOPLAMA_COR = 0 PET_TOPLAMA_EVENT = 0 ENABLE_PET_PICKUP = 0 PET_TOPLAMA_AKTIF = 0 PET_TOPLANANLAR = [] pet_main = 0 PET_FEED_ITEM_SLOT = {} PET_ATTR_ITEM_SLOT = {} PET_CUBE_ITEMS = {} if app.ENABLE_SHOW_CHEST_DROP_SYSTEM: CHEST_DROP_INFO_DATA = {} if app.ENABLE_TARGET_INFORMATION_SYSTEM: MONSTER_INFO_DATA = {} if app.ENABLE_CHANNEL_SWITCH_SYSTEM: channel_idx = 0 if app.ENABLE_OFFICAL_CHARACTER_SCREEN: WOLF_MAN = "DISABLED" # ENABLED/DISABLED WOLF_WOMEN = "DISABLED" # ENABLED/DISABLED ######################## def SET_DEFAULT_FOG_LEVEL(): global FOG_LEVEL app.SetMinFog(FOG_LEVEL) def SET_FOG_LEVEL_INDEX(index): global FOG_LEVEL global FOG_LEVEL_LIST try: FOG_LEVEL=FOG_LEVEL_LIST[index] except IndexError: FOG_LEVEL=FOG_LEVEL_LIST[0] app.SetMinFog(FOG_LEVEL) def GET_FOG_LEVEL_INDEX(): global FOG_LEVEL global FOG_LEVEL_LIST return FOG_LEVEL_LIST.index(FOG_LEVEL) ######################## def SET_DEFAULT_CAMERA_MAX_DISTANCE(): global CAMERA_MAX_DISTANCE app.SetCameraMaxDistance(CAMERA_MAX_DISTANCE) def SET_CAMERA_MAX_DISTANCE_INDEX(index): global CAMERA_MAX_DISTANCE global CAMERA_MAX_DISTANCE_LIST try: CAMERA_MAX_DISTANCE=CAMERA_MAX_DISTANCE_LIST[index] except: CAMERA_MAX_DISTANCE=CAMERA_MAX_DISTANCE_LIST[0] app.SetCameraMaxDistance(CAMERA_MAX_DISTANCE) def GET_CAMERA_MAX_DISTANCE_INDEX(): global CAMERA_MAX_DISTANCE global CAMERA_MAX_DISTANCE_LIST return CAMERA_MAX_DISTANCE_LIST.index(CAMERA_MAX_DISTANCE) ######################## import chrmgr import player import app def SET_DEFAULT_CHRNAME_COLOR(): global CHRNAME_COLOR_INDEX chrmgr.SetEmpireNameMode(CHRNAME_COLOR_INDEX) def SET_CHRNAME_COLOR_INDEX(index): global CHRNAME_COLOR_INDEX CHRNAME_COLOR_INDEX=index chrmgr.SetEmpireNameMode(index) def GET_CHRNAME_COLOR_INDEX(): global CHRNAME_COLOR_INDEX return CHRNAME_COLOR_INDEX def SET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD(index): global VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD = index def GET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD(): global VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD return VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD def SET_DEFAULT_CONVERT_EMPIRE_LANGUAGE_ENABLE(): global CONVERT_EMPIRE_LANGUAGE_ENABLE net.SetEmpireLanguageMode(CONVERT_EMPIRE_LANGUAGE_ENABLE) def SET_DEFAULT_USE_ITEM_WEAPON_TABLE_ATTACK_BONUS(): global USE_ITEM_WEAPON_TABLE_ATTACK_BONUS player.SetWeaponAttackBonusFlag(USE_ITEM_WEAPON_TABLE_ATTACK_BONUS) def SET_DEFAULT_USE_SKILL_EFFECT_ENABLE(): global USE_SKILL_EFFECT_UPGRADE_ENABLE app.SetSkillEffectUpgradeEnable(USE_SKILL_EFFECT_UPGRADE_ENABLE) def SET_TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE(): global TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE app.SetTwoHandedWeaponAttSpeedDecreaseValue(TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE) ######################## import item ACCESSORY_MATERIAL_LIST = [50623, 50624, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633, 50634, 50635, 50636, 50637, 50638, 50639, 100049, 100050] if app.NEW_ORES: def GET_ACCESSORY_MATERIAL(subType, lv): vnum = 0 if item.ARMOR_EAR == subType: if lv == 33: vnum = 50628 elif lv == 54: vnum = 50633 else: vnum = 106962 elif item.ARMOR_FOOTS == subType: vnum = 106966 elif item.ARMOR_HEAD == subType: vnum = 106960 elif item.ARMOR_NECK == subType: if lv == 54: vnum = 50633 else: vnum = 106964 elif item.ARMOR_SHIELD == subType: vnum = 106961 elif item.ARMOR_WRIST == subType: if lv == 54: vnum = 50633 else: vnum = 106963 return vnum JewelAccessoryInfos = [ # jewel wrist neck ear [ 50634, 14420, 16220, 17220, 0,0,0 ], [ 50635, 14500, 16500, 17500, 0,0,0 ], [ 50636, 14520, 16520, 17520, 0,0,0 ], [ 50637, 14540, 16540, 17540, 0,0,0 ], [ 50638, 14560, 16560, 17560, 0,0,0 ], [ 50639, 14570, 16570, 17570, 0,0,0 ], [ 50655, 14010, 16010, 17010, 0,0,0 ], [ 50655, 0, 0, 0, 13060,0,0 ], ] else: JewelAccessoryInfos = [ # jewel wrist neck ear [ 50634, 14420, 16220, 17220 ], [ 50635, 14500, 16500, 17500 ], [ 50636, 14520, 16520, 17520 ], [ 50637, 14540, 16540, 17540 ], [ 50638, 14560, 16560, 17560 ], [ 50639, 14570, 16570, 17570 ], [ 50655, 14010, 16010, 17010 ], ] def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType): ret = vnum item_base = (vnum / 10) * 10 for info in JewelAccessoryInfos: if item.ARMOR_WRIST == subType: if info[1] == item_base: return info[0] elif item.ARMOR_NECK == subType: if info[2] == item_base: return info[0] elif item.ARMOR_EAR == subType: if info[3] == item_base: return info[0] if app.NEW_ORES: if item.ARMOR_HEAD == subType: if info[6] == item_base: return info[0] elif item.ARMOR_SHIELD == subType: if info[4] == item_base: return info[0] elif item.ARMOR_FOOTS == subType: if info[5] == item_base: return info[0] if vnum >= 16210 and vnum <= 16219: return 50625 if item.ARMOR_WRIST == subType: WRIST_ITEM_VNUM_BASE = 14000 ret -= WRIST_ITEM_VNUM_BASE elif item.ARMOR_NECK == subType: NECK_ITEM_VNUM_BASE = 16000 ret -= NECK_ITEM_VNUM_BASE elif item.ARMOR_EAR == subType: EAR_ITEM_VNUM_BASE = 17000 ret -= EAR_ITEM_VNUM_BASE if app.NEW_ORES: if item.ARMOR_HEAD == subType: ret -= 12000 elif item.ARMOR_SHIELD == subType: ret -= 13000 elif item.ARMOR_FOOTS == subType: ret -= 15000 type = ret/20 if type<0 or type>=len(ACCESSORY_MATERIAL_LIST): type = (ret-170) / 20 if type<0 or type>=len(ACCESSORY_MATERIAL_LIST): return 0 return ACCESSORY_MATERIAL_LIST[type] ################################################################## if app.ENABLE_EVENT_MANAGER: _interface_instance = None def GetInterfaceInstance(): global _interface_instance return _interface_instance def SetInterfaceInstance(instance): global _interface_instance if _interface_instance: del _interface_instance _interface_instance = instance ################################################################## if app.ENABLE_NEW_PET_SYSTEM: def IS_NEW_PET_ITEM(itemVnum): if itemVnum == 55701 or itemVnum == 55702 == itemVnum or 55703 == itemVnum or 55704 == itemVnum or 55705 == itemVnum or itemVnum == 55706 or itemVnum == 55707 or itemVnum == 55708 or itemVnum == 55709 or itemVnum == 55710 or itemVnum == 55711 or itemVnum == 55712 or itemVnum == 55713: return 1 if itemVnum == 53251 or itemVnum == 53250: return 1 return 0 def GET_BELT_MATERIAL_VNUM(vnum, subType = 0): return 18900 if app.NEW_ORES: def GET_BELT_MATERIAL(vnum, subType = 0, lv = 0): if lv <= 55: return 18900 else: return 106965 ################################################################## def IS_AUTO_POTION(itemVnum): return IS_AUTO_POTION_HP(itemVnum) or IS_AUTO_POTION_SP(itemVnum) def IS_AUTO_POTION_HP(itemVnum): if 72723 <= itemVnum and 72726 >= itemVnum: return 1 elif itemVnum >= 76021 and itemVnum <= 76022: return 1 elif itemVnum == 79012: return 1 elif itemVnum == 200000: return 1 return 0 def IS_AUTO_POTION_SP(itemVnum): if 72727 <= itemVnum and 72730 >= itemVnum: return 1 elif itemVnum >= 76004 and itemVnum <= 76005: return 1 elif itemVnum == 79013: return 1 elif itemVnum == 55701 or itemVnum == 55702 == itemVnum or 55703 == itemVnum or 55704 == itemVnum or 55705 == itemVnum or itemVnum == 55706 or itemVnum == 55707 or itemVnum == 55708 or itemVnum == 55709 or itemVnum == 55710 or itemVnum == 55711 or itemVnum == 55712 or itemVnum == 55713 or itemVnum == 17575 or itemVnum == 17576 or itemVnum == 17577 or itemVnum == 17578 or itemVnum == 17579: return 1 return 0 if app.ENABLE_EXTENDED_PET_SYSTEM: def IS_PET_ITEM(itemVnum): if itemVnum >= 53001 and itemVnum <= 53302: return 1 if itemVnum == 38200 or itemVnum == 38201: return 1 if itemVnum >= 56004 and itemVnum <= 56010: return 1 if itemVnum == 40497: return 1 if itemVnum >= 56070 and itemVnum <= 56074: return 1 if itemVnum >= 7787 and itemVnum <= 7805 or itemVnum == 7845 or itemVnum == 47846: return 1 return 0 if app.ENABLE_REFINE_RENEWAL: IS_AUTO_REFINE = False AUTO_REFINE_TYPE = 0 AUTO_REFINE_DATA = { "ITEM" : [-1, -1], "NPC" : [0, -1, -1, 0] } isTeleportState = 0 def SetTeleportState(state): global isTeleportState isTeleportState = state