forked from metin2/client
Added game files from TMP4
This commit is contained in:
@ -9,7 +9,7 @@ MAP_TREE2 = "MAP_TREE2"
|
||||
BLEND_POTION_NO_TIME = "BLEND_POTION_NO_TIME"
|
||||
BLEND_POTION_NO_INFO = "BLEND_POTION_NO_INFO"
|
||||
|
||||
APP_TITLE = "Zoria 2"
|
||||
APP_TITLE = "METIN2"
|
||||
|
||||
GUILD_HEADQUARTER = "Main Building"
|
||||
GUILD_FACILITY = "Facility"
|
||||
@ -47,9 +47,11 @@ __IS_CIBN10 = "locale/cibn10" == app.GetLocalePath()
|
||||
__IS_WE_KOREA = "locale/we_korea" == app.GetLocalePath()
|
||||
__IS_TAIWAN = "locale/taiwan" == app.GetLocalePath()
|
||||
__IS_JAPAN = "locale/japan" == app.GetLocalePath()
|
||||
LOGIN_FAILURE_WRONG_SOCIALID = "ASDF"
|
||||
LOGIN_FAILURE_SHUTDOWN_TIME = "ASDF"
|
||||
|
||||
if __IS_CANADA:
|
||||
__IS_EUROPE = TRUE
|
||||
__IS_EUROPE = True
|
||||
|
||||
def IsYMIR():
|
||||
return "locale/ymir" == app.GetLocalePath()
|
||||
@ -152,7 +154,7 @@ def LoadLocaleFile(srcFileName, localeDict):
|
||||
try:
|
||||
tokens = line[:-1].split("\t")
|
||||
if len(tokens) == 2:
|
||||
localeDict[tokens[0]] = tokens[1]
|
||||
localeDict[tokens[0]] = tokens[1]
|
||||
elif len(tokens) >= 3:
|
||||
type = tokens[2].strip()
|
||||
if type:
|
||||
@ -181,21 +183,18 @@ elif IsSINGAPORE() :
|
||||
LOCALE_FILE_NAME = "%s/locale_game.txt" % app.GetLocalePath()
|
||||
constInfo.IN_GAME_SHOP_ENABLE = 0
|
||||
elif IsNEWCIBN() :
|
||||
##<23><><EFBFBD>Ӹ<EFBFBD><D3B8>̱<EFBFBD><CCB1><EFBFBD><EFBFBD><EFBFBD>.
|
||||
APP_TITLE = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2"
|
||||
FN_GM_MARK = "%s/effect/gm.mse" % app.GetLocalePath()
|
||||
LOCALE_FILE_NAME = "%s/locale_game.txt" % app.GetLocalePath()
|
||||
constInfo.IN_GAME_SHOP_ENABLE = 0
|
||||
constInfo.IN_GAME_SHOP_ENABLE = 1
|
||||
elif IsTAIWAN():
|
||||
APP_TITLE = "<EFBFBD><EFBFBD>III<EFBFBD><EFBFBD>"
|
||||
FN_GM_MARK = "%s/effect/gm.mse" % app.GetLocalePath()
|
||||
LOCALE_FILE_NAME = "%s/locale_game.txt" % app.GetLocalePath()
|
||||
|
||||
constInfo.IN_GAME_SHOP_ENABLE = 1
|
||||
elif IsJAPAN():
|
||||
APP_TITLE = "CRUEL WAR - Return of the Metin2"
|
||||
FN_GM_MARK = "%s/effect/gm.mse" % app.GetLocalePath()
|
||||
LOCALE_FILE_NAME = "%s/locale_game.txt" % app.GetLocalePath()
|
||||
|
||||
constInfo.IN_GAME_SHOP_ENABLE = 1
|
||||
|
||||
else:
|
||||
FN_GM_MARK = "%s/effect/gm.mse" % app.GetLocalePath()
|
||||
LOCALE_FILE_NAME = "%s/locale_game.txt" % app.GetLocalePath()
|
||||
@ -611,6 +610,7 @@ SHOP_ERROR_DICT = {
|
||||
"SOLDOUT" : SHOP_SOLDOUT,
|
||||
"INVENTORY_FULL" : SHOP_INVENTORY_FULL,
|
||||
"INVALID_POS" : SHOP_INVALID_POS,
|
||||
"NOT_ENOUGH_MONEY_EX" : SHOP_NOT_ENOUGH_MONEY_EX,
|
||||
}
|
||||
|
||||
STAT_MINUS_DESCRIPTION = {
|
||||
@ -691,6 +691,18 @@ if 949 == app.GetDefaultCodePage():
|
||||
|
||||
return result
|
||||
|
||||
def NumberToSecondaryCoinString(number):
|
||||
if number <= 0:
|
||||
return "0<EFBFBD><EFBFBD>"
|
||||
|
||||
number = str(number)
|
||||
result = CutMoneyString(number, 0, 4, "", "")
|
||||
result = CutMoneyString(number, 4, 8, "<EFBFBD><EFBFBD>", result)
|
||||
result = CutMoneyString(number, 8, 12, "<EFBFBD><EFBFBD>", result)
|
||||
result = result + "<EFBFBD><EFBFBD>"
|
||||
|
||||
return result
|
||||
|
||||
def FISHING_NOTIFY(isFish, fishName):
|
||||
if isFish:
|
||||
return fishName + I(fishName) + "<EFBFBD><EFBFBD> <20><> <20>մϴ<D5B4>."
|
||||
@ -753,6 +765,17 @@ elif 932 == app.GetDefaultCodePage():
|
||||
result = CutMoneyString(number, 8, 12, "<EFBFBD><EFBFBD>", result)
|
||||
result = result + "<EFBFBD><EFBFBD>"
|
||||
|
||||
return result
|
||||
def NumberToSecondaryCoinString(number) :
|
||||
if number <= 0 :
|
||||
return "0jun"
|
||||
|
||||
number = str(number)
|
||||
result = CutMoneyString(number, 0, 4, "", "")
|
||||
result = CutMoneyString(number, 4, 8, "<EFBFBD><EFBFBD>", result)
|
||||
result = CutMoneyString(number, 8, 12, "<EFBFBD><EFBFBD>", result)
|
||||
result = result + "jun"
|
||||
|
||||
return result
|
||||
elif IsHONGKONG():
|
||||
def DO_YOU_SELL_ITEM(sellItemName, sellItemCount, sellItemPrice):
|
||||
@ -805,6 +828,19 @@ elif IsHONGKONG():
|
||||
result = result + MONETARY_UNIT0
|
||||
|
||||
return result
|
||||
|
||||
def NumberToSecondaryCoinString(number) :
|
||||
if number <= 0 :
|
||||
return "0 %s" % (MONETARY_UNIT_JUN)
|
||||
|
||||
number = str(number)
|
||||
result = CutMoneyString(number, 0, 4, "", "")
|
||||
result = CutMoneyString(number, 4, 8, MONETARY_UNIT1, result)
|
||||
result = CutMoneyString(number, 8, 12, MONETARY_UNIT2, result)
|
||||
result = result + MONETARY_UNIT_JUN
|
||||
|
||||
return result
|
||||
|
||||
elif IsNEWCIBN() or IsCIBN10():
|
||||
def DO_YOU_SELL_ITEM(sellItemName, sellItemCount, sellItemPrice):
|
||||
if sellItemCount>1:
|
||||
@ -835,7 +871,7 @@ elif IsNEWCIBN() or IsCIBN10():
|
||||
|
||||
def FISHING_NOTIFY(isFish, fishName):
|
||||
if isFish:
|
||||
return fishName + "<EFBFBD>Ϲ<EFBFBD><EFBFBD>ˡ<EFBFBD>"
|
||||
return fishName # <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20>پ<EFBFBD><D9BE>ִµ<D6B4>, <20><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>־ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ф<EFBFBD>... cython<6F><6E><EFBFBD><EFBFBD> <20><><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...
|
||||
else:
|
||||
return "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" + fishName + "<EFBFBD>ˡ<EFBFBD>"
|
||||
|
||||
@ -857,6 +893,19 @@ elif IsNEWCIBN() or IsCIBN10():
|
||||
result = result + "<EFBFBD><EFBFBD>"
|
||||
|
||||
return result
|
||||
|
||||
def NumberToSecondaryCoinString(number):
|
||||
|
||||
if number <= 0:
|
||||
return "0JUN"
|
||||
|
||||
number = str(number)
|
||||
result = CutMoneyString(number, 0, 4, "", "")
|
||||
result = CutMoneyString(number, 4, 8, "<EFBFBD><EFBFBD>", result)
|
||||
result = CutMoneyString(number, 8, 12, "<EFBFBD><EFBFBD>", result)
|
||||
result = result + "JUN"
|
||||
|
||||
return result
|
||||
elif IsEUROPE() and not IsWE_KOREA() and not IsYMIR():
|
||||
def DO_YOU_SELL_ITEM(sellItemName, sellItemCount, sellItemPrice):
|
||||
if sellItemCount > 1 :
|
||||
@ -902,3 +951,9 @@ elif IsEUROPE() and not IsWE_KOREA() and not IsYMIR():
|
||||
return "0 %s" % (MONETARY_UNIT0)
|
||||
|
||||
return "%s %s" % ('.'.join([ i-3<0 and str(n)[:i] or str(n)[i-3:i] for i in range(len(str(n))%3, len(str(n))+1, 3) if i ]), MONETARY_UNIT0)
|
||||
|
||||
def NumberToSecondaryCoinString(n) :
|
||||
if n <= 0 :
|
||||
return "0 %s" % (MONETARY_UNIT_JUN)
|
||||
|
||||
return "%s %s" % ('.'.join([ i-3<0 and str(n)[:i] or str(n)[i-3:i] for i in range(len(str(n))%3, len(str(n))+1, 3) if i ]), MONETARY_UNIT_JUN)
|
||||
|
Reference in New Issue
Block a user