antiblock
https://i.imgur.com/aJ17bf7.gif

rafaelxte2

Membro
  • Content Count

    489
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by rafaelxte2


  1. vou é fazer como aquele velhote de 62 anos do irao (se nao me engano) comprar uma alta sniper ir para os sitios para onde eles vao ser colocados e matar 1 a 1 sejam crianças mulheres homens caes, vacxas porcos ou cabras vai tudo com o caralho. Isto dos terroristas ja mete nojo era juntar a russia frança e.u.a china entre outros paises com força militar. Meter uma bomba nuclear la no meio e ir tudo com o caralho. Sejam crianças ou mulheres era ir tudo com os porcos que aquilo ja metem nojo. Ja vi noticias de putos de 12 anos a aprender a disparar a fazer bombas entre outras coisas por isso nao tenho pena nenhuma

    Você mata uma criança terrorista, todos da familia se revolta com tal coisa e vira terrorista.

    e não estou lhe falando isso, você mesmo está a falar isso.

    se a sua revolta for maior que a vontade de acabar com essa guerra sem afetar os inocentes do lado deles,

    que pouco tem com isso, porque eles sem importaria com de vós?

     

    se combatermos terror com terror sempre haverá terror.

    Quando acharem um jeito de vencer o terror com o amor.

    Dai teremos um planeta bem melhor.


  2. Somos um pais talvez pouco desenvolvido.
    Porem somos um país amoroso com  qualquer outro, aqui tem preto, branco, amarelo, vão todos aos mesmo lugares.
    o racismo agente não conhece.
    Somos pouco desenvolvido, porem não lutamos por Recursos naturais, de outro países sabemos viver com que temos.

    Todos lideres mundias deveriam saber, levar seus países sem crescer olho nos recursos alheios.
    Portugal levou todo nosso Pau Brasil e todo nosso Ouro em meados de 1500 em diante.
    Nem por isso somos inferior ou mesmo superior.
    Ainda chamamos portugueses de irmão.
    Nosso país chamamos de Los Hermano

    é isso que falta no mundo.

    MENOS PODER MAS AMOR 


  3. eu sei que é de 2014 mas eu preciso de uma quest igual a essa ou parecida e nao encontro aqui na cyber gamrs pode ser que alguem tenha e meta

    entao toma lá 

    quest vendedora begin	state start begin		when 9003.chat."Loja de Poções" begin	     npc.open_shop(1)		    say("Aqui você encontrará todas as Porções")	end	when 9003.chat."Loja de Jóias" begin	     npc.open_shop(77)		    say("Aqui você encontrará todas as jóias")	end	when 9003.chat."Loja de Gemas de Minérios" begin	     npc.open_shop(78)		    say("Aqui você encontrará todas as Gemas de Minérios")	end	when 9010.chat."Item-Shop" begin	     npc.open_shop(2)		    say("Aqui você encontrará itens especias.")	end			endend

    deves saber o restante

     

    9003 -9010 é o id do npc da loja

     

    npc.open_shop(2) é o vnum da loja no navicat


  4. Não consegui por pastebin as linhas alteradas foram

     

    meu item_proto.txt

     

    https://mega.nz/#!WBNWEQ6L!BSxqH_A_eEUT3Ok-HBoJkbIuhI6o564Nh_43Zn08v3U

     

    3054 a 3059

     

    nas files existe um sh chamado...

     

    itemtxt.sh e contem o seguinte script

    cd /usr/game/dbpython item_txt.py
    enquanto dentro do item_txt.py contem

     


    import MySQLdbitem_type = { 0: "ITEM_NONE", 1: "ITEM_WEAPON", 2: "ITEM_ARMOR", 3: "ITEM_USE", 4: "ITEM_AUTOUSE", 5: "ITEM_MATERIAL", 6: "ITEM_SPECIAL", 7: "ITEM_TOOL", 8: "ITEM_LOTTERY", 9: "ITEM_ELK", 10: "ITEM_METIN", 11: "ITEM_CONTAINER", 12: "ITEM_FISH", 13: "ITEM_ROD", 14: "ITEM_RESOURCE", 15: "ITEM_CAMPFIRE", 16: "ITEM_UNIQUE", 17: "ITEM_SKILLBOOK", 18: "ITEM_QUEST", 19: "ITEM_POLYMORPH", 20: "ITEM_TREASURE_BOX", 21: "ITEM_TREASURE_KEY", 22: "ITEM_SKILLFORGET", 23: "ITEM_GIFTBOX", 24: "ITEM_PICK", 25: "ITEM_HAIR", 26: "ITEM_TOTEM", 27: "ITEM_BLEND", 28: "ITEM_COSTUME", 29: "ITEM_DS", 30: "ITEM_SPECIAL_DS", 31: "ITEM_EXTRACT", 32: "ITEM_SECONDARY_COIN", 33: "ITEM_RING", 34: "ITEM_BELT",}item_subtype = { 1: { 0: "WEAPON_SWORD", 1: "WEAPON_DAGGER", 2: "WEAPON_BOW", 3: "WEAPON_TWO_HANDED", 4: "WEAPON_BELL", 5: "WEAPON_FAN", 6: "WEAPON_ARROW", 7: "WEAPON_MOUNT_SPEAR", 8: "WEAPON_NUM_TYPES", }, 2: { 0: "ARMOR_BODY", 1: "ARMOR_HEAD", 2: "ARMOR_SHIELD", 3: "ARMOR_WRIST", 4: "ARMOR_FOOTS", 5: "ARMOR_NECK", 6: "ARMOR_EAR", 7: "ARMOR_NUM_TYPES", }, 3 : { 0: "USE_POTION", 1: "USE_TALISMAN", 2: "USE_TUNING", 3: "USE_MOVE", 4: "USE_TREASURE_BOX", 5: "USE_MONEYBAG", 6: "USE_BAIT", 7: "USE_ABILITY_UP", 8: "USE_AFFECT", 9: "USE_CREATE_STONE", 10: "USE_SPECIAL", 11: "USE_POTION_NODELAY", 12: "USE_CLEAR", 13: "USE_INVISIBILITY", 14: "USE_DETACHMENT", 15: "USE_BUCKET", 16: "USE_POTION_CONTINUE", 17: "USE_CLEAN_SOCKET", 18: "USE_CHANGE_ATTRIBUTE", 19: "USE_ADD_ATTRIBUTE", 20: "USE_ADD_ACCESSORY_SOCKET", 21: "USE_PUT_INTO_ACCESSORY_SOCKET", 22: "USE_ADD_ATTRIBUTE2", 23: "USE_RECIPE", 24: "USE_CHANGE_ATTRIBUTE2", 25: "USE_BIND", 26: "USE_UNBIND", 27: "USE_TIME_CHARGE_PER", 28: "USE_TIME_CHARGE_FIX", 29: "USE_PUT_INTO_BELT_SOCKET", 30: "USE_PUT_INTO_RING_SOCKET", }, 4: { 0: "AUTOUSE_POTION", 1: "AUTOUSE_ABILITY_UP", 2: "AUTOUSE_BOMB", 3: "AUTOUSE_GOLD", 4: "AUTOUSE_MONEYBAG", 5: "AUTOUSE_TREASURE_BOX", }, 5: { 0: "MATERIAL_LEATHER", 1: "MATERIAL_BLOOD", 2: "MATERIAL_ROOT", 3: "MATERIAL_NEEDLE", 4: "MATERIAL_JEWEL", 5: "MATERIAL_DS_REFINE_NORMAL", 6: "MATERIAL_DS_REFINE_BLESSED", 7: "MATERIAL_DS_REFINE_HOLLY", }, 6: { 0: "SPECIAL_MAP", 1: "SPECIAL_KEY", 2: "SPECIAL_DOC", 3: "SPECIAL_SPIRIT", 4: "SPECIAL_MAP", }, 7: { 0 : "TOOL_FISHING_ROD", }, 8: { 0: "LOTTERY_TICKET", 1: "LOTTERY_INSTANT", }, 10: { 0: "METIN_NORMAL", 1: "METIN_GOLD", }, 12: { 0: "FISH_ALIVE", 1: "FISH_DEAD", }, 14: { 0: "RESOURCE_FISHBONE", 1: "RESOURCE_WATERSTONEPIECE", 2: "RESOURCE_WATERSTONE", 3: "RESOURCE_BLOOD_PEARL", 4: "RESOURCE_BLUE_PEARL", 5: "RESOURCE_WHITE_PEARL", 6: "RESOURCE_BUCKET", 7: "RESOURCE_CRYSTAL", 8: "RESOURCE_GEM", 9: "RESOURCE_STONE", 10: "RESOURCE_METIN", 11: "RESOURCE_ORE", }, 16: { 0: "UNIQUE_NONE", 1: "UNIQUE_BOOK", 2: "UNIQUE_SPECIAL_RIDE", 3: "UNIQUE_3", 4: "UNIQUE_4", 5: "UNIQUE_5", 6: "UNIQUE_6", 7: "UNIQUE_7", 8: "UNIQUE_8", 9: "UNIQUE_9", 10: "USE_SPECIAL", }, 28: { 0: "COSTUME_BODY", 1: "COSTUME_HAIR", }, 29: { 0: "DS_SLOT1", 1: "DS_SLOT2", 2: "DS_SLOT3", 3: "DS_SLOT4", 4: "DS_SLOT5", 5: "DS_SLOT6", }, 31: { 0: "EXTRACT_DRAGON_SOUL", 1: "EXTRACT_DRAGON_HEART", },}wearflag = { 1: "WEAR_BODY", 2: "WEAR_HEAD", 4: "WEAR_FOOTS", 8: "WEAR_WRIST", 16: "WEAR_WEAPON", 32: "WEAR_NECK", 64: "WEAR_EAR", 128: "WEAR_SHIELD", 256: "WEAR_UNIQUE", 512: "WEAR_ARROW", 1024: "WEAR_HAIR", 2048: "WEAR_ABILITY",}limittype = { 0: "LIMIT_NONE", 1: "LEVEL", 2: "STR", 3: "DEX", 4: "INT", 5: "CON", 6: "PC_BANG", 7: "REAL_TIME", 8: "REAL_TIME_FIRST_USE", 9: "TIMER_BASED_ON_WEAR",}bonus = { 1: "APPLY_MAX_HP", 2: "APPLY_MAX_SP", 3: "APPLY_CON", 4: "APPLY_INT", 5: "APPLY_STR", 6: "APPLY_DEX", 7: "APPLY_ATT_SPEED", 8: "APPLY_MOV_SPEED", 9: "APPLY_CAST_SPEED", 10: "APPLY_HP_REGEN", 11: "APPLY_SP_REGEN", 12: "APPLY_POISON_PCT", 13: "APPLY_STUN_PCT", 14: "APPLY_SLOW_PCT", 15: "APPLY_CRITICAL_PCT", 16: "APPLY_PENETRATE_PCT", 17: "APPLY_ATTBONUS_HUMAN", 18: "APPLY_ATTBONUS_ANIMAL", 19: "APPLY_ATTBONUS_ORC", 20: "APPLY_ATTBONUS_MILGYO", 21: "APPLY_ATTBONUS_UNDEAD", 22: "APPLY_ATTBONUS_DEVIL", 23: "APPLY_STEAL_HP", 24: "APPLY_STEAL_SP", 25: "APPLY_MANA_BURN_PCT", 26: "APPLY_DAMAGE_SP_RECOVER", 27: "APPLY_BLOCK", 28: "APPLY_DODGE", 29: "APPLY_RESIST_SWORD", 30: "APPLY_RESIST_TWOHAND", 31: "APPLY_RESIST_DAGGER", 32: "APPLY_RESIST_BELL", 33: "APPLY_RESIST_FAN", 34: "APPLY_RESIST_BOW", 35: "APPLY_RESIST_FIRE", 36: "APPLY_RESIST_ELEC", 37: "APPLY_RESIST_MAGIC", 38: "APPLY_RESIST_WIND", 39: "APPLY_REFLECT_MELEE", 40: "APPLY_REFLECT_CURSE", 41: "APPLY_POISON_REDUCE", 42: "APPLY_KILL_SP_RECOVER", 43: "APPLY_EXP_DOUBLE_BONUS", 44: "APPLY_GOLD_DOUBLE_BONUS", 45: "APPLY_ITEM_DROP_BONUS", 46: "APPLY_POTION_BONUS", 47: "APPLY_KILL_HP_RECOVER", 48: "APPLY_IMMUNE_STUN", 49: "APPLY_IMMUNE_SLOW", 50: "APPLY_IMMUNE_FALL", 51: "APPLY_SKILL", 52: "APPLY_BOW_DISTANCE", 53: "APPLY_ATT_GRADE_BONUS", 54: "APPLY_DEF_GRADE_BONUS", 55: "APPLY_MAGIC_ATT_GRADE", 56: "APPLY_MAGIC_DEF_GRADE", 57: "APPLY_CURSE_PCT", 58: "APPLY_MAX_STAMINA", 59: "APPLY_ATTBONUS_WARRIOR", 60: "APPLY_ATTBONUS_ASSASSIN", 61: "APPLY_ATTBONUS_SURA", 62: "APPLY_ATTBONUS_SHAMAN", 63: "APPLY_ATTBONUS_MONSTER", 64: "APPLY_MALL_ATTBONUS", 65: "APPLY_MALL_DEFBONUS", 66: "APPLY_MALL_EXPBONUS", 67: "APPLY_MALL_ITEMBONUS", 68: "APPLY_MALL_GOLDBONUS", 69: "APPLY_MAX_HP_PCT", 70: "APPLY_MAX_SP_PCT", 71: "APPLY_SKILL_DAMAGE_BONUS", 72: "APPLY_NORMAL_HIT_DAMAGE_BONUS", 73: "APPLY_SKILL_DEFEND_BONUS", 74: "APPLY_NORMAL_HIT_DEFEND_BONUS", 75: "APPLY_PC_BANG_EXP_BONUS", 76: "APPLY_PC_BANG_DROP_BONUS", 77: "APPLY_EXTRACT_HP_PCT", 78: "APPLY_RESIST_WARRIOR", 79: "APPLY_RESIST_ASSASSIN", 80: "APPLY_RESIST_SURA", 81: "APPLY_RESIST_SHAMAN", 82: "APPLY_ENERGY", 83: "APPLY_DEF_GRADE", 84: "APPLY_COSTUME_ATTR_BONUS", 85: "APPLY_MAGIC_ATTBONUS_PER", 86: "APPLY_MELEE_MAGIC_ATTBONUS_PER", 87: "APPLY_RESIST_ICE", 88: "APPLY_RESIST_EARTH", 89: "APPLY_RESIST_DARK", 90: "APPLY_ANTI_CRITICAL_PCT", 91: "APPLY_ANTI_PENETRATE_PCT",}addon_type = { 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3217, 3218, 3219, 5110, 5111, 5112, 5113, 5114, 5115, 5116, 5117, 5118, 5119, 5120, 5121, 5122, 5123, 5124, 5125, 5126, 5127, 5128, 5129, 7160, 7161, 7162, 7163, 7164, 7165, 7166, 7167, 7168, 7169, 65159, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 1300, 1301, 1302, 1303, 1304, 1305, 1306, 1307, 1308, 1309, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 3330, 3331, 3332, 3333, 3334, 3335, 3336, 3337, 3338, 3339, 5290, 5291, 5292, 5293, 5294, 5295, 5296, 5297, 5298, 5299,}errors = ""def get_item_type(type, vnum): global errors if type in item_type: return item_type[type] else: errors += "Strange type in item %s\r\n" % vnum return item_type[0]def get_item_subtype(type, subtype, vnum): global errors if type in item_subtype: if subtype in item_subtype[type]: return item_subtype[type][subtype] else: errors += "Strange subtype in item %s\r\n" % vnum return "NONE"def get_antiflag(antiflag, vnum): global errors str = "" if antiflag >= 131072: antiflag -= 131072 if len(str) <= 0: str = "ANTI_SAFEBOX" else: str = "ANTI_SAFEBOX | " + str if antiflag >= 65536: antiflag -= 65536 if len(str) <= 0: str = "ANTI_MYSHOP" else: str = "ANTI_MYSHOP | " + str if antiflag >= 32768: antiflag -= 32768 if len(str) <= 0: str = "ANTI_STACK" else: str = "ANTI_STACK | " + str if antiflag >= 16384: antiflag -= 16384 if len(str) <= 0: str = "ANTI_PKDROP" else: str = "ANTI_PKDROP | " + str if antiflag >= 8192: antiflag -= 8192 if len(str) <= 0: str = "ANTI_GIVE" else: str = "ANTI_GIVE | " + str if antiflag >= 4096: antiflag -= 4096 if len(str) <= 0: str = "ANTI_SAVE" else: str = "ANTI_SAVE | " + str if antiflag >= 2048: antiflag -= 2048 if len(str) <= 0: str = "ANTI_EMPIRE_C" else: str = "ANTI_EMPIRE_C | " + str if antiflag >= 1024: antiflag -= 1024 if len(str) <= 0: str = "ANTI_EMPIRE_B" else: str = "ANTI_EMPIRE_B | " + str if antiflag >= 512: antiflag -= 512 if len(str) <= 0: str = "ANTI_EMPIRE_A" else: str = "ANTI_EMPIRE_A | " + str if antiflag >= 256: antiflag -= 256 if len(str) <= 0: str = "ANTI_SELL" else: str = "ANTI_SELL | " + str if antiflag >= 128: antiflag -= 128 if len(str) <= 0: str = "ANTI_DROP" else: str = "ANTI_DROP | " + str if antiflag >= 64: antiflag -= 64 if len(str) <= 0: str = "ANTI_GET" else: str = "ANTI_GET | " + str if antiflag >= 32: antiflag -= 32 if len(str) <= 0: str = "ANTI_MUDANG" else: str = "ANTI_MUDANG | " + str if antiflag >= 16: antiflag -= 16 if len(str) <= 0: str = "ANTI_SURA" else: str = "ANTI_SURA | " + str if antiflag >= 8: antiflag -= 8 if len(str) <= 0: str = "ANTI_ASSASSIN" else: str = "ANTI_ASSASSIN | " + str if antiflag >= 4: antiflag -= 4 if len(str) <= 0: str = "ANTI_MUSA" else: str = "ANTI_MUSA | " + str if antiflag >= 2: antiflag -= 2 if len(str) <= 0: str = "ANTI_MALE" else: str = "ANTI_MALE | " + str if antiflag >= 1: antiflag -= 1 if len(str) <= 0: str = "ANTI_FEMALE" else: str = "ANTI_FEMALE | " + str if antiflag == 0 and len(str) > 0: return "\"" + str + "\"" else: errors += "Strange antiflag in item %s\r\n" % vnum return "\"NONE\"" def get_flag(flag, vnum): global errors str = "" if flag >= 524288: flag -= 524288 if len(str) <= 0: str = "ITEM_APPLICABLE" else: str = "ITEM_APPLICABLE | " + str if flag >= 262144: flag -= 262144 if len(str) <= 0: str = "IRREMOVABLE" else: str = "IRREMOVABLE | " + str if flag >= 131072: flag -= 131072 if len(str) <= 0: str = "REFINEABLE" else: str = "REFINEABLE | " + str if flag >= 65536: flag -= 65536 if len(str) <= 0: str = "SLOW_QUERY" else: str = "SLOW_QUERY | " + str if flag >= 32768: flag -= 32768 if len(str) <= 0: str = "REFINEABLE" else: str = "REFINEABLE | " + str if flag >= 16384: flag -= 16384 if len(str) <= 0: str = "STACKABLE" else: str = "STACKABLE | " + str if flag >= 8192: flag -= 8192 if len(str) <= 0: str = "LOG" else: str = "LOG | " + str if flag >= 4096: flag -= 4096 if len(str) <= 0: str = "ITEM_QUEST" else: str = "ITEM_QUEST | " + str if flag >= 2048: flag -= 2048 if len(str) <= 0: str = "QUEST_GIVE" else: str = "QUEST_GIVE | " + str if flag >= 1024: flag -= 1024 if len(str) <= 0: str = "QUEST_USE_MULTIPLE" else: str = "QUEST_USE_MULTIPLE | " + str if flag >= 512: flag -= 512 if len(str) <= 0: str = "QUEST_USE" else: str = "QUEST_USE | " + str if flag >= 256: flag -= 256 if len(str) <= 0: str = "CONFIRM_WHEN_USE" else: str = "CONFIRM_WHEN_USE | " + str if flag >= 128: flag -= 128 if len(str) <= 0: str = "ITEM_IRREMOVABLE" else: str = "ITEM_IRREMOVABLE | " + str if flag >= 64: flag -= 64 if len(str) <= 0: str = "ITEM_MAKECOUNT" else: str = "ITEM_MAKECOUNT | " + str if flag >= 32: flag -= 32 if len(str) <= 0: str = "ITEM_UNIQUE" else: str = "ITEM_UNIQUE | " + str if flag >= 16: flag -= 16 if len(str) <= 0: str = "ITEM_SLOW_QUERY" else: str = "ITEM_SLOW_QUERY | " + str if flag >= 8: flag -= 8 if len(str) <= 0: str = "COUNT_PER_1GOLD" else: str = "COUNT_PER_1GOLD | " + str if flag >= 4: flag -= 4 if len(str) <= 0: str = "ITEM_STACKABLE" else: str = "ITEM_STACKABLE | " + str if flag >= 2: flag -= 2 if len(str) <= 0: str = "ITEM_SAVE" else: str = "ITEM_SAVE | " + str if flag >= 1: flag -= 1 if len(str) <= 0: str = "ITEM_TUNABLE" else: str = "ITEM_TUNABLE | " + str if flag == 0 and len(str) > 0: return "\"" + str + "\"" else: errors += "Strange flag in item %s\r\n" % vnum return "\"NONE\""def get_wearflag(wear, vnum): global errors if wear in wearflag: return "\"" + wearflag[wear] + "\"" else: errors += "Strange wearflag in item %s\r\n" % vnum return "\"NONE\"" def get_immuneflag(immune): return "\"NONE\"" def get_limittype(limit): if limit in limittype: return "\"" + limittype[limit] + "\"" else: return "\"LIMIT_NONE\"" def get_apply(apply): if apply in bonus: return "\"" + bonus[apply] + "\"" else: return "\"APPLY_NONE\""def socket(sockett): if sockett == 127: return 0 else: return sockettprint "Conectando a Database"db = MySQLdb.connect(host="localhost", user="mt2", passwd="mt2", db="player")cur = db.cursor()print "Conectado"cur.execute("select * from item_proto")rows = cur.fetchall()out_file_itemproto = open("item_proto.txt", "w")out_file_itemnames = open("item_names.txt", "w")print "Convertendo item_proto..."for row in rows: item_proto_line = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s" % (row[0], "\"" + row[1] + "\"", "\"" + get_item_type(row[3], row[0]) + "\"" , "\"" + get_item_subtype(row[3], row[4], row[0]) + "\"", row[6] , get_antiflag(row[7], row[0]), get_flag(row[8], row[0]), get_wearflag(row[9], row[0]), get_immuneflag(row[10]), row[11], row[12], row[13], row[14], row[16], get_limittype(row[17]), row[18], get_limittype(row[19]), row[20], get_apply(row[21]), row[22], get_apply(row[23]), row[24], get_apply(row[25]), row[26], row[27], row[28], row[29], row[30], row[31], row[32], row[39], row[40], row[41]) item_names_line = "%s\t%s" % (row[0], row[2]) out_file_itemproto.write(item_proto_line + "\r\n") out_file_itemnames.write(item_names_line + "\r\n")out_file_itemproto.close()print "Item_proto convertido!""""if len(errors) != 0: print "Errors durante a Conversao:" print errors"""

     

    Estou repleto deste erro no syser /usr/game/db

    SYSERR: Mar 16 22:19:01 :: Start: TABLE_POSTFIX not configured use default
    SYSERR: Mar 16 22:38:14 :: ChildLoop: AsyncSQL: query failed: Unknown column 'latin1' in 'field list' (query: replace into item_proto (vnum, type, subtype, name, latin1, gold, shop_buy_price, weight, size, flag, wearflag, antiflag, immuneflag, refined_vnum, refine_set, magic_pct, socket_pct, addon_type, limittype0, limitvalue0, limittype1, limitvalue1, applytype0, applyvalue0, applytype1, applyvalue1, applytype2, applyvalue2, value0, value1, value2, value3, value4, value5 ) values (80017, 18, 0, "±³È¯±Ç(Bonus)", "Comprovante (50)", 0, 0, 0, 1, 8192, 0, 0, 0, 0, 0, 0, 0, 0, 7, 86400, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0 ) errno: 1054)
    SYSERR: Mar 16 22:38:18 :: Process: FDWATCH: peer null in event: ident 20

  5. O erro não têm nada a haver com isso, é um acesso a uma variavel que não existe, posta aqui o introLogin.py

    Certeza que é algo relacionado com BR(se me recordo)

     

    segue meu intro login

     

     

    import dbg
    import app
    import net
    import ui
    import ime
    import snd
    import wndMgr
    import musicInfo
    import serverInfo
    import systemSetting
    import ServerStateChecker
    import localeInfo
    import constInfo
    import uiCommon
    import time
    import serverCommandParser
    import ime
    import uiScriptLocale
    
    RUNUP_MATRIX_AUTH = False
    NEWCIBN_PASSPOD_AUTH = False
    
    LOGIN_DELAY_SEC = 0.0
    SKIP_LOGIN_PHASE = False
    SKIP_LOGIN_PHASE_SUPPORT_CHANNEL = False
    FULL_BACK_IMAGE = False
    
    PASSPOD_MSG_DICT = {}
    
    VIRTUAL_KEYBOARD_NUM_KEYS = 46
    VIRTUAL_KEYBOARD_RAND_KEY = True
    
    def Suffle(src):
    	if VIRTUAL_KEYBOARD_RAND_KEY:
    		items = [item for item in src]
    
    		itemCount = len(items)
    		for oldPos in xrange(itemCount):
    			newPos = app.GetRandom(0, itemCount-1)
    			items[newPos], items[oldPos] = items[oldPos], items[newPos]
    
    		return "".join(items)
    	else:
    		return src
    
    if localeInfo.IsNEWCIBN() or localeInfo.IsCIBN10():
    	LOGIN_DELAY_SEC = 60.0
    	FULL_BACK_IMAGE = True
    	NEWCIBN_PASSPOD_AUTH = True
    	PASSPOD_MSG_DICT = {
    		"PASERR1"	: localeInfo.LOGIN_FAILURE_PASERR1,
    		"PASERR2"	: localeInfo.LOGIN_FAILURE_PASERR2,
    		"PASERR3"	: localeInfo.LOGIN_FAILURE_PASERR3,
    		"PASERR4"	: localeInfo.LOGIN_FAILURE_PASERR4,
    		"PASERR5"	: localeInfo.LOGIN_FAILURE_PASERR5,
    	}
    
    elif localeInfo.IsYMIR() or localeInfo.IsCHEONMA():
    	FULL_BACK_IMAGE = True
    
    elif localeInfo.IsHONGKONG():
    	FULL_BACK_IMAGE = True
    	RUNUP_MATRIX_AUTH = True 
    	PASSPOD_MSG_DICT = {
    		"NOTELE"	: localeInfo.LOGIN_FAILURE_NOTELEBLOCK,
    	}
    
    elif localeInfo.IsJAPAN():
    	FULL_BACK_IMAGE = True
    	
    elif localeInfo.IsBRAZIL():
    	LOGIN_DELAY_SEC = 60.0
    
    def IsFullBackImage():
    	global FULL_BACK_IMAGE
    	return FULL_BACK_IMAGE
    
    def IsLoginDelay():
    	global LOGIN_DELAY_SEC
    	if LOGIN_DELAY_SEC > 0.0:
    		return True
    	else:
    		return False
    
    def IsRunupMatrixAuth():
    	global RUNUP_MATRIX_AUTH
    	return RUNUP_MATRIX_AUTH	
    
    def IsNEWCIBNPassPodAuth():
    	global NEWCIBN_PASSPOD_AUTH
    	return NEWCIBN_PASSPOD_AUTH
    
    def GetLoginDelay():
    	global LOGIN_DELAY_SEC
    	return LOGIN_DELAY_SEC
    
    app.SetGuildMarkPath("test")
    
    class ConnectingDialog(ui.ScriptWindow):
    
    	def __init__(self):
    		ui.ScriptWindow.__init__(self)
    		self.__LoadDialog()
    		self.eventTimeOver = lambda *arg: None
    		self.eventExit = lambda *arg: None
    
    	def __del__(self):
    		ui.ScriptWindow.__del__(self)
    
    	def __LoadDialog(self):
    		try:
    			PythonScriptLoader = ui.PythonScriptLoader()
    			PythonScriptLoader.LoadScriptFile(self, "UIScript/ConnectingDialog.py")
    
    			self.board = self.GetChild("board")
    			self.message = self.GetChild("message")
    			self.countdownMessage = self.GetChild("countdown_message")
    
    		except:
    			import exception
    			exception.Abort("ConnectingDialog.LoadDialog.BindObject")
    
    	def Open(self, waitTime):
    		curTime = time.clock()
    		self.endTime = curTime + waitTime
    
    		self.Lock()
    		self.SetCenterPosition()
    		self.SetTop()
    		self.Show()		
    
    	def Close(self):
    		self.Unlock()
    		self.Hide()
    
    	def Destroy(self):
    		self.Hide()
    		self.ClearDictionary()
    
    	def SetText(self, text):
    		self.message.SetText(text)
    
    	def SetCountDownMessage(self, waitTime):
    		self.countdownMessage.SetText("%.0f%s" % (waitTime, localeInfo.SECOND))
    
    	def SAFE_SetTimeOverEvent(self, event):
    		self.eventTimeOver = ui.__mem_func__(event)
    
    	def SAFE_SetExitEvent(self, event):
    		self.eventExit = ui.__mem_func__(event)
    
    	def OnUpdate(self):
    		lastTime = max(0, self.endTime - time.clock())
    		if 0 == lastTime:
    			self.Close()
    			self.eventTimeOver()
    		else:
    			self.SetCountDownMessage(self.endTime - time.clock())
    
    	def OnPressExitKey(self):
    		#self.eventExit()
    		return True
    
    class LoginWindow(ui.ScriptWindow):
    
    	IS_TEST = net.IsTest()
    
    	def __init__(self, stream):
    		print "NEW LOGIN WINDOW  ----------------------------------------------------------------------------"
    		ui.ScriptWindow.__init__(self)
    		net.SetPhaseWindow(net.PHASE_WINDOW_LOGIN, self)
    		net.SetAccountConnectorHandler(self)
    
    		self.matrixInputChanceCount = 0
    		self.lastLoginTime = 0
    		self.inputDialog = None
    		self.connectingDialog = None
    		self.stream=stream
    		self.isNowCountDown=False
    		self.isStartError=False
    
    		self.xServerBoard = 0
    		self.yServerBoard = 0
    		
    		self.loadingImage = None
    
    		self.virtualKeyboard = None
    		self.virtualKeyboardMode = "ALPHABET"
    		self.virtualKeyboardIsUpper = False
    		
    	def __del__(self):
    		net.ClearPhaseWindow(net.PHASE_WINDOW_LOGIN, self)
    		net.SetAccountConnectorHandler(0)
    		ui.ScriptWindow.__del__(self)
    		print "---------------------------------------------------------------------------- DELETE LOGIN WINDOW"
    
    	def Open(self):
    		ServerStateChecker.Create(self)
    
    		print "LOGIN WINDOW OPEN ----------------------------------------------------------------------------"
    
    		self.loginFailureMsgDict={
    			#"DEFAULT" : localeInfo.LOGIN_FAILURE_UNKNOWN,
    
    			"ALREADY"	: localeInfo.LOGIN_FAILURE_ALREAY,
    			"NOID"		: localeInfo.LOGIN_FAILURE_NOT_EXIST_ID,
    			"WRONGPWD"	: localeInfo.LOGIN_FAILURE_WRONG_PASSWORD,
    			"FULL"		: localeInfo.LOGIN_FAILURE_TOO_MANY_USER,
    			"SHUTDOWN"	: localeInfo.LOGIN_FAILURE_SHUTDOWN,
    			"REPAIR"	: localeInfo.LOGIN_FAILURE_REPAIR_ID,
    			"BLOCK"		: localeInfo.LOGIN_FAILURE_BLOCK_ID,
    			"WRONGMAT"	: localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER,
    			"QUIT"		: localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE,
    			"BESAMEKEY"	: localeInfo.LOGIN_FAILURE_BE_SAME_KEY,
    			"NOTAVAIL"	: localeInfo.LOGIN_FAILURE_NOT_AVAIL,
    			"NOBILL"	: localeInfo.LOGIN_FAILURE_NOBILL,
    			"BLKLOGIN"	: localeInfo.LOGIN_FAILURE_BLOCK_LOGIN,
    			"WEBBLK"	: localeInfo.LOGIN_FAILURE_WEB_BLOCK,
    			"BADSCLID"	: localeInfo.LOGIN_FAILURE_WRONG_SOCIALID,
    			"AGELIMIT"	: localeInfo.LOGIN_FAILURE_SHUTDOWN_TIME,
    		}
    
    		self.loginFailureFuncDict = {
    			"WRONGPWD"	: self.__DisconnectAndInputPassword,
    			"WRONGMAT"	: self.__DisconnectAndInputMatrix,
    			"QUIT"		: app.Exit,
    		}
    
    		self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
    		self.SetWindowName("LoginWindow")
    
    		if not self.__LoadScript(uiScriptLocale.LOCALE_UISCRIPT_PATH + "LoginWindow.py"):
    			dbg.TraceError("LoginWindow.Open - __LoadScript Error")
    			return
    		
    		self.__LoadLoginInfo("loginInfo.xml")
    		
    		if app.loggined:
    			self.loginFailureFuncDict = {
    			"WRONGPWD"	: app.Exit,
    			"WRONGMAT"	: app.Exit,
    			"QUIT"		: app.Exit,
    			}
    
    		if musicInfo.loginMusic != "":
    			snd.SetMusicVolume(systemSetting.GetMusicVolume())
    			snd.FadeInMusic("BGM/"+musicInfo.loginMusic)
    
    		snd.SetSoundVolume(systemSetting.GetSoundVolume())
    
    		# pevent key "[" "]"
    		ime.AddExceptKey(91)
    		ime.AddExceptKey(93)
    			
    		self.Show()
    
    		global SKIP_LOGIN_PHASE
    		if SKIP_LOGIN_PHASE:
    			if self.isStartError:
    				self.connectBoard.Hide()
    				self.loginBoard.Hide()
    				self.serverBoard.Hide()
    				self.PopupNotifyMessage(localeInfo.LOGIN_CONNECT_FAILURE, self.__ExitGame)
    				return
    
    			if self.loginInfo:
    				self.serverBoard.Hide()
    			else:
    				self.__RefreshServerList()
    				self.__OpenServerBoard()
    		else:
    			connectingIP = self.stream.GetConnectAddr()
    			if connectingIP:
    				if app.USE_OPENID and not app.OPENID_TEST :
    					self.__RefreshServerList()
    					self.__OpenServerBoard()
    				else:
    					self.__OpenLoginBoard()
    					if IsFullBackImage():
    						self.GetChild("bg1").Hide()
    						self.GetChild("bg2").Show()
    
    			else:
    				self.__RefreshServerList()
    				self.__OpenServerBoard()
    
    		app.ShowCursor()
    
    	def Close(self):
    
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		ServerStateChecker.Initialize(self)
    
    		print "---------------------------------------------------------------------------- CLOSE LOGIN WINDOW "
    		#
    		# selectMusic이 없으면 BGM이 끊기므로 두개 다 체크한다. 
    		#
    		if musicInfo.loginMusic != "" and musicInfo.selectMusic != "":
    			snd.FadeOutMusic("BGM/"+musicInfo.loginMusic)
    
    		## NOTE : idEditLine와 pwdEditLine은 이벤트가 서로 연결 되어있어서
    		##        Event를 강제로 초기화 해주어야만 합니다 - [levites]
    		self.idEditLine.SetTabEvent(0)
    		self.idEditLine.SetReturnEvent(0)
    		self.pwdEditLine.SetReturnEvent(0)
    		self.pwdEditLine.SetTabEvent(0)
    
    		self.connectBoard = None
    		self.loginBoard = None
    		self.idEditLine = None
    		self.pwdEditLine = None
    		self.inputDialog = None
    		self.connectingDialog = None
    		self.loadingImage = None
    
    		self.serverBoard				= None
    		self.serverList					= None
    		self.channelList				= None
    
    		# RUNUP_MATRIX_AUTH
    		self.matrixQuizBoard	= None
    		self.matrixAnswerInput	= None
    		self.matrixAnswerOK	= None
    		self.matrixAnswerCancel	= None
    		# RUNUP_MATRIX_AUTH_END
    
    		# NEWCIBN_PASSPOD_AUTH
    		self.passpodBoard	= None
    		self.passpodAnswerInput	= None
    		self.passpodAnswerOK	= None
    		self.passpodAnswerCancel = None
    		# NEWCIBN_PASSPOD_AUTH_END
    
    		self.VIRTUAL_KEY_ALPHABET_LOWERS = None
    		self.VIRTUAL_KEY_ALPHABET_UPPERS = None
    		self.VIRTUAL_KEY_SYMBOLS = None
    		self.VIRTUAL_KEY_NUMBERS = None
    
    		# VIRTUAL_KEYBOARD_BUG_FIX
    		if self.virtualKeyboard:
    			for keyIndex in xrange(0, VIRTUAL_KEYBOARD_NUM_KEYS+1):
    				key = self.GetChild2("key_%d" % keyIndex)
    				if key:
    					key.SetEvent(None)
    
    			self.GetChild("key_space").SetEvent(None)
    			self.GetChild("key_backspace").SetEvent(None)
    			self.GetChild("key_enter").SetEvent(None)
    			self.GetChild("key_shift").SetToggleDownEvent(None)
    			self.GetChild("key_shift").SetToggleUpEvent(None)
    			self.GetChild("key_at").SetToggleDownEvent(None)
    			self.GetChild("key_at").SetToggleUpEvent(None)
    
    			self.virtualKeyboard = None
    
    		self.KillFocus()
    		self.Hide()
    
    		self.stream.popupWindow.Close()
    		self.loginFailureFuncDict=None
    
    		ime.ClearExceptKey()
    
    		app.HideCursor()
    
    	def __SaveChannelInfo(self):
    		try:
    			file=open("channel.inf", "w")
    			file.write("%d %d %d" % (self.__GetServerID(), self.__GetChannelID(), self.__GetRegionID()))
    		except:
    			print "LoginWindow.__SaveChannelInfo - SaveError"
    
    	def __LoadChannelInfo(self):
    		try:
    			file=open("channel.inf")
    			lines=file.readlines()
    			
    			if len(lines)>0:
    				tokens=lines[0].split()
    
    				selServerID=int(tokens[0])
    				selChannelID=int(tokens[1])
    				
    				if len(tokens) == 3:
    					regionID = int(tokens[2])
    
    				return regionID, selServerID, selChannelID
    
    		except:
    			print "LoginWindow.__LoadChannelInfo - OpenError"
    			return -1, -1, -1
    
    	def __ExitGame(self):
    		app.Exit()
    
    	def SetIDEditLineFocus(self):
    		if self.idEditLine != None:
    			self.idEditLine.SetFocus()
    
    	def SetPasswordEditLineFocus(self):
    		if localeInfo.IsEUROPE():
    			if self.idEditLine != None: #0000862: [M2EU] 로그인창 팝업 에러: 종료시 먼저 None 설정됨
    				self.idEditLine.SetText("")
    				self.idEditLine.SetFocus() #0000685: [M2EU] 아이디/비밀번호 유추 가능 버그 수정: 무조건 아이디로 포커스가 가게 만든다
    
    			if self.pwdEditLine != None: #0000862: [M2EU] 로그인창 팝업 에러: 종료시 먼저 None 설정됨
    				self.pwdEditLine.SetText("")
    		else:
    			if self.pwdEditLine != None:
    				self.pwdEditLine.SetFocus()								
    
    	def OnEndCountDown(self):
    		self.isNowCountDown = False
    		if localeInfo.IsBRAZIL():
    			self.timeOutMsg = True
    		else:
    			self.timeOutMsg = False
    		self.OnConnectFailure()
    
    	def OnConnectFailure(self):
    
    		if self.isNowCountDown:
    			return
    
    		snd.PlaySound("sound/ui/loginfail.wav")
    
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		if app.loggined:
    			self.PopupNotifyMessage(localeInfo.LOGIN_CONNECT_FAILURE, self.__ExitGame)
    		elif self.timeOutMsg:
    			self.PopupNotifyMessage(localeInfo.LOGIN_FAILURE_TIMEOUT, self.SetPasswordEditLineFocus)
    		else:
    			self.PopupNotifyMessage(localeInfo.LOGIN_CONNECT_FAILURE, self.SetPasswordEditLineFocus)
    
    	def OnHandShake(self):
    		if not IsLoginDelay():
    			snd.PlaySound("sound/ui/loginok.wav")
    			self.PopupDisplayMessage(localeInfo.LOGIN_CONNECT_SUCCESS)
    
    	def OnLoginStart(self):
    		if not IsLoginDelay():
    			self.PopupDisplayMessage(localeInfo.LOGIN_PROCESSING)
    
    	def OnLoginFailure(self, error):
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		try:
    			loginFailureMsg = self.loginFailureMsgDict[error]
    		except KeyError:
    			if PASSPOD_MSG_DICT:
    				try:
    					loginFailureMsg = PASSPOD_MSG_DICT[error]
    				except KeyError:
    					loginFailureMsg = localeInfo.LOGIN_FAILURE_UNKNOWN + error
    			else:
    				loginFailureMsg = localeInfo.LOGIN_FAILURE_UNKNOWN  + error
    
    
    		#0000685: [M2EU] 아이디/비밀번호 유추 가능 버그 수정: 무조건 패스워드로 포커스가 가게 만든다
    		loginFailureFunc=self.loginFailureFuncDict.get(error, self.SetPasswordEditLineFocus)
    
    		if app.loggined:
    			self.PopupNotifyMessage(loginFailureMsg, self.__ExitGame)
    		else:
    			self.PopupNotifyMessage(loginFailureMsg, loginFailureFunc)
    
    		snd.PlaySound("sound/ui/loginfail.wav")
    
    	def __DisconnectAndInputID(self):
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		self.SetIDEditLineFocus()
    		net.Disconnect()
    
    	def __DisconnectAndInputPassword(self):
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		self.SetPasswordEditLineFocus()
    		net.Disconnect()
    
    	def __DisconnectAndInputMatrix(self):
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		self.stream.popupWindow.Close()
    		self.matrixInputChanceCount -= 1
    
    		if self.matrixInputChanceCount <= 0:
    			self.__OnCloseInputDialog()
    
    		elif self.inputDialog:
    			self.inputDialog.Show()
    
    	def __LoadScript(self, fileName):
    		import dbg
    		try:
    			pyScrLoader = ui.PythonScriptLoader()
    			pyScrLoader.LoadScriptFile(self, fileName)
    		except:
    			import exception
    			exception.Abort("LoginWindow.__LoadScript.LoadObject")
    		try:
    			GetObject=self.GetChild
    			self.serverBoard			= GetObject("ServerBoard")
    			self.serverList				= GetObject("ServerList")
    			self.channelList			= GetObject("ChannelList")
    			self.serverSelectButton		= GetObject("ServerSelectButton")
    			self.serverExitButton		= GetObject("ServerExitButton")
    			self.connectBoard			= GetObject("ConnectBoard")
    			self.loginBoard				= GetObject("LoginBoard")
    			self.idEditLine				= GetObject("ID_EditLine")
    			self.pwdEditLine			= GetObject("Password_EditLine")
    			self.serverInfo				= GetObject("ConnectName")
    			self.selectConnectButton	= GetObject("SelectConnectButton")
    			self.loginButton			= GetObject("LoginButton")
    			self.loginExitButton		= GetObject("LoginExitButton")
    			
    			if localeInfo.IsVIETNAM():
    				self.checkButton = GetObject("CheckButton")				
    				self.checkButton.Down()
    			
    			# RUNUP_MATRIX_AUTH
    			if IsRunupMatrixAuth():
    				self.matrixQuizBoard	= GetObject("RunupMatrixQuizBoard")
    				self.matrixAnswerInput	= GetObject("RunupMatrixAnswerInput")
    				self.matrixAnswerOK	= GetObject("RunupMatrixAnswerOK")
    				self.matrixAnswerCancel	= GetObject("RunupMatrixAnswerCancel")
    			# RUNUP_MATRIX_AUTH_END
    
    			# NEWCIBN_PASSPOD_AUTH
    			if IsNEWCIBNPassPodAuth():
    				self.passpodBoard	= GetObject("NEWCIBN_PASSPOD_BOARD")
    				self.passpodAnswerInput	= GetObject("NEWCIBN_PASSPOD_INPUT")
    				self.passpodAnswerOK	= GetObject("NEWCIBN_PASSPOD_OK")
    				self.passpodAnswerCancel= GetObject("NEWCIBN_PASSPOD_CANCEL")
    			# NEWCIBN_PASSPOD_AUTH_END
    
    			self.virtualKeyboard		= self.GetChild2("VirtualKeyboard")
    
    			if self.virtualKeyboard:
    				self.VIRTUAL_KEY_ALPHABET_UPPERS = Suffle(localeInfo.VIRTUAL_KEY_ALPHABET_UPPERS)
    				self.VIRTUAL_KEY_ALPHABET_LOWERS = "".join([localeInfo.VIRTUAL_KEY_ALPHABET_LOWERS[localeInfo.VIRTUAL_KEY_ALPHABET_UPPERS.index(e)] for e in self.VIRTUAL_KEY_ALPHABET_UPPERS])
    				if localeInfo.IsBRAZIL():
    					self.VIRTUAL_KEY_SYMBOLS_BR = Suffle(localeInfo.VIRTUAL_KEY_SYMBOLS_BR)
    				else:
    					self.VIRTUAL_KEY_SYMBOLS = Suffle(localeInfo.VIRTUAL_KEY_SYMBOLS)
    				self.VIRTUAL_KEY_NUMBERS = Suffle(localeInfo.VIRTUAL_KEY_NUMBERS)
    				self.__VirtualKeyboard_SetAlphabetMode()
    			
    				self.GetChild("key_space").SetEvent(lambda : self.__VirtualKeyboard_PressKey(' '))
    				self.GetChild("key_backspace").SetEvent(lambda : self.__VirtualKeyboard_PressBackspace())
    				self.GetChild("key_enter").SetEvent(lambda : self.__VirtualKeyboard_PressReturn())
    				self.GetChild("key_shift").SetToggleDownEvent(lambda : self.__VirtualKeyboard_SetUpperMode())
    				self.GetChild("key_shift").SetToggleUpEvent(lambda : self.__VirtualKeyboard_SetLowerMode())
    				self.GetChild("key_at").SetToggleDownEvent(lambda : self.__VirtualKeyboard_SetSymbolMode())
    				self.GetChild("key_at").SetToggleUpEvent(lambda : self.__VirtualKeyboard_SetAlphabetMode())
    
    		except:
    			import exception
    			exception.Abort("LoginWindow.__LoadScript.BindObject")
    
    		if self.IS_TEST:
    			self.selectConnectButton.Hide()
    		else:
    			self.selectConnectButton.SetEvent(ui.__mem_func__(self.__OnClickSelectConnectButton))
    
    		self.serverBoard.OnKeyUp = ui.__mem_func__(self.__ServerBoard_OnKeyUp)
    		self.xServerBoard, self.yServerBoard = self.serverBoard.GetLocalPosition()
    
    		self.serverSelectButton.SetEvent(ui.__mem_func__(self.__OnClickSelectServerButton))
    		self.serverExitButton.SetEvent(ui.__mem_func__(self.__OnClickExitButton))
    
    		self.loginButton.SetEvent(ui.__mem_func__(self.__OnClickLoginButton))
    		self.loginExitButton.SetEvent(ui.__mem_func__(self.__OnClickExitButton))
    
    		self.serverList.SetEvent(ui.__mem_func__(self.__OnSelectServer))
    		
    		self.idEditLine.SetReturnEvent(ui.__mem_func__(self.pwdEditLine.SetFocus))
    		self.idEditLine.SetTabEvent(ui.__mem_func__(self.pwdEditLine.SetFocus))
    
    		self.pwdEditLine.SetReturnEvent(ui.__mem_func__(self.__OnClickLoginButton))
    		self.pwdEditLine.SetTabEvent(ui.__mem_func__(self.idEditLine.SetFocus))
    
    		# RUNUP_MATRIX_AUTH
    		if IsRunupMatrixAuth():			
    			self.matrixAnswerOK.SAFE_SetEvent(self.__OnClickMatrixAnswerOK)
    			self.matrixAnswerCancel.SAFE_SetEvent(self.__OnClickMatrixAnswerCancel)
    			self.matrixAnswerInput.SAFE_SetReturnEvent(self.__OnClickMatrixAnswerOK)
    		# RUNUP_MATRIX_AUTH_END
    
    		# NEWCIBN_PASSPOD_AUTH
    		if IsNEWCIBNPassPodAuth():
    			self.passpodAnswerOK.SAFE_SetEvent(self.__OnClickNEWCIBNPasspodAnswerOK)
    			self.passpodAnswerCancel.SAFE_SetEvent(self.__OnClickNEWCIBNPasspodAnswerCancel)
    			self.passpodAnswerInput.SAFE_SetReturnEvent(self.__OnClickNEWCIBNPasspodAnswerOK)
    
    		# NEWCIBN_PASSPOD_AUTH_END
    
    
    		if IsFullBackImage():
    			self.GetChild("bg1").Show()
    			self.GetChild("bg2").Hide()
    		return 1
    
    	def __VirtualKeyboard_SetKeys(self, keyCodes):
    		uiDefFontBackup = localeInfo.UI_DEF_FONT
    		localeInfo.UI_DEF_FONT = localeInfo.UI_DEF_FONT_LARGE
    
    		keyIndex = 1
    		for keyCode in keyCodes:					
    			key = self.GetChild2("key_%d" % keyIndex)
    			if key:
    				key.SetEvent(lambda x=keyCode: self.__VirtualKeyboard_PressKey(x))
    				key.SetText(keyCode)
    				key.ButtonText.SetFontColor(0, 0, 0)
    				keyIndex += 1
    			
    		for keyIndex in xrange(keyIndex, VIRTUAL_KEYBOARD_NUM_KEYS+1):
    			key = self.GetChild2("key_%d" % keyIndex)
    			if key:
    				key.SetEvent(lambda x=' ': self.__VirtualKeyboard_PressKey(x))
    				key.SetText(' ')
    		
    		localeInfo.UI_DEF_FONT = uiDefFontBackup
    
    	def __VirtualKeyboard_PressKey(self, code):
    		ime.PasteString(code)
    		
    		#if self.virtualKeyboardMode == "ALPHABET" and self.virtualKeyboardIsUpper:
    		#	self.__VirtualKeyboard_SetLowerMode()
    			
    	def __VirtualKeyboard_PressBackspace(self):
    		ime.PasteBackspace()
    		
    	def __VirtualKeyboard_PressReturn(self):
    		ime.PasteReturn()		
    
    	def __VirtualKeyboard_SetUpperMode(self):
    		self.virtualKeyboardIsUpper = True
    		
    		if self.virtualKeyboardMode == "ALPHABET":
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_ALPHABET_UPPERS)
    		elif self.virtualKeyboardMode == "NUMBER":
    			if localeInfo.IsBRAZIL():
    				self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS_BR)
    			else:	
    				self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS)
    		else:
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_NUMBERS)
    			
    	def __VirtualKeyboard_SetLowerMode(self):
    		self.virtualKeyboardIsUpper = False
    		
    		if self.virtualKeyboardMode == "ALPHABET":
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_ALPHABET_LOWERS)
    		elif self.virtualKeyboardMode == "NUMBER":
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_NUMBERS)			
    		else:
    			if localeInfo.IsBRAZIL():
    				self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS_BR)
    			else:	
    				self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS)
    			
    	def __VirtualKeyboard_SetAlphabetMode(self):
    		self.virtualKeyboardIsUpper = False
    		self.virtualKeyboardMode = "ALPHABET"		
    		self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_ALPHABET_LOWERS)	
    
    	def __VirtualKeyboard_SetNumberMode(self):			
    		self.virtualKeyboardIsUpper = False
    		self.virtualKeyboardMode = "NUMBER"
    		self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_NUMBERS)
    					
    	def __VirtualKeyboard_SetSymbolMode(self):		
    		self.virtualKeyboardIsUpper = False
    		self.virtualKeyboardMode = "SYMBOL"
    		if localeInfo.IsBRAZIL():
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS_BR)
    		else:	
    			self.__VirtualKeyboard_SetKeys(self.VIRTUAL_KEY_SYMBOLS)
    				
    	def Connect(self, id, pwd):
    
    		if constInfo.SEQUENCE_PACKET_ENABLE:
    			net.SetPacketSequenceMode()
    
    		if IsLoginDelay():
    			loginDelay = GetLoginDelay()
    			self.connectingDialog = ConnectingDialog()
    			self.connectingDialog.Open(loginDelay)
    			self.connectingDialog.SAFE_SetTimeOverEvent(self.OnEndCountDown)
    			self.connectingDialog.SAFE_SetExitEvent(self.OnPressExitKey)
    			self.isNowCountDown = True
    
    		else:
    			self.stream.popupWindow.Close()
    			self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.SetPasswordEditLineFocus, localeInfo.UI_CANCEL)
                
    		self.stream.SetLoginInfo(id, pwd)
    		self.stream.Connect()
    
    	def __OnClickExitButton(self):
    		self.stream.SetPhaseWindow(0)
    
    	def __SetServerInfo(self, name):
    		net.SetServerInfo(name.strip())
    		self.serverInfo.SetText(name)
    		
    	def __LoadLoginInfo(self, loginInfoFileName):
    
    		try:
    			loginInfo={}
    			execfile(loginInfoFileName, loginInfo)
    		except IOError:
    			print(\
    				"자동 로그인을 하시려면" + loginInfoFileName + "파일을 작성해주세요\n"\
    				"\n"\
    				"내용:\n"\
    				"================================================================\n"\
    				"addr=주소\n"\
    				"port=포트\n"\
    				"id=아이디\n"\
    				"pwd=비밀번호\n"\
    				"slot=캐릭터 선택 인덱스 (없거나 -1이면 자동 선택 안함)\n"\
    				"autoLogin=자동 접속 여부\n"
    				"autoSelect=자동 접속 여부\n"
    				"locale=(ymir) LC_Ymir 일경우 ymir로 작동. 지정하지 않으면 korea로 작동\n"
    			);
    
    		id=loginInfo.get("id", "")
    		pwd=loginInfo.get("pwd", "")
    
    		if self.IS_TEST:
    			try:
    				addr=loginInfo["addr"]
    				port=loginInfo["port"]
    				account_addr=addr
    				account_port=port
    
    				net.SetMarkServer(addr, port)
    				self.__SetServerInfo(locale.CHANNEL_TEST_SERVER_ADDR % (addr, port))
    			except:
    				try:
    					addr=serverInfo.TESTADDR["ip"]
    					port=serverInfo.TESTADDR["tcp_port"]
    
    					net.SetMarkServer(addr, port)
    					self.__SetServerInfo(locale.CHANNEL_TEST_SERVER)
    				except:
    					import exception
    					exception.Abort("LoginWindow.__LoadLoginInfo - 테스트서버 주소가 없습니다")
    
    		else:
    			addr=loginInfo.get("addr", "")
    			port=loginInfo.get("port", 0)
    			account_addr=loginInfo.get("account_addr", addr)
    			account_port=loginInfo.get("account_port", port)
    
    			locale = loginInfo.get("locale", "")
    
    			if addr and port:
    				net.SetMarkServer(addr, port)
    
    				if locale == "ymir" :
    					net.SetServerInfo("천마 서버")
    					self.serverInfo.SetText("Y:"+addr+":"+str(port))
    				else:
    					net.SetServerInfo(addr+":"+str(port))
    					self.serverInfo.SetText("K:"+addr+":"+str(port))
    
    		slot=loginInfo.get("slot", 0)
    		isAutoLogin=loginInfo.get("auto", 0)
    		isAutoLogin=loginInfo.get("autoLogin", 0)
    		isAutoSelect=loginInfo.get("autoSelect", 0)
    
    		self.stream.SetCharacterSlot(slot)
    		self.stream.SetConnectInfo(addr, port, account_addr, account_port)
    		self.stream.isAutoLogin=isAutoLogin
    		self.stream.isAutoSelect=isAutoSelect
    
    		self.id = None
    		self.pwd = None		
    		self.loginnedServer = None
    		self.loginnedChannel = None			
    		app.loggined = FALSE
    
    		self.loginInfo = loginInfo
    
    		if self.id and self.pwd:
    			app.loggined = TRUE
    
    		if isAutoLogin:
    			self.Connect(id, pwd)
    			
    			print "=================================================================================="
    			print "자동 로그인: %s - %s:%d %s" % (loginInfoFileName, addr, port, id)
    			print "=================================================================================="
    
    		
    	def PopupDisplayMessage(self, msg):
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open(msg)
    
    	def PopupNotifyMessage(self, msg, func=0):
    		if not func:
    			func=self.EmptyFunc
    
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open(msg, func, localeInfo.UI_OK)
    
    	# RUNUP_MATRIX_AUTH
    	def BINARY_OnRunupMatrixQuiz(self, quiz):
    		if not IsRunupMatrixAuth():
    			return
    
    		id		= self.GetChild("RunupMatrixID")
    		id.SetText(self.idEditLine.GetText())
    		
    		code	= self.GetChild("RunupMatrixCode")
    		
    		code.SetText("".join(["[%c,%c]" % (quiz[i], quiz[i+1]) for i in xrange(0, len(quiz), 2)]))
    
    		self.stream.popupWindow.Close()
    		self.serverBoard.Hide()
    		self.connectBoard.Hide()
    		self.loginBoard.Hide()
    		self.matrixQuizBoard.Show()
    		self.matrixAnswerInput.SetFocus()
    
    	def __OnClickMatrixAnswerOK(self):
    		answer = self.matrixAnswerInput.GetText()
    
    		print "matrix_quiz.ok"
    		net.SendRunupMatrixCardPacket(answer)
    		self.matrixQuizBoard.Hide()	
    
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open("WAITING FOR MATRIX AUTHENTICATION", 
    			self.__OnClickMatrixAnswerCancel, 
    			localeInfo.UI_CANCEL)
    
    	def __OnClickMatrixAnswerCancel(self):
    		print "matrix_quiz.cancel"
    
    		if self.matrixQuizBoard:
    			self.matrixQuizBoard.Hide()	
    
    		if self.connectBoard:
    			self.connectBoard.Show()	
    
    		if self.loginBoard:
    			self.loginBoard.Show()
    
    	# RUNUP_MATRIX_AUTH_END
    
    	# NEWCIBN_PASSPOD_AUTH
    	def BINARY_OnNEWCIBNPasspodRequest(self):
    		if not IsNEWCIBNPassPodAuth():
    			return
    
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		self.stream.popupWindow.Close()
    		self.serverBoard.Hide()
    		self.connectBoard.Hide()
    		self.loginBoard.Hide()
    		self.passpodBoard.Show()
    		self.passpodAnswerInput.SetFocus()
    
    	def BINARY_OnNEWCIBNPasspodFailure(self):
    		if not IsNEWCIBNPassPodAuth():
    			return
    
    	def __OnClickNEWCIBNPasspodAnswerOK(self):
    		answer = self.passpodAnswerInput.GetText()
    
    		print "passpod.ok"
    		net.SendNEWCIBNPasspodAnswerPacket(answer)
    		self.passpodAnswerInput.SetText("")
    		self.passpodBoard.Hide()	
    
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open(localeInfo.WAIT_FOR_PASSPOD, 
    			self.__OnClickNEWCIBNPasspodAnswerCancel, 
    			localeInfo.UI_CANCEL)
    
    	def __OnClickNEWCIBNPasspodAnswerCancel(self):
    		print "passpod.cancel"
    
    		if self.passpodBoard:
    			self.passpodBoard.Hide()	
    
    		if self.connectBoard:
    			self.connectBoard.Show()	
    
    		if self.loginBoard:
    			self.loginBoard.Show()
    
    	# NEWCIBN_PASSPOD_AUTH_END
    
    
    	def OnMatrixCard(self, row1, row2, row3, row4, col1, col2, col3, col4):
    
    		if self.connectingDialog:
    			self.connectingDialog.Close()
    		self.connectingDialog = None
    
    		self.matrixInputChanceCount = 3
    
    		self.stream.popupWindow.Close()
    
    		# CHINA_MATRIX_CARD_BUG_FIX
    		## A~Z 까지 26 이내의 값이 들어있어야만 한다.
    		## Python Exception Log 에서 그 이상의 값이 들어있어서 에러 방지
    		## 헌데 왜 한국쪽 로그에서 이게 활용되는지는 모르겠음
    		row1 = min(30, row1)
    		row2 = min(30, row2)
    		row3 = min(30, row3)
    		row4 = min(30, row4)
    		# END_OF_CHINA_MATRIX_CARD_BUG_FIX
    
    		row1 = chr(row1 + ord('A'))
    		row2 = chr(row2 + ord('A'))
    		row3 = chr(row3 + ord('A'))
    		row4 = chr(row4 + ord('A'))
    		col1 = col1 + 1
    		col2 = col2 + 1
    		col3 = col3 + 1
    		col4 = col4 + 1
    
    		inputDialog = uiCommon.InputDialogWithDescription2()
    		inputDialog.SetMaxLength(8)
    		inputDialog.SetAcceptEvent(ui.__mem_func__(self.__OnAcceptMatrixCardData))
    		inputDialog.SetCancelEvent(ui.__mem_func__(self.__OnCancelMatrixCardData))
    		inputDialog.SetTitle(localeInfo.INPUT_MATRIX_CARD_TITLE)
    		inputDialog.SetDescription1(localeInfo.INPUT_MATRIX_CARD_NUMBER)
    		inputDialog.SetDescription2("%c%d %c%d %c%d %c%d" % (row1, col1,
    															row2, col2,
    															row3, col3,
    															row4, col4))
    
    		inputDialog.Open()
    		self.inputDialog = inputDialog
    
    	def __OnAcceptMatrixCardData(self):
    		text = self.inputDialog.GetText()
    		net.SendChinaMatrixCardPacket(text)
    		if self.inputDialog:
    			self.inputDialog.Hide()
    		self.PopupNotifyMessage(localeInfo.LOGIN_PROCESSING)
    		return True
    
    	def __OnCancelMatrixCardData(self):
    		self.SetPasswordEditLineFocus()
    		self.__OnCloseInputDialog()
    		self.__DisconnectAndInputPassword()
    		return True
    
    	def __OnCloseInputDialog(self):
    		if self.inputDialog:
    			self.inputDialog.Close()
    		self.inputDialog = None
    		return True
    
    	def OnPressExitKey(self):
    		self.stream.popupWindow.Close()
    		self.stream.SetPhaseWindow(0)
    		return True
    
    	def OnExit(self):
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open(localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE, app.Exit, localeInfo.UI_OK)
    
    	def OnUpdate(self):
    		ServerStateChecker.Update()
    
    	def EmptyFunc(self):
    		pass
    
    	#####################################################################################
    
    	def __ServerBoard_OnKeyUp(self, key):
    		if self.serverBoard.IsShow():
    			if app.DIK_RETURN==key:
    				self.__OnClickSelectServerButton()
    		return True
    
    	def __GetRegionID(self):
    		return 0
    
    	def __GetServerID(self):
    		return self.serverList.GetSelectedItem()
    
    	def __GetChannelID(self):
    		return self.channelList.GetSelectedItem()
    
    	# SEVER_LIST_BUG_FIX
    	def __ServerIDToServerIndex(self, regionID, targetServerID):
    		try:
    			regionDict = serverInfo.REGION_DICT[regionID]
    		except KeyError:
    			return -1
    
    		retServerIndex = 0
    		for eachServerID, regionDataDict in regionDict.items():
    			if eachServerID == targetServerID:
    				return retServerIndex
    
    			retServerIndex += 1		
    		
    		return -1
    
    	def __ChannelIDToChannelIndex(self, channelID):
    		return channelID - 1
    	# END_OF_SEVER_LIST_BUG_FIX
    
    	def __OpenServerBoard(self):
    
    		loadRegionID, loadServerID, loadChannelID = self.__LoadChannelInfo()
    		
    		serverIndex = self.__ServerIDToServerIndex(loadRegionID, loadServerID)
    		channelIndex = self.__ChannelIDToChannelIndex(loadChannelID)
    		
    		# RUNUP_MATRIX_AUTH
    		if IsRunupMatrixAuth():
    			self.matrixQuizBoard.Hide()
    		# RUNUP_MATRIX_AUTH_END
    
    		# NEWCIBN_PASSPOD_AUTH
    		if IsNEWCIBNPassPodAuth():
    			self.passpodBoard.Hide()
    		# NEWCIBN_PASSPOD_AUTH_END
    
    
    		self.serverList.SelectItem(serverIndex)
    
    		if localeInfo.IsEUROPE():
    			self.channelList.SelectItem(app.GetRandom(0, self.channelList.GetItemCount()))
    		else:
    			if channelIndex >= 0:
    				self.channelList.SelectItem(channelIndex)
    
    		## Show/Hide 코드에 문제가 있어서 임시 - [levites]
    		self.serverBoard.SetPosition(self.xServerBoard, self.yServerBoard)
    		self.serverBoard.Show()
    		self.connectBoard.Hide()
    		self.loginBoard.Hide()
    
    		if self.virtualKeyboard:
    			self.virtualKeyboard.Hide()
    
    		if app.loggined and not SKIP_LOGIN_PHASE_SUPPORT_CHANNEL:
    			self.serverList.SelectItem(self.loginnedServer-1)
    			self.channelList.SelectItem(self.loginnedChannel-1)
    			self.__OnClickSelectServerButton()
    
    	def __OpenLoginBoard(self):
    
    		self.serverExitButton.SetEvent(ui.__mem_func__(self.__OnClickExitServerButton))
    		self.serverExitButton.SetText(localeInfo.UI_CLOSE)
    
    		# RUNUP_MATRIX_AUTH
    		if IsRunupMatrixAuth():
    			self.matrixQuizBoard.Hide()
    		# RUNUP_MATRIX_AUTH_END
    
    		# NEWCIBN_PASSPOD_AUTH
    		if IsNEWCIBNPassPodAuth():
    			self.passpodBoard.Hide()
    		# NEWCIBN_PASSPOD_AUTH_END
    
    		self.serverBoard.SetPosition(self.xServerBoard, wndMgr.GetScreenHeight())
    		self.serverBoard.Hide()
    
    		if self.virtualKeyboard:
    			self.virtualKeyboard.Show()
    
    		if app.loggined:
    			self.Connect(self.id, self.pwd)
    			self.connectBoard.Hide()
    			self.loginBoard.Hide()
    		elif not self.stream.isAutoLogin:
    			self.connectBoard.Show()
    			self.loginBoard.Show()
    
    		## if users have the login infomation, then don't initialize.2005.9 haho
    		if self.idEditLine == None:
    			self.idEditLine.SetText("")
    		if self.pwdEditLine == None:
    			self.pwdEditLine.SetText("")
    
    		self.idEditLine.SetFocus()
    
    		global SKIP_LOGIN_PHASE
    		if SKIP_LOGIN_PHASE:
    			if not self.loginInfo:
    				self.connectBoard.Hide()
    
    	def __OnSelectRegionGroup(self):
    		self.__RefreshServerList()
    
    	def __OnSelectSettlementArea(self):
    		# SEVER_LIST_BUG_FIX
    		regionID = self.__GetRegionID()
    		serverID = self.serverListOnRegionBoard.GetSelectedItem()
    
    		serverIndex = self.__ServerIDToServerIndex(regionID, serverID)
    		self.serverList.SelectItem(serverIndex)
    		# END_OF_SEVER_LIST_BUG_FIX
    		
    		self.__OnSelectServer()
    
    	def __RefreshServerList(self):
    		regionID = self.__GetRegionID()
    		
    		if not serverInfo.REGION_DICT.has_key(regionID):
    			return
    
    		self.serverList.ClearItem()
    
    		regionDict = serverInfo.REGION_DICT[regionID]
    
    		# SEVER_LIST_BUG_FIX
    		visible_index = 1
    		for id, regionDataDict in regionDict.items():
    			name = regionDataDict.get("name", "noname")
    			if localeInfo.IsBRAZIL() or localeInfo.IsCANADA():
    				self.serverList.InsertItem(id, "%s" % (name))
    			else:
    				if localeInfo.IsCIBN10():			
    					if name[0] == "#":
    						self.serverList.InsertItem(-1, "  %s" % (name[1:]))
    					else:
    						self.serverList.InsertItem(id, "  %s" % (name))
    						visible_index += 1
    				else:
    					try:
    						server_id = serverInfo.SERVER_ID_DICT[id]
    					except:
    						server_id = visible_index
    
    					self.serverList.InsertItem(id, "  %02d. %s" % (int(server_id), name))
    					
    					visible_index += 1
    		
    		# END_OF_SEVER_LIST_BUG_FIX
    
    	def __OnSelectServer(self):
    		self.__OnCloseInputDialog()
    		self.__RequestServerStateList()
    		self.__RefreshServerStateList()
    
    	def __RequestServerStateList(self):
    		regionID = self.__GetRegionID()
    		serverID = self.__GetServerID()
    
    		try:
    			channelDict = serverInfo.REGION_DICT[regionID][serverID]["channel"]
    		except:
    			print " __RequestServerStateList - serverInfo.REGION_DICT(%d, %d)" % (regionID, serverID)
    			return
    
    		ServerStateChecker.Initialize();
    		for id, channelDataDict in channelDict.items():
    			key=channelDataDict["key"]
    			ip=channelDataDict["ip"]
    			udp_port=channelDataDict["udp_port"]
    			ServerStateChecker.AddChannel(key, ip, udp_port)
    
    		ServerStateChecker.Request()
    
    	def __RefreshServerStateList(self):
    
    		regionID = self.__GetRegionID()
    		serverID = self.__GetServerID()
    		bakChannelID = self.channelList.GetSelectedItem()
    
    		self.channelList.ClearItem()
    
    		try:
    			channelDict = serverInfo.REGION_DICT[regionID][serverID]["channel"]
    		except:
    			print " __RequestServerStateList - serverInfo.REGION_DICT(%d, %d)" % (regionID, serverID)
    			return
    
    		for channelID, channelDataDict in channelDict.items():
    			channelName = channelDataDict["name"]
    			channelState = channelDataDict["state"]
    			self.channelList.InsertItem(channelID, " %s %s" % (channelName, channelState))
    
    		self.channelList.SelectItem(bakChannelID-1)
    
    	def __GetChannelName(self, regionID, selServerID, selChannelID):
    		try:
    			return serverInfo.REGION_DICT[regionID][selServerID]["channel"][selChannelID]["name"]
    		except KeyError:
    			if 9==selChannelID:
    				return localeInfo.CHANNEL_PVP
    			else:
    				return localeInfo.CHANNEL_NORMAL % (selChannelID)
    
    	def NotifyChannelState(self, addrKey, state):
    		try:
    			stateName=serverInfo.STATE_DICT[state]
    		except:
    			stateName=serverInfo.STATE_NONE
    
    		regionID=self.__GetRegionID()
    		serverID=self.__GetServerID()
    		channelID=addrKey%10
    
    		try:
    			serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["state"] = stateName
    			self.__RefreshServerStateList()
    
    		except:
    			import exception
    			exception.Abort(localeInfo.CHANNEL_NOT_FIND_INFO)
    
    	def __OnClickExitServerButton(self):
    		print "exit server"
    		self.__OpenLoginBoard()			
    
    		if IsFullBackImage():
    			self.GetChild("bg1").Hide()
    			self.GetChild("bg2").Show()
    			
    
    	def __OnClickSelectRegionButton(self):
    		regionID = self.__GetRegionID()
    		serverID = self.__GetServerID()
    
    		if (not serverInfo.REGION_DICT.has_key(regionID)):
    			self.PopupNotifyMessage(localeInfo.CHANNEL_SELECT_REGION)
    			return
    
    		if (not serverInfo.REGION_DICT[regionID].has_key(serverID)):
    			self.PopupNotifyMessage(localeInfo.CHANNEL_SELECT_SERVER)
    			return		
    
    		self.__SaveChannelInfo()
    
    		self.serverExitButton.SetEvent(ui.__mem_func__(self.__OnClickExitServerButton))
    		self.serverExitButton.SetText(localeInfo.UI_CLOSE)
    
    		self.__RefreshServerList()
    		self.__OpenServerBoard()
    
    	def __OnClickSelectServerButton(self):
    		if IsFullBackImage():
    			self.GetChild("bg1").Hide()
    			self.GetChild("bg2").Show()
    
    		regionID = self.__GetRegionID()
    		serverID = self.__GetServerID()
    		channelID = self.__GetChannelID()
    
    		if (not serverInfo.REGION_DICT.has_key(regionID)):
    			self.PopupNotifyMessage(localeInfo.CHANNEL_SELECT_REGION)
    			return
    
    		if (not serverInfo.REGION_DICT[regionID].has_key(serverID)):
    			self.PopupNotifyMessage(localeInfo.CHANNEL_SELECT_SERVER)
    			return
    
    		try:
    			channelDict = serverInfo.REGION_DICT[regionID][serverID]["channel"]
    		except KeyError:
    			return
    
    		try:
    			state = channelDict[channelID]["state"]
    		except KeyError:
    			self.PopupNotifyMessage(localeInfo.CHANNEL_SELECT_CHANNEL)
    			return
    
    		# 상태가 FULL 과 같으면 진입 금지
    		if state == serverInfo.STATE_DICT[3]: 
    			self.PopupNotifyMessage(localeInfo.CHANNEL_NOTIFY_FULL)
    			return
    
    		self.__SaveChannelInfo()
    
    		try:
    			serverName = serverInfo.REGION_DICT[regionID][serverID]["name"]
    			channelName = serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["name"]
    			addrKey = serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["key"]
    			
    			if "천마 서버" == serverName:			
    				app.ForceSetLocale("ymir", "locale/ymir")
    			elif "쾌도 서버" == serverName:			
    				app.ForceSetLocale("we_korea", "locale/we_korea")				
    				
    		except:
    			print " ERROR __OnClickSelectServerButton(%d, %d, %d)" % (regionID, serverID, channelID)
    			serverName = localeInfo.CHANNEL_EMPTY_SERVER
    			channelName = localeInfo.CHANNEL_NORMAL % channelID
    
    		self.__SetServerInfo("%s, %s " % (serverName, channelName))
    
    		try:
    			ip = serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["ip"]
    			tcp_port = serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["tcp_port"]
    		except:
    			import exception
    			exception.Abort("LoginWindow.__OnClickSelectServerButton - 서버 선택 실패")
    
    		try:
    			account_ip = serverInfo.REGION_AUTH_SERVER_DICT[regionID][serverID]["ip"]
    			account_port = serverInfo.REGION_AUTH_SERVER_DICT[regionID][serverID]["port"]
    		except:
    			account_ip = 0
    			account_port = 0
    
    		try:
    			markKey = regionID*1000 + serverID*10
    			markAddrValue=serverInfo.MARKADDR_DICT[markKey]
    			net.SetMarkServer(markAddrValue["ip"], markAddrValue["tcp_port"])
    			app.SetGuildMarkPath(markAddrValue["mark"])
    			# GUILD_SYMBOL
    			app.SetGuildSymbolPath(markAddrValue["symbol_path"])
    			# END_OF_GUILD_SYMBOL
    
    		except:
    			import exception
    			exception.Abort("LoginWindow.__OnClickSelectServerButton - 마크 정보 없음")
    
    
    		if app.USE_OPENID and not app.OPENID_TEST :
    			## 2012.07.19 OpenID : 김용욱
    			# 채널 선택 화면에서 "확인"(SelectServerButton) 을 눌렀을때,
    			# 로그인 화면으로 넘어가지 않고 바로 서버에 OpenID 인증키를 보내도록 수정
    			self.stream.SetConnectInfo(ip, tcp_port, account_ip, account_port)
    			self.Connect(0, 0)
    		else :
    			self.stream.SetConnectInfo(ip, tcp_port, account_ip, account_port)
    			self.__OpenLoginBoard()
    		
    
    	def __OnClickSelectConnectButton(self):
    		if IsFullBackImage():
    			self.GetChild("bg1").Show()
    			self.GetChild("bg2").Hide()
    		self.__RefreshServerList()
    		self.__OpenServerBoard()
    
    	def __OnClickLoginButton(self):
    		id = self.idEditLine.GetText()
    		pwd = self.pwdEditLine.GetText()		
    
    		if len(id)==0:
    			self.PopupNotifyMessage(localeInfo.LOGIN_INPUT_ID, self.SetIDEditLineFocus)
    			return
    
    		if len(pwd)==0:
    			self.PopupNotifyMessage(localeInfo.LOGIN_INPUT_PASSWORD, self.SetPasswordEditLineFocus)
    			return
    
    		self.Connect(id, pwd)
    	
    	def SameLogin_OpenUI(self):
    		self.stream.popupWindow.Close()
    		self.stream.popupWindow.Open(localeInfo.LOGIN_FAILURE_SAMELOGIN, 0, localeInfo.UI_OK)
     

  6. Olá boas alguem sabe me iformar o porque ao alterar preço de item no item_proto.txt,

    Não consigo logar mas no jogo?
    Mas se restauro o original o jogo loga novamente.

    Ja usei o Sublime, Notepad++,  e o excel me acontece semmpre a mesma coisa.

     

     

    Meu Sysser

     

    0316 21:24:13634 :: Traceback (most recent call last):
     
    0316 21:24:13634 ::   File "introLogin.py", line 436, in OnConnectFailure
     
    0316 21:24:13634 :: AttributeError
    0316 21:24:13634 :: : 
    0316 21:24:13634 :: 'LoginWindow' object has no attribute 'timeOutMsg'
    0316 21:24:13634 :: 
     

  7. Bom galera sei que existe alguns expert no assunto aqui.

    Estou desenvolvendo esta quest em que o npc pede uns determinado item e em troca ele lhe entrega outro.
    no meu caso funciona como troca de itens.
    porem tentei inserir o sistema nele de apresentar a imagem do item  gostaria que avaliassem se está correta a quest

    sem mas delongas.


    quest troca_milagrosa begin
    	state start begin
    		when noeh.chat."Feira do Rolo"
    			say_title("Troca Mercado Negro")
    			say("Eae meu camarada" ..pc.get_name())
    			say("Tudo certo?")
    			say("você aqui de novo na feira do rolo não")
    			say("ta suave os produtos para troca aqui são quentes")
    			say("nada ilegal ou do mercado negro, kkkkkk SQN")
    			say("Lembre-se que essa troca aqui é para lhe ajudar")
    			say("não significa que sempre sairá ganhando")
    			say("Quer conhecer os produtos que tenho para trocar?")
    			say("")
    		end
    		
    		local p	= select ("Sim" , "Não Obrigado") then
    		
    		if p = 1
    			say("Bom passando pela gruta chun vi varios aventureiros")
    			say("combatendo uns cabra bem forte lá, o que acontece")
    			say("é que os coitados são lento sempre que caíam algumas coisas")
    			say("e eles demoravam para pegar alguem via correndo e pegava primeiro")
    			say("hihihihihihi")
    			say("Olha que consegui!")
    			say_item ( "Perola Branca" , 27992 , "" )
    			say_item ( "Perola Azul" , 27993 , "" )
    			say_item ( "Perola Escarlete" , 27994 , "" )
    			say_reward("Interessado em trocar?")
    			
    			local int = select ("Sim" , "Não")
    				
    				if local int = 1 then
    					say("As trocas funnciona das seguintes maneiras 5 para 1")
    					say("Compreende? exemplo.")
    					say("5 Perolas brancas por 1 da cor desejada")
    					say("as 5 Perolas tem que ser da mesma cores")
    					say("acho que deixei bem explicado no fim das contas")
    					say("Deseja fazer esse boa troca?")
    					local tr = select ("Sim" , "Não")
    					
    					if local tr = 1 then
    						say("Suas perolas são que cor?")
    						
    						local cor = select ("Branca" , "Azul" , "Rosa" , "Não quero nada")
    						
    						if local cor = 1 then
    							if pc.count_item ( 27992 ) >= 5 then
    								say("Qual cor de Perola você deseja?")
    								local cores2 = select ("Perola Branca" , "Perola Azul" , "Perola Escarlete" )
    								if local cores2 = 1 then
    									pc . remove_item ( 27992 , 5 )
    									pc . give_item2 ( "27992" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27992 , "" )
    									
    								elseif local cores2 = 2 then
    									pc . remove_item ( 27992 , 5 )
    									pc . give_item2 ( "27993" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Azul" , 27993 , "" )
    								
    								elseif local cores2 = 3	
    									pc . remove_item ( 27992 , 5 )
    									pc . give_item2 ( "27994" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27994 , "" )
    									
    								end
    							end
    							
    						elseif local cor = 2 then
    							if pc.count_item ( 27993 ) >= 5 then
    								say("Qual cor de Perola você deseja?")
    								local cores2 = select ("Perola Branca" , "Perola Azul" , "Perola Escarlete" )
    								if local cores2 = 1 then
    									pc . remove_item ( 27993 , 5 )
    									pc . give_item2 ( "27992" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27992 , "" )
    									
    								elseif local cores2 = 2 then
    									pc . remove_item ( 27993 , 5 )
    									pc . give_item2 ( "27993" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Azul" , 27993 , "" )
    								
    								elseif local cores2 = 3	
    									pc . remove_item ( 27993 , 5 )
    									pc . give_item2 ( "27994" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27994 , "" )
    									
    								end
    								
    							end	
    							
    						if local cor = 3 then
    							if pc.count_item ( 27994 ) >= 5 then
    								say("Qual cor de Perola você deseja?")
    								local cores2 = select ("Perola Branca" , "Perola Azul" , "Perola Escarlete" )
    								if local cores2 = 1 then
    									pc . remove_item ( 27994 , 5 )
    									pc . give_item2 ( "27992" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27992 , "" )
    									
    								elseif local cores2 = 2 then
    									pc . remove_item ( 27994 , 5 )
    									pc . give_item2 ( "27993" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Azul" , 27993 , "" )
    								
    								elseif local cores2 = 3	
    									pc . remove_item ( 27994 , 5 )
    									pc . give_item2 ( "27994" , 1 )
    									say("Voce recebeu o seguinte item")
    									say_item ( "Perola Branca" , 27994 , "" )
    									
    								end
    							
    							end
    						end
    						
    						elseif local cor = 4 then
    							say("Ok! Volte quando estiver determinado")
    							say("Vida loka para você")
    							say("")
    							return
    						end	
    					end
    				end
    				
    				ifelse local int = 2 then
    					say("Falou covardão volte quando tiver coragem")
    					say("")
    					return
    				end
    			end	
    		end
    		
    		ifelse p = 2
    			say("Ok volte sempre a nossa humilde barraca")
    			return
    		end
    
    	
    	end 

     

     

    Grato a todos


  8. Olá boas companheiros.
    estou usando serve files rain e elas estão subindo de level muito rapidamente alguém poderia me explicar como diminuo essa taxa de exp ganha.

    ou tenho de aumentar o exp por level na gamecore?

     

    Desde ja fico gratos a todos quanto poderem ajudar.