#!/usr/bin/env python2.4 from wxPython.wx import * from random import randrange import pickle import random try: import psyco psyco.profile() except: pass class WepMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) weplist = ['Saber', 'Brand', 'Buster', 'Pallasch', 'Gladius', "Db's saber", 'Kaladbolg', 'Durandal', 'Sword', 'Gigush', 'Breaker', 'Claymore', 'Calibur', "Flowen's sword", 'Last survivor', 'Dragon slayer', 'Dagger', 'Knife', 'Blade', 'Edge', 'Ripper', 'Blade dance', 'Bloody art', 'Cross scar', 'Partisan', 'Halbert', 'Glaive', 'Berdys', 'Gungnir', 'Brionac', 'Vjaya', 'Gae bolg', 'Slicer', 'Spinner', 'Cutter', 'Sawcer', 'Diska', 'Slicer of assassin', 'Diska of liberator', 'Diska of bravemen', 'Handgun', 'Autogun', 'Lockgun', 'Railgun', 'Raygun', 'Varista', 'Custom ray ver.00', 'Bravace', 'Rifle', 'Sniper', 'Blaster', 'Beam', 'Laser', "Visk'235w", "Wals'mk2", "Justy'23st", 'Mechgun', 'Assault', 'Repeater', 'Gatling', 'Vulcan', 'M&a60 vise', 'H&s25 justice', 'L&k15 combat', 'Shot', 'Spread', 'Cannon', 'Launcher', 'Arms', 'Crush bullet', 'Meteor smash', 'Final impact', 'Cane', 'Stick', 'Mace', 'Club', 'Club of laconium', 'Mace of adaman', 'Club of zumiuran', 'Rod', 'Pole', 'Pillar', 'Striker', 'Battle verge', 'Brave hammer', 'Alive aqhu', 'Wand', 'Staff', 'Baton', 'Scepter', 'Fire scepter:agni', 'Ice staff:dagon', 'Storm vand:indra', 'Photon claw', 'Silence claw', "Nei's claw", 'Double saber', 'Stag cutlery', 'Twin brand', 'Brave knuckle', 'Angry fist', 'God hand', 'Sonic knuckle', 'Orotiagito', 'Agito (1975 dousetsu)', 'Agito (1983 dousetsu)', 'Agito (2001 kikoku)', 'Agito (1991 kikoku)', "Agito (1977 jou'un)", 'Agito (1980 tengai)', 'Soul eater', 'Soul banish', 'Spread needle', 'Holy ray', 'Inferno bazooka', 'Flame visit', 'Burning visit', "Akiko's frying pan", "C-sorcerer's cane", "S-beat's blade", "P-arms's blade", "Delsaber's buster", "C-bringer's rifle", 'Egg blaster', 'Psycho wand', 'Heaven punisher', 'Lavis cannon', 'Victor axe', 'Chain sawd', 'Caduceus', 'Sting tip', 'Magical piece', 'Technical crozier', 'Suppressed gun', 'Ancient saber', 'Harisen battle fan', 'Yamigarasu', "Akiko's wok", 'Toy hammer', 'Elysion', 'Red saber', 'Meteor cudgel', 'Monkey king bar', 'Black king bar', 'Double cannon', 'Huge battle fan', 'Tsumikiri j-sword', 'Sealed j-sword', 'Red sword', 'Crazy tune', 'Twin chakram', "Wok of akiko's shop", 'Lavis blade', 'Red dagger', "Madam's parasol", "Madam's umbrella", 'Imperial pick', 'Berdysh', 'Red partisan', 'Flight cutter', 'Flight fan', 'Red slicer', 'Handgun:guld', 'Handgun:milla', 'Red handgun', 'Frozen shooter', 'Snow queen', 'Anti android rifle', 'Rocket punch', 'Samba maracas', 'Twin psychogun', 'Drill launcher', 'Guld milla', 'Red mechgun', 'Belra cannon', 'Panzer faust', 'Iron faust', 'Summit moon', 'Windmill', 'Evil curst', 'Flower cane', "Hildebear's cane", "Hildeblue's cane", 'Rabbit wand', 'Plantain leaf', 'Fatsia', 'Demonic fork', 'Striker of chao', 'Broom', 'Prophets of motav', 'The sigh of a god', 'Twinkle star', 'Plantain fan', 'Twin blaze', "Marina's bag", "Dragon's claw", "Panther's claw", "S-red's blade", 'Plantain huge fan', 'Chameleon scythe', 'Yasminkov 3000r', 'Ano rifle', 'Baranz launcher', 'Branch of pakupaku', 'Heart of poumn', 'Yasminkov 2000h', 'Yasminkov 7000v', 'Yasminkov 9000m', 'Maser beam', 'Power maser', 'Game magazine', 'Flower bouquet', '(S Rank) saber', '(S Rank) sword', '(S Rank) blade', '(S Rank) partisan', '(S Rank) slicer', '(S Rank) gun', '(S Rank) rifle', '(S Rank) mechgun', '(S Rank) shot', '(S Rank) cane', '(S Rank) rod', '(S Rank) wand', '(S Rank) twin', '(S Rank) claw', '(S Rank) bazooka', '(S Rank) needle', '(S Rank) scythe', '(S Rank) hammer', '(S Rank) moon', '(S Rank) psychogun', '(S Rank) punch', '(S Rank) windmill', '(S Rank) harisen', '(S Rank) katana', '(S Rank) j-cutter', 'Musashi', 'Yamato', 'Asuka', 'Sange & yasha', 'Sange', 'Yasha', 'Kamui', 'Photon launcher', 'Guilty light', 'Red scorpio', 'Talis', 'Mahu', 'Hitogata', 'Dancing hitogata', '....', 'Nug-2000 bazooka', "S-berill's hand #0", "S-berill's hand #1", "Flowen's sword (3060)", "Flowen's sword (3064)", "Flowen's sword (3067)", "Flowen's sword (3073)", "Flowen's sword (3077)", "Flowen's sword (3082)", "Flowen's sword (3083)", "Flowen's sword (3084)", "Flowen's sword (3079)", '????', "Db's sword auw 3062", "Db's sword auw 3067", "Db's sword auw 3069", "Db's sword auw 3064", "Db's sword auw 3069", "Db's sword auw 3073", "Db's sword auw 3070", "Db's sword auw 3075", "Db's sword auw 3077", '????', 'Gigue bazooka', 'Guardianna', 'Viridia card', 'Greennill card', 'Skyly card', 'Bluefull card', 'Purplenum card', 'Pinkal card', 'Redria card', 'Oran card', 'Yellowboze card', 'Whitill card', 'Morning glory', 'Partisan of lighting', 'Gal wind', 'Zanba', "Rika's claw", 'Angle harp', 'Demolition comet', "Real nei's claw", 'Rainbow baton', 'Dark flow', 'Dark meteor', 'Dark bridge', "G-assasin's sabers", "Rappy's fan", "Booma's claw", "Gobooma's claw", "Gigobooma's claw", 'Ruby bullet', 'Amore rose', '(S Rank) swords', '(S Rank) launcher', '(S Rank) card', '(S Rank) knuckle', '(S Rank) axe'] self.weplist = wxListBox(self, 1, pos=(0,0), size=(155,200)) for item in weplist: self.weplist.Append(item) self.types = ['None','Native', 'A. Beast', 'Machine','Dark','Hit',] self.type1 = wxComboBox(self,2,"Type",pos=(155, 10),choices=self.types,style=wxCB_READONLY) self.type2 = wxComboBox(self,3,"Type",pos=(155, 45),choices=self.types,style=wxCB_READONLY) self.type3 = wxComboBox(self,4,"Type",pos=(155, 80),choices=self.types,style=wxCB_READONLY) self.pertype1 = wxComboBox(self,5,"%",pos=(260, 10),size=(80,-1),style=wxCB_READONLY) self.pertype2 = wxComboBox(self,6,"%",pos=(260, 45),size=(80,-1),style=wxCB_READONLY) self.pertype3 = wxComboBox(self,7,"%",pos=(260, 80),size=(80,-1),style=wxCB_READONLY) for num in range(0, 128): self.pertype1.Append(str(num)) self.pertype2.Append(str(num)) self.pertype3.Append(str(num)) self.spc = ['Nothing','Draw','Drain','Fill','Gush','Heart','Mind','Soul', 'Geist','Master\'s','Lord\'s','King\'s','Charge','Spirit','Berserk','Ice','Frost', 'Freeze','Blizzard','Bind','Hold','Seize','Arrest','Heat','Fire','Flame','Burning', 'Shock','Thunder','Storm','Tempest','Dim','Shadow','Dark','Hell','Panic','Riot', 'Havoc','Chaos','Devil\'s','Demon\'s'] self.special = wxComboBox(self, 8,'Special',pos=(155, 125),size=(135, -1),choices=self.spc, style=wxCB_READONLY) self.grindbx = wxComboBox(self, 9,'Grind',pos=(155, 160),size=(60, -1),style=wxCB_READONLY) for num in range(0, 256): self.grindbx.Append(str(num)) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 11,'Slot',pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 12,'Version', pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 13, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,1, self.WepGen) EVT_COMBOBOX(self,-1, self.WepGen) def WepGen(self, event): wep = str(self.weplist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' slot3 = '04444DCC' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' slot3 = '04444DE8' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' slot3 = '04444E04' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' slot3 = '04444E20' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' slot3 = '04444E3C' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' slot3 = '0444524C' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' slot3 = '04445268' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' slot3 = '04445284' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' slot3 = '044452A0' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' slot3 = '044452BC' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' slot3 = '04448AEC' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' slot3 = '04448B08' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' slot3 = '04448B24' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' slot3 = '04448B40' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' slot3 = '04448B5C' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' slot3 = '04448944' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' slot3 = '04448960' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' slot3 = '0444897C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' slot3 = '04448988' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' slot3 = '044489A4' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' if wep == '0': wepval = '000100' elif wep == '1': wepval = '000101' elif wep == '2': wepval = '000102' elif wep == '3': wepval = '000103' elif wep == '4': wepval = '000104' elif wep == '5': wepval = '000105' elif wep == '6': wepval = '000106' elif wep == '7': wepval = '000107' elif wep == '8': wepval = '000200' elif wep == '9': wepval = '000201' elif wep == '10': wepval = '000202' elif wep == '11': wepval = '000203' elif wep == '12': wepval = '000204' elif wep == '13': wepval = '000205' elif wep == '14': wepval = '000206' elif wep == '15': wepval = '000207' elif wep == '16': wepval = '000300' elif wep == '17': wepval = '000301' elif wep == '18': wepval = '000302' elif wep == '19': wepval = '000303' elif wep == '20': wepval = '000304' elif wep == '21': wepval = '000305' elif wep == '22': wepval = '000306' elif wep == '23': wepval = '000307' elif wep == '24': wepval = '000400' elif wep == '25': wepval = '000401' elif wep == '26': wepval = '000402' elif wep == '27': wepval = '000403' elif wep == '28': wepval = '000404' elif wep == '29': wepval = '000405' elif wep == '30': wepval = '000406' elif wep == '31': wepval = '000407' elif wep == '32': wepval = '000500' elif wep == '33': wepval = '000501' elif wep == '34': wepval = '000502' elif wep == '35': wepval = '000503' elif wep == '36': wepval = '000504' elif wep == '37': wepval = '000505' elif wep == '38': wepval = '000506' elif wep == '39': wepval = '000507' elif wep == '40': wepval = '000600' elif wep == '41': wepval = '000601' elif wep == '42': wepval = '000602' elif wep == '43': wepval = '000603' elif wep == '44': wepval = '000604' elif wep == '45': wepval = '000605' elif wep == '46': wepval = '000606' elif wep == '47': wepval = '000607' elif wep == '48': wepval = '000700' elif wep == '49': wepval = '000701' elif wep == '50': wepval = '000702' elif wep == '51': wepval = '000703' elif wep == '52': wepval = '000704' elif wep == '53': wepval = '000705' elif wep == '54': wepval = '000706' elif wep == '55': wepval = '000707' elif wep == '56': wepval = '000800' elif wep == '57': wepval = '000801' elif wep == '58': wepval = '000802' elif wep == '59': wepval = '000803' elif wep == '60': wepval = '000804' elif wep == '61': wepval = '000805' elif wep == '62': wepval = '000806' elif wep == '63': wepval = '000807' elif wep == '64': wepval = '000900' elif wep == '65': wepval = '000901' elif wep == '66': wepval = '000902' elif wep == '67': wepval = '000903' elif wep == '68': wepval = '000904' elif wep == '69': wepval = '000905' elif wep == '70': wepval = '000906' elif wep == '71': wepval = '000907' elif wep == '72': wepval = '000A00' elif wep == '73': wepval = '000A01' elif wep == '74': wepval = '000A02' elif wep == '75': wepval = '000A03' elif wep == '76': wepval = '000A04' elif wep == '77': wepval = '000A05' elif wep == '78': wepval = '000A06' elif wep == '79': wepval = '000B00' elif wep == '80': wepval = '000B01' elif wep == '81': wepval = '000B02' elif wep == '82': wepval = '000B03' elif wep == '83': wepval = '000B04' elif wep == '84': wepval = '000B05' elif wep == '85': wepval = '000B06' elif wep == '86': wepval = '000C00' elif wep == '87': wepval = '000C01' elif wep == '88': wepval = '000C02' elif wep == '89': wepval = '000C03' elif wep == '90': wepval = '000C04' elif wep == '91': wepval = '000C05' elif wep == '92': wepval = '000C06' elif wep == '93': wepval = '000D00' elif wep == '94': wepval = '000D01' elif wep == '95': wepval = '000D02' elif wep == '96': wepval = '000E00' elif wep == '97': wepval = '000E01' elif wep == '98': wepval = '000E02' elif wep == '99': wepval = '000F00' elif wep == '100': wepval = '000F01' elif wep == '101': wepval = '000F02' elif wep == '102': wepval = '000F03' elif wep == '103': wepval = '001000' elif wep == '104': wepval = '001001' elif wep == '105': wepval = '001002' elif wep == '106': wepval = '001003' elif wep == '107': wepval = '001004' elif wep == '108': wepval = '001005' elif wep == '109': wepval = '001006' elif wep == '110': wepval = '001100' elif wep == '111': wepval = '001101' elif wep == '112': wepval = '001200' elif wep == '113': wepval = '001300' elif wep == '114': wepval = '001400' elif wep == '115': wepval = '001500' elif wep == '116': wepval = '001501' elif wep == '117': wepval = '001600' elif wep == '118': wepval = '001700' elif wep == '119': wepval = '001800' elif wep == '120': wepval = '001900' elif wep == '121': wepval = '001A00' elif wep == '122': wepval = '001B00' elif wep == '123': wepval = '001C00' elif wep == '124': wepval = '001D00' elif wep == '125': wepval = '001E00' elif wep == '126': wepval = '001F00' elif wep == '127': wepval = '002000' elif wep == '128': wepval = '002100' elif wep == '129': wepval = '002200' elif wep == '130': wepval = '002300' elif wep == '131': wepval = '002400' elif wep == '132': wepval = '002500' elif wep == '133': wepval = '002600' elif wep == '134': wepval = '002700' elif wep == '135': wepval = '002800' elif wep == '136': wepval = '002900' elif wep == '137': wepval = '002A00' elif wep == '138': wepval = '002B00' elif wep == '139': wepval = '002C00' elif wep == '140': wepval = '002D00' elif wep == '141': wepval = '002E00' elif wep == '142': wepval = '002F00' elif wep == '143': wepval = '002F01' elif wep == '144': wepval = '003000' elif wep == '145': wepval = '003100' elif wep == '146': wepval = '003200' elif wep == '147': wepval = '003300' elif wep == '148': wepval = '003400' elif wep == '149': wepval = '003500' elif wep == '150': wepval = '003600' elif wep == '151': wepval = '003700' elif wep == '152': wepval = '003800' elif wep == '153': wepval = '003900' elif wep == '154': wepval = '003A00' elif wep == '155': wepval = '003B00' elif wep == '156': wepval = '003C00' elif wep == '157': wepval = '003D00' elif wep == '158': wepval = '003E00' elif wep == '159': wepval = '003F00' elif wep == '160': wepval = '004000' elif wep == '161': wepval = '004100' elif wep == '162': wepval = '004200' elif wep == '163': wepval = '004300' elif wep == '164': wepval = '004400' elif wep == '165': wepval = '004500' elif wep == '166': wepval = '004501' elif wep == '167': wepval = '004600' elif wep == '168': wepval = '004700' elif wep == '169': wepval = '004800' elif wep == '170': wepval = '004900' elif wep == '171': wepval = '004A00' elif wep == '172': wepval = '004B00' elif wep == '173': wepval = '004C00' elif wep == '174': wepval = '004D00' elif wep == '175': wepval = '004E00' elif wep == '176': wepval = '004E01' elif wep == '177': wepval = '004F00' elif wep == '178': wepval = '005000' elif wep == '179': wepval = '005100' elif wep == '180': wepval = '005200' elif wep == '181': wepval = '005300' elif wep == '182': wepval = '005400' elif wep == '183': wepval = '005500' elif wep == '184': wepval = '005600' elif wep == '185': wepval = '005601' elif wep == '186': wepval = '005700' elif wep == '187': wepval = '005800' elif wep == '188': wepval = '005900' elif wep == '189': wepval = '005A00' elif wep == '190': wepval = '005B00' elif wep == '191': wepval = '005C00' elif wep == '192': wepval = '005D00' elif wep == '193': wepval = '005E00' elif wep == '194': wepval = '005F00' elif wep == '195': wepval = '006000' elif wep == '196': wepval = '006100' elif wep == '197': wepval = '006200' elif wep == '198': wepval = '006300' elif wep == '199': wepval = '006400' elif wep == '200': wepval = '006500' elif wep == '201': wepval = '006600' elif wep == '202': wepval = '006700' elif wep == '203': wepval = '006800' elif wep == '204': wepval = '006900' elif wep == '205': wepval = '006A00' elif wep == '206': wepval = '006B00' elif wep == '207': wepval = '006C00' elif wep == '208': wepval = '006D00' elif wep == '209': wepval = '006D01' elif wep == '210': wepval = '006E00' elif wep == '211': wepval = '006F00' elif wep == '212': wepval = '007000' elif wep == '213': wepval = '007100' elif wep == '214': wepval = '007200' elif wep == '215': wepval = '007300' elif wep == '216': wepval = '007400' elif wep == '217': wepval = '007500' elif wep == '218': wepval = '007600' elif wep == '219': wepval = '007700' elif wep == '220': wepval = '007800' elif wep == '221': wepval = '007900' elif wep == '222': wepval = '007A00' elif wep == '223': wepval = '007B00' elif wep == '224': wepval = '007C00' elif wep == '225': wepval = '007D00' elif wep == '226': wepval = '007E00' elif wep == '227': wepval = '007F00' elif wep == '228': wepval = '008000' elif wep == '229': wepval = '008100' elif wep == '230': wepval = '008200' elif wep == '231': wepval = '008300' elif wep == '232': wepval = '008400' elif wep == '233': wepval = '008500' elif wep == '234': wepval = '008600' elif wep == '235': wepval = '008700' elif wep == '236': wepval = '008800' elif wep == '237': wepval = '008900' elif wep == '238': wepval = '008901' elif wep == '239': wepval = '008902' elif wep == '240': wepval = '008903' elif wep == '241': wepval = '008A00' elif wep == '242': wepval = '008A01' elif wep == '243': wepval = '008A02' elif wep == '244': wepval = '008B00' elif wep == '245': wepval = '008B01' elif wep == '246': wepval = '008B02' elif wep == '247': wepval = '008C00' elif wep == '248': wepval = '008C01' elif wep == '249': wepval = '008C02' elif wep == '250': wepval = '008C03' elif wep == '251': wepval = '008C04' elif wep == '252': wepval = '008D00' elif wep == '253': wepval = '008E00' elif wep == '254': wepval = '008E01' elif wep == '255': wepval = '008F00' elif wep == '256': wepval = '008F01' elif wep == '257': wepval = '008F02' elif wep == '258': wepval = '008F03' elif wep == '259': wepval = '008F04' elif wep == '260': wepval = '008F05' elif wep == '261': wepval = '008F06' elif wep == '262': wepval = '008F07' elif wep == '263': wepval = '008F08' elif wep == '264': wepval = '008F09' elif wep == '265': wepval = '009000' elif wep == '266': wepval = '009001' elif wep == '267': wepval = '009002' elif wep == '268': wepval = '009003' elif wep == '269': wepval = '009004' elif wep == '270': wepval = '009005' elif wep == '271': wepval = '009006' elif wep == '272': wepval = '009007' elif wep == '273': wepval = '009008' elif wep == '274': wepval = '009009' elif wep == '275': wepval = '009100' elif wep == '276': wepval = '009200' elif wep == '277': wepval = '009300' elif wep == '278': wepval = '009301' elif wep == '279': wepval = '009302' elif wep == '280': wepval = '009303' elif wep == '281': wepval = '009304' elif wep == '282': wepval = '009305' elif wep == '283': wepval = '009306' elif wep == '284': wepval = '009307' elif wep == '285': wepval = '009308' elif wep == '286': wepval = '009309' elif wep == '287': wepval = '009400' elif wep == '288': wepval = '009500' elif wep == '289': wepval = '009600' elif wep == '290': wepval = '009700' elif wep == '291': wepval = '009800' elif wep == '292': wepval = '009900' elif wep == '293': wepval = '009A00' elif wep == '294': wepval = '009B00' elif wep == '295': wepval = '009C00' elif wep == '296': wepval = '009D00' elif wep == '297': wepval = '009E00' elif wep == '298': wepval = '009F00' elif wep == '299': wepval = '00A000' elif wep == '300': wepval = '00A100' elif wep == '301': wepval = '00A200' elif wep == '302': wepval = '00A201' elif wep == '303': wepval = '00A202' elif wep == '304': wepval = '00A300' elif wep == '305': wepval = '00A400' elif wep == '306': wepval = '00A500' elif wep == '307': wepval = '00A600' elif wep == '308': wepval = '00A700' elif wep == '309': wepval = '00A800' elif wep == '310': wepval = '00A900' else: wepval = '000000' try: perc1 = int(self.pertype1.GetValue()) except: perc1 = '00' try: perc2 = int(self.pertype2.GetValue()) except: perc2 = '00' try: perc3 = int(self.pertype3.GetValue()) except: perc3 = '00' perc1 = hex(perc1)[2:] if len(perc1) < 2: perc1 = '0' + perc1 perc2 = hex(perc2)[2:] if len(perc2) < 2: perc2 = '0' + perc2 perc3 = hex(perc3)[2:] if len(perc3) < 2: perc3 = '0' + perc3 type1 = self.type1.GetValue() type2 = self.type2.GetValue() type3 = self.type3.GetValue() if type1 == 'None': typ1 = '0' elif type1 == 'Native': typ1 = '1' elif type1 == 'A. Beast': typ1 = '2' elif type1 == 'Machine': typ1 = '3' elif type1 == 'Dark': typ1 = '4' elif type1 == 'Hit': typ1 = '5' else: typ1 = '0' if type2 == 'None': typ2 = '0' elif type2 == 'Native': typ2 = '1' elif type2 == 'A. Beast': typ2 = '2' elif type2 == 'Machine': typ2 = '3' elif type2 == 'Dark': typ2 = '4' elif type2 == 'Hit': typ2 = '5' else: typ2 = '0' if type3 == 'None': typ3 = '0' elif type3 == 'Native': typ3 = '1' elif type3 == 'A. Beast': typ3 = '2' elif type3 == 'Machine': typ3 = '3' elif type3 == 'Dark': typ3 = '4' elif type3 == 'Hit': typ3 = '5' else: typ3 = '0' try: spec = self.special.GetValue() except: spec = 'Nothing' special=0 for item in self.spc: if spec == item: sp = self.spc[special] break special = special+1 special = hex(special)[2:].upper() if len(special) < 2: special = '0' + special try: grind = int(self.grindbx.GetValue()) except: grind = 0 grind = hex(grind)[2:].upper() if len(grind) < 2: grind = '0' + grind self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 + ' ' + wepval + grind + '\n') self.codebx.AppendText(slot2 + ' ' + special + '000' + typ1 + perc1 +'\n') self.codebx.AppendText(slot3 + ' 0' + typ2 + perc2 + '0' + typ3 + perc3) except: self.codebx.AppendText('00000000 00000000\n'*4) class ArmorMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) armorlist = ['Frame', 'Armor', 'Psy armor', 'Giga frame', 'Soul frame', 'Cross armor', 'Solid frame', 'Brave armor', 'Hyper frame', 'Grand armor', 'Shock frame', "King's frame", 'Dragon frame', 'Absorb armor', 'Protect frame', 'General armor', 'Perfect frame', 'Valiant frame', 'Imperial armor', 'Holiness armor', 'Guardian armor', 'Divinity armor', 'Ultimate frame', 'Celestial armor', 'Hunter field', 'Ranger field', 'Force field', 'Revival garment', 'Spirit garment', 'Stink frame', 'D-parts ver1.01', 'D-parts ver2.10', 'Parasite wear:de rol', 'Parasite wear:nelgal', 'Parasite wear:vajulla', 'Sense plate', 'Graviton plate', 'Attribute plate', "Flowen's frame", 'Custom frame ver.00', "Db's armor", 'Guard wave', 'Df field', 'Luminous field', 'Chu chu fever', 'Love heart', 'Flame garment', 'Virus armor:lafuteria', 'Brightness circle', 'Aura field', 'Electro frame', 'Sacred cloth', 'Smoking plate'] self.armorlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in armorlist: self.armorlist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.sltop = ['0 Slots','1 Slot','2 Slots','3 Slots', '4 Slots'] self.slt = wxComboBox(self, 17, pos=(170, 10),size=(100, -1),choices=self.sltop, style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.ArmorGen) EVT_COMBOBOX(self,-1,self.ArmorGen) def ArmorGen(self, event): armor = str(self.armorlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' else: slot1 = '00000000' slot2 = '00000000' if armor == '0': armval = '010100' elif armor == '1': armval = '010101' elif armor == '2': armval = '010102' elif armor == '3': armval = '010103' elif armor == '4': armval = '010104' elif armor == '5': armval = '010105' elif armor == '6': armval = '010106' elif armor == '7': armval = '010107' elif armor == '8': armval = '010108' elif armor == '9': armval = '010109' elif armor == '10': armval = '01010A' elif armor == '11': armval = '01010B' elif armor == '12': armval = '01010C' elif armor == '13': armval = '01010D' elif armor == '14': armval = '01010E' elif armor == '15': armval = '01010F' elif armor == '16': armval = '010110' elif armor == '17': armval = '010111' elif armor == '18': armval = '010112' elif armor == '19': armval = '010113' elif armor == '20': armval = '010114' elif armor == '21': armval = '010115' elif armor == '22': armval = '010116' elif armor == '23': armval = '010117' elif armor == '24': armval = '010118' elif armor == '25': armval = '010119' elif armor == '26': armval = '01011A' elif armor == '27': armval = '01011B' elif armor == '28': armval = '01011C' elif armor == '29': armval = '01011D' elif armor == '30': armval = '01011E' elif armor == '31': armval = '01011F' elif armor == '32': armval = '010120' elif armor == '33': armval = '010121' elif armor == '34': armval = '010122' elif armor == '35': armval = '010123' elif armor == '36': armval = '010124' elif armor == '37': armval = '010125' elif armor == '38': armval = '010126' elif armor == '39': armval = '010127' elif armor == '40': armval = '010128' elif armor == '41': armval = '010129' elif armor == '42': armval = '01012A' elif armor == '43': armval = '01012B' elif armor == '44': armval = '01012C' elif armor == '45': armval = '01012D' elif armor == '46': armval = '01012E' elif armor == '47': armval = '01012F' elif armor == '48': armval = '010130' elif armor == '49': armval = '010131' elif armor == '50': armval = '010132' elif armor == '51': armval = '010133' elif armor == '52': armval = '010134' else: armval = '000000' slot = self.slt.GetValue() if slot == '0 Slots': slt = '0' elif slot == '1 Slot': slt = '1' elif slot == '2 Slots': slt = '2' elif slot == '3 Slots': slt = '3' elif slot == '4 Slots': slt = '4' self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 +' ' + armval + '00\n') self.codebx.AppendText(slot2 + ' 000' + slt + '0000\n') except: self.codebx.AppendText('00000000 00000000\n'*3) class ShieldMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) shieldlist = ['Barrier', 'Shield', 'Core shield', 'Giga shield', 'Soul barrier', 'Hard shield', 'Brave barrier', 'Solid shield', 'Flame barrier', 'Plasma barrier', 'Freeze barrier', 'Psychic barrier', 'General shield', 'Protect barrier', 'Glorious shield', 'Imperial barrier', 'Guardian shield', 'Divinity barrier', 'Ultimate shield', 'Spiritual shield', 'Celestial shield', 'Invisible guard', 'Sacred guard', 'S-parts ver1.16', 'S-parts ver2.01', 'Light relief', 'Shield of delsaber', 'Force wall', 'Ranger wall', 'Hunter wall', 'Attribute wall', 'Secret gear', 'Combat gear', 'Proto regene gear', 'Regenerate gear', 'Regene gear adv.', "Flowen's shield", 'Custom barrier ver.00', "Db's shield", 'Red ring', 'Tripolic shield', 'Standstill shield', 'Safety heart', 'Kasami bracer', 'Gods shield suzaku', 'Gods shield genbu', 'Gods shield byakko', 'Gods shield seiryu', "Hunter's shell", "Rico's glasses", "Rico's earring", 'Blue ring', 'Yellow ring', 'Secure feet', 'Purple ring', 'Green ring', 'Barrier', 'Barrier', 'Resta merge', 'Anti merge', 'Shifta merge', 'Deband merge', 'Foie merge', 'Gifoie merge', 'Rafoie merge', 'Red merge', 'Barta merge', 'Gibarta merge', 'Rabarta merge', 'Blue merge', 'Zonde merge', 'Gizonde merge', 'Razonde merge', 'Yellow merge', 'Recovery barrier', 'Assist barrier', 'Red barrier', 'Blue barrier', 'Yellow barrier', 'Weapons gold shield', 'Black gear', 'Works guard', 'Ragol ring', 'Blue ring', 'Blue ring', 'Green ring', 'Green ring', 'Yellow ring', 'Yellow ring', 'Yellow ring', 'Purple ring', 'Purple ring', 'White ring', 'White ring', 'Black ring', 'Black ring', 'Weapons silver shield', 'Weapons copper shiel'] self.shieldlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in shieldlist: self.shieldlist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.ShieldGen) EVT_COMBOBOX(self,-1,self.ShieldGen) def ShieldGen(self, event): shield = str(self.shieldlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' else: slot1 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' else: slot1 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' else: slot1 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' else: slot1 = '00000000' if shield == '0': sldval = '010200' elif shield == '1': sldval = '010201' elif shield == '2': sldval = '010202' elif shield == '3': sldval = '010203' elif shield == '4': sldval = '010204' elif shield == '5': sldval = '010205' elif shield == '6': sldval = '010206' elif shield == '7': sldval = '010207' elif shield == '8': sldval = '010208' elif shield == '9': sldval = '010209' elif shield == '10': sldval = '01020A' elif shield == '11': sldval = '01020B' elif shield == '12': sldval = '01020C' elif shield == '13': sldval = '01020D' elif shield == '14': sldval = '01020E' elif shield == '15': sldval = '01020F' elif shield == '16': sldval = '010210' elif shield == '17': sldval = '010211' elif shield == '18': sldval = '010212' elif shield == '19': sldval = '010213' elif shield == '20': sldval = '010214' elif shield == '21': sldval = '010215' elif shield == '22': sldval = '010216' elif shield == '23': sldval = '010217' elif shield == '24': sldval = '010218' elif shield == '25': sldval = '010219' elif shield == '26': sldval = '01021A' elif shield == '27': sldval = '01021B' elif shield == '28': sldval = '01021C' elif shield == '29': sldval = '01021D' elif shield == '30': sldval = '01021E' elif shield == '31': sldval = '01021F' elif shield == '32': sldval = '010220' elif shield == '33': sldval = '010221' elif shield == '34': sldval = '010222' elif shield == '35': sldval = '010223' elif shield == '36': sldval = '010224' elif shield == '37': sldval = '010225' elif shield == '38': sldval = '010226' elif shield == '39': sldval = '010227' elif shield == '40': sldval = '010228' elif shield == '41': sldval = '010229' elif shield == '42': sldval = '01022A' elif shield == '43': sldval = '01022B' elif shield == '44': sldval = '01022C' elif shield == '45': sldval = '01022D' elif shield == '46': sldval = '01022E' elif shield == '47': sldval = '01022F' elif shield == '48': sldval = '010230' elif shield == '49': sldval = '010231' elif shield == '50': sldval = '010232' elif shield == '51': sldval = '010233' elif shield == '52': sldval = '010234' elif shield == '53': sldval = '010235' elif shield == '54': sldval = '010236' elif shield == '55': sldval = '010237' elif shield == '56': sldval = '010238' elif shield == '57': sldval = '010239' elif shield == '58': sldval = '01023A' elif shield == '59': sldval = '01023B' elif shield == '60': sldval = '01023C' elif shield == '61': sldval = '01023D' elif shield == '62': sldval = '01023E' elif shield == '63': sldval = '01023F' elif shield == '64': sldval = '010240' elif shield == '65': sldval = '010241' elif shield == '66': sldval = '010242' elif shield == '67': sldval = '010243' elif shield == '68': sldval = '010244' elif shield == '69': sldval = '010245' elif shield == '70': sldval = '010246' elif shield == '71': sldval = '010247' elif shield == '72': sldval = '010248' elif shield == '73': sldval = '010249' elif shield == '74': sldval = '01024A' elif shield == '75': sldval = '01024B' elif shield == '76': sldval = '01024C' elif shield == '77': sldval = '01024D' elif shield == '78': sldval = '01024E' elif shield == '79': sldval = '01024F' elif shield == '80': sldval = '010250' elif shield == '81': sldval = '010251' elif shield == '82': sldval = '010252' elif shield == '83': sldval = '010253' elif shield == '84': sldval = '01025A' elif shield == '85': sldval = '01025B' elif shield == '86': sldval = '010262' elif shield == '87': sldval = '010263' elif shield == '88': sldval = '010266' elif shield == '89': sldval = '01026A' elif shield == '90': sldval = '01026B' elif shield == '91': sldval = '010272' elif shield == '92': sldval = '010273' elif shield == '93': sldval = '01027A' elif shield == '94': sldval = '01027B' elif shield == '95': sldval = '010282' elif shield == '96': sldval = '010283' elif shield == '97': sldval = '010284' else: sldval = '000000' self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 +' ' + sldval + '00\n') except: self.codebx.AppendText('00000000 00000000\n'*2) class UnitMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) unitlist = ['Knight/Power', 'General/Power', 'Ogre/Power', 'God/Power', 'Priest/Mind', 'General/Mind', 'Angel/Mind', 'God/Mind', 'Marksman/Arm', 'General/Arm', 'Elf/Arm', 'God/Arm', 'Thief/Legs', 'General/Legs', 'Elf/Legs', 'God/Legs', 'Digger/HP', 'General/HP', 'Dragon/HP', 'God/HP', 'Magician/TP', 'General/TP', 'Angle/TP', 'God/TP', 'Warrior/Body', 'General/Body', 'Metal/Body', 'God/Body', 'Angel/Luck', 'God/Luck', 'Master/Ability', 'Hero/Ability', 'God/Ability', 'Resist/Fire', 'Resist/Flame', 'Resist/Burning', 'Resist/Cold', 'Resist/Freeze', 'Resist/Blizzard', 'Resist/Shock', 'Resist/Thunder', 'Resist/Storm', 'Resist/Light', 'Resist/Saint', 'Resist/Holy', 'Resist/Dark', 'Resist/Evil', 'Resist/Devil', 'All/Resist', 'Super/Resist', 'Perfect/Resist', 'HP/Restorate', 'HP/Generate', 'HP/Revival', 'TP/Restorate', 'TP/Generate', 'TP/Revival', 'PB/Amplifier', 'PB/Generate', 'PB/Create', 'Wizard/Technique', 'Devil/Technique', 'God/Technique', 'General/Battle', 'Devil/Battle', 'God/Battle', 'Cure/Poison', 'Cure/Shock', 'Cure/Paralysis', 'Cure/Confusion', 'Cure/Slow', 'Cure/Freeze'] self.unitlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in unitlist: self.unitlist.Append(item) unitop = ['None','+','++','-','--'] self.cbuni = wxComboBox(self, 17, pos=(160, 10),size=(80, -1),choices=unitop, style=wxCB_READONLY) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14, self.UnitGen) EVT_COMBOBOX(self,-1, self.UnitGen) def UnitGen(self, event): unit = str(self.unitlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' slot3 = '04444DCC' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' slot3 = '04444DE8' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' slot3 = '04444E04' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' slot3 = '04444E20' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' slot3 = '04444E3C' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' slot3 = '0444524C' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' slot3 = '04445268' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' slot3 = '04445284' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' slot3 = '044452A0' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' slot3 = '044452BC' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' slot3 = '04448AEC' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' slot3 = '04448B08' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' slot3 = '04448B24' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' slot3 = '04448B40' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' slot3 = '04448B5C' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' slot3 = '04448944' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' slot3 = '04448960' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' slot3 = '0444897C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' slot3 = '04448988' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' slot3 = '044489A4' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' if unit == '0': unival = '010300' elif unit == '1': unival = '010301' elif unit == '2': unival = '010302' elif unit == '3': unival = '010303' elif unit == '4': unival = '010304' elif unit == '5': unival = '010305' elif unit == '6': unival = '010306' elif unit == '7': unival = '010307' elif unit == '8': unival = '010308' elif unit == '9': unival = '010309' elif unit == '10': unival = '01030A' elif unit == '11': unival = '01030B' elif unit == '12': unival = '01030C' elif unit == '13': unival = '01030D' elif unit == '14': unival = '01030E' elif unit == '15': unival = '01030F' elif unit == '16': unival = '010310' elif unit == '17': unival = '010311' elif unit == '18': unival = '010312' elif unit == '19': unival = '010313' elif unit == '20': unival = '010314' elif unit == '21': unival = '010315' elif unit == '22': unival = '010316' elif unit == '23': unival = '010317' elif unit == '24': unival = '010318' elif unit == '25': unival = '010319' elif unit == '26': unival = '01031A' elif unit == '27': unival = '01031B' elif unit == '28': unival = '01031C' elif unit == '29': unival = '01031D' elif unit == '30': unival = '01031E' elif unit == '31': unival = '01031F' elif unit == '32': unival = '010320' elif unit == '33': unival = '010321' elif unit == '34': unival = '010322' elif unit == '35': unival = '010323' elif unit == '36': unival = '010324' elif unit == '37': unival = '010325' elif unit == '38': unival = '010326' elif unit == '39': unival = '010327' elif unit == '40': unival = '010328' elif unit == '41': unival = '010329' elif unit == '42': unival = '01032A' elif unit == '43': unival = '01032B' elif unit == '44': unival = '01032C' elif unit == '45': unival = '01032D' elif unit == '46': unival = '01032E' elif unit == '47': unival = '01032F' elif unit == '48': unival = '010330' elif unit == '49': unival = '010331' elif unit == '50': unival = '010332' elif unit == '51': unival = '010333' elif unit == '52': unival = '010334' elif unit == '53': unival = '010335' elif unit == '54': unival = '010336' elif unit == '55': unival = '010337' elif unit == '56': unival = '010338' elif unit == '57': unival = '010339' elif unit == '58': unival = '01033A' elif unit == '59': unival = '01033B' elif unit == '60': unival = '01033C' elif unit == '61': unival = '01033D' elif unit == '62': unival = '01033E' elif unit == '63': unival = '01033F' elif unit == '64': unival = '010340' elif unit == '65': unival = '010341' elif unit == '66': unival = '010342' elif unit == '67': unival = '010343' elif unit == '68': unival = '010344' elif unit == '69': unival = '010345' elif unit == '70': unival = '010346' elif unit == '71': unival = '010347' else: unival = '000000' try: uni = self.cbuni.GetValue() unidic = {'None':'0000', '+': '0100', '++':'0300', '-': 'FFFF', '--':'FFFE'} un1, un2 = unidic[uni][:2], unidic[uni][2:] except: un1 = un2 = '00' self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 + ' ' + unival + '00\n') self.codebx.AppendText(slot2 + ' 000000' + un1 + '\n') self.codebx.AppendText(slot3 + ' ' + un2 + '000000\n') except: self.codebx.AppendText('00000000 00000000\n'*4) class TechMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) techlist = ['Foie', 'Gifoie', 'Rafoie', 'Barta', 'Gibarta', 'Rabarta', 'Zonde', 'Gizonze','Razonde', 'Grants', 'Deband', 'Jellen', 'Zalure', 'Shifta', 'Ryuker', 'Resta','Anti', 'Reverser', 'Megid'] self.techlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in techlist: self.techlist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.lvlbx = wxComboBox(self, 16, pos=(160, 10),size=(100, -1), style=wxCB_READONLY) for num in range(1, 31): self.lvlbx.Append(str(num)) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.TechGen) EVT_COMBOBOX(self,-1,self.TechGen) def TechGen(self, event): tech = str(self.techlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' else: slot1 = '00000000' slot2 = '00000000' if tech == '0': tchval = '00' elif tech == '1': tchval = '01' elif tech == '2': tchval = '02' elif tech == '3': tchval = '03' elif tech == '4': tchval = '04' elif tech == '5': tchval = '05' elif tech == '6': tchval = '06' elif tech == '7': tchval = '07' elif tech == '8': tchval = '08' elif tech == '9': tchval = '09' elif tech == '10': tchval = '0A' elif tech == '11': tchval = '0B' elif tech == '12': tchval = '0C' elif tech == '13': tchval = '0D' elif tech == '14': tchval = '0E' elif tech == '15': tchval = '0F' elif tech == '16': tchval = '10' elif tech == '17': tchval = '11' elif tech == '18': tchval = '12' else: tchval = '00' lvl = int(self.lvlbx.GetValue())-1 lvl = hex(lvl)[2:].upper() while len(lvl) < 2: lvl = '0' + lvl self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 +' 0302' + lvl + '00\n') self.codebx.AppendText(slot2 + ' ' + tchval + '000000\n') except: self.codebx.AppendText('00000000 00000000\n'*3) class ItemMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) itemlist = ['Monomate', 'Dimate', 'Trimate', 'Monofluid', 'Difluid', 'Trifluid', 'Sol Atomizer', 'Moon Atomizer', 'Star Atomizer', 'Antidote', 'Antiparalysis','Telepipe', 'Trap Vision', 'Scape Doll', 'Monogrinder', 'Digrinder', 'Trigrinder', 'Power Material', 'Mind Material', 'Evade Material', 'HP Material', 'TP Material', 'Def Material', 'Luck Material'] self.itemlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in itemlist: self.itemlist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.amountbx = wxComboBox(self, 16, pos=(160, 10),size=(100, -1), style=wxCB_READONLY) for num in range(1, 256): self.amountbx.Append(str(num)) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.ItemGen) EVT_COMBOBOX(self,-1,self.ItemGen) def ItemGen(self, event): item = str(self.itemlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' else: slot1 = '00000000' slot2 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' else: slot1 = '00000000' slot2 = '00000000' if item == '0': itmval= '030000' elif item == '1': itmval= '030001' elif item == '2': itmval= '030002' elif item == '3': itmval= '030100' elif item == '4': itmval= '030101' elif item == '5': itmval= '030102' elif item == '6': itmval= '030300' elif item == '7': itmval= '030400' elif item == '8': itmval= '030500' elif item == '9': itmval= '030600' elif item == '10': itmval= '030601' elif item == '11': itmval= '030700' elif item == '12': itmval= '030800' elif item == '13': itmval= '030900' elif item == '14': itmval= '030A00' elif item == '15': itmval= '030A01' elif item == '16': itmval= '030A02' elif item == '17': itmval= '030B00' elif item == '18': itmval= '030B01' elif item == '19': itmval= '030B02' elif item == '20': itmval= '030B03' elif item == '21': itmval= '030B04' elif item == '22': itmval= '030B05' elif item == '23': itmval= '030B06' else: itmval= '000000' amount = int(self.amountbx.GetValue()) amount = hex(amount)[2:].upper() while len(amount) < 2: amount = '0' + amount self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 +' ' + itmval + '00\n') self.codebx.AppendText(slot2 +' 00' + amount + '0000\n') except: self.codebx.AppendText('00000000 00000000\n'*3) class OtherMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) otherlist = ['Cell of mag 502', 'Cell of mag 213', 'Parts of robochao', 'Heart of opa opa', 'Heart of pian', 'Heart of chao', "Sorcerer's right arm", "S-beat's arms", "Pan-arm's arms", "Delsaber's right arm", "C-bringer's right arm", "Del saber's left arm", "S-red's arms", "Dragon's claw", "Hildebear's head", "Hilderblue's head", 'Parts of baranz', "Belra's right arm", "Gigue's body", "S-berill's hands", "G-assasin's arms", "Booma's right arms", "Gobooma's right arms", "Gigobooma's right arms", "Gal gryphon's wing", "Rappy's wing", '???', 'Berill photon', 'Parasitic gene "flow"', "Magic stone 'iritista' [redria]", 'Blue black stone', 'Syncesta', 'Magic water', 'Parasitic cell type d', "Magic rock 'heart key'", "Magic rock 'moola'", 'Star amplifier', 'Book of hitogata', 'Heart of chu chu', 'Parts of egg blaster', 'Heart of angel', 'Heart of devil', 'Kit of hamberger', "Panther's spirit", 'Kit of mark3', 'Kit of master system', 'Kit of genesis', 'Kit of sega saturn', 'Kit of dreamcast', 'Amp. resta', 'Amp. anti', 'Amp. shifta', 'Amp. deband', 'Amp. foie', 'Amp. gifoie', 'Amp. rafoie', 'Amp. barta', 'Amp. gibarta', 'Amp. rabarta', 'Amp. zonde', 'Amp. gizonde', 'Amp. razonde', 'Amp. red', 'Amp. blue', 'Amp. yellow', 'Heart of kapukapu', 'Photon booster', '???', 'Add slot', 'Photon drop', 'Photon sphere', 'Photon crystal', 'Book of katana 1', 'Book of katana 2', 'Book of katana 3', 'Weapons bronze badge', 'Weapons silver badge', 'Weapons gold badge', 'Weapons crystal badge', 'Weapons steel badge', 'Weapons aluminum badge', 'Weapons leather badge', 'Weapons bone badge', 'Letter of apprecation', 'Autograph album', "Valentine's chocolate", "Newyear's card", 'Crismas card', 'Birthday card', 'Proof of sonic team', 'Special event ticket', 'Present', 'Chocolate', 'Candy', 'Cake', 'Silver badge', 'Gold badge', 'Crystal badge', 'Iron badge', 'Aluminum badge', 'Leather badge', 'Bone badge', 'Bouquet', 'Decoration', 'Cristmas present', 'Easter egg', "Jack-o'-lantern", 'Disk vol.1', 'Disk vol.2', 'Disk vol.3', 'Disk vol.4', 'Disk vol.5', 'Disk vol.6', 'Disk vol.7', 'Hunters report', 'Hunters report rank a', 'Hunters report rank b', 'Hunters report rank c', 'Hunters report rank f'] self.otherlist = wxListBox(self, 14, pos=(0,0), size=(155,200)) for item in otherlist: self.otherlist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.OtherGen) EVT_COMBOBOX(self,-1,self.OtherGen) def OtherGen(self, event): other = str(self.otherlist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' else: slot1 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' else: slot1 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' else: slot1 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' else: slot1 = '00000000' if other == '0': otrval = '030C00' elif other == '1': otrval = '030C01' elif other == '2': otrval = '030C02' elif other == '3': otrval = '030C03' elif other == '4': otrval = '030C04' elif other == '5': otrval = '030C05' elif other == '6': otrval = '030D00' elif other == '7': otrval = '030D01' elif other == '8': otrval = '030D02' elif other == '9': otrval = '030D03' elif other == '10': otrval = '030D04' elif other == '11': otrval = '030D05' elif other == '12': otrval = '030D06' elif other == '13': otrval = '030D07' elif other == '14': otrval = '030D08' elif other == '15': otrval = '030D09' elif other == '16': otrval = '030D0A' elif other == '17': otrval = '030D0B' elif other == '18': otrval = '030D0C' elif other == '19': otrval = '030D0D' elif other == '20': otrval = '030D0E' elif other == '21': otrval = '030D0F' elif other == '22': otrval = '030D10' elif other == '23': otrval = '030D11' elif other == '24': otrval = '030D12' elif other == '25': otrval = '030D13' elif other == '26': otrval = '030D14' elif other == '27': otrval = '030E00' elif other == '28': otrval = '030E01' elif other == '29': otrval = '030E02' elif other == '30': otrval = '030E03' elif other == '31': otrval = '030E04' elif other == '32': otrval = '030E05' elif other == '33': otrval = '030E06' elif other == '34': otrval = '030E07' elif other == '35': otrval = '030E08' elif other == '36': otrval = '030E09' elif other == '37': otrval = '030E0A' elif other == '38': otrval = '030E0B' elif other == '39': otrval = '030E0C' elif other == '40': otrval = '030E0D' elif other == '41': otrval = '030E0E' elif other == '42': otrval = '030E0F' elif other == '43': otrval = '030E10' elif other == '44': otrval = '030E11' elif other == '45': otrval = '030E12' elif other == '46': otrval = '030E13' elif other == '47': otrval = '030E14' elif other == '48': otrval = '030E15' elif other == '49': otrval = '030E16' elif other == '50': otrval = '030E17' elif other == '51': otrval = '030E18' elif other == '52': otrval = '030E19' elif other == '53': otrval = '030E1A' elif other == '54': otrval = '030E1B' elif other == '55': otrval = '030E1C' elif other == '56': otrval = '030E1D' elif other == '57': otrval = '030E1E' elif other == '58': otrval = '030E1F' elif other == '59': otrval = '030E20' elif other == '60': otrval = '030E21' elif other == '61': otrval = '030E22' elif other == '62': otrval = '030E23' elif other == '63': otrval = '030E24' elif other == '64': otrval = '030E25' elif other == '65': otrval = '030E26' elif other == '66': otrval = '030E27' elif other == '67': otrval = '030E28' elif other == '68': otrval = '030F00' elif other == '69': otrval = '031000' elif other == '70': otrval = '031001' elif other == '71': otrval = '031002' elif other == '72': otrval = '031100' elif other == '73': otrval = '031101' elif other == '74': otrval = '031102' elif other == '75': otrval = '031200' elif other == '76': otrval = '031201' elif other == '77': otrval = '031202' elif other == '78': otrval = '031203' elif other == '79': otrval = '031204' elif other == '80': otrval = '031205' elif other == '81': otrval = '031206' elif other == '82': otrval = '031207' elif other == '83': otrval = '031208' elif other == '84': otrval = '031209' elif other == '85': otrval = '03120A' elif other == '86': otrval = '03120B' elif other == '87': otrval = '03120C' elif other == '88': otrval = '03120D' elif other == '89': otrval = '03120E' elif other == '90': otrval = '03120F' elif other == '91': otrval = '031300' elif other == '92': otrval = '031400' elif other == '93': otrval = '031401' elif other == '94': otrval = '031402' elif other == '95': otrval = '031403' elif other == '96': otrval = '031404' elif other == '97': otrval = '031405' elif other == '98': otrval = '031406' elif other == '99': otrval = '031407' elif other == '100': otrval = '031408' elif other == '101': otrval = '031409' elif other == '102': otrval = '03140A' elif other == '103': otrval = '03140B' elif other == '104': otrval = '031500' elif other == '105': otrval = '031501' elif other == '106': otrval = '031502' elif other == '107': otrval = '031600' elif other == '108': otrval = '031601' elif other == '109': otrval = '031602' elif other == '110': otrval = '031603' elif other == '111': otrval = '031604' elif other == '112': otrval = '031605' elif other == '113': otrval = '031606' elif other == '114': otrval = '031700' elif other == '115': otrval = '031701' elif other == '116': otrval = '031702' elif other == '117': otrval = '031703' elif other == '118': otrval = '031704' else: otrval = '000000' self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 + ' ' + otrval + '00') except: self.codebx.AppendText('00000000 00000000\n'*2) class MagMod(wxPanel): def __init__(self,parent,id): wxPanel.__init__(self,parent,id) self.maglist = wxListBox(self, 14, pos=(0,0), size=(155,200)) maglist = ['Mag', 'Varuna', 'Mitra', 'Surya', 'Vayu', 'Varaha', 'Kama', 'Ushasu', 'Apsaras', 'Kumara', 'Kaitabha', 'Tapas', 'Bhirava', 'Kalki', 'Rudra', 'Marutah', 'Yaksa', 'Sita', 'Garuda', 'Nandin', 'Ashvinau', 'Ribhava', 'Soma', 'Ila', 'Durga', 'Vritra', 'Namuci', 'Sumba', 'Naga', 'Pitri', 'Kabanda', 'Ravana', 'Marcia', 'Soniti', 'Preta', 'Andhaka','Bana', 'Naraka', 'Madhu', 'Churel', 'Robochao', 'Opa-Opa', 'Pian', 'Chao', 'Chu Chu','Kapu Kapu', 'Angel`s Wings', 'Devil`s Wings', 'Elenor', 'Mark3', 'Master System','Genesis', 'Sega Saturn', 'Dreamcast', 'Hamburger', 'Panzer`s Tail', 'Devil`s Tail','Deva', 'Rati', 'Savitri', 'Rukmin', 'Pushan', 'Diwari', 'Sato', 'Bhima', 'Nidra'] for item in maglist: self.maglist.Append(item) self.slotop = ['Slot 1','Slot 2','Slot 3','Slot 4','Slot 5'] self.slot = wxComboBox(self, 15, pos=(345, 10),size=(80, -1),choices=self.slotop, style=wxCB_READONLY) self.verop = ['1.0','1.1','1.2','EU'] self.version = wxComboBox(self, 16, pos=(445, 10),size=(50, -1),choices=self.verop, style=wxCB_READONLY) self.defbx = wxComboBox(self,19,'Defence', pos=(155,10),style=wxCB_READONLY) self.powbx = wxComboBox(self,20,'Power', pos=(155,45),style=wxCB_READONLY) self.dexbx = wxComboBox(self,21,'Dexterity', pos=(155,80),style=wxCB_READONLY) self.minbx = wxComboBox(self,22,'Mind', pos=(155,115),style=wxCB_READONLY) for i in range(1,328): self.defbx.Append(str(i)) self.powbx.Append(str(i)) self.dexbx.Append(str(i)) self.minbx.Append(str(i)) self.color = ['Red','Blue','Yellow','Green','Purple','Dark Purple','White','Cyan', 'Brown','Black','Pink','????','Default'] self.colorbx = wxComboBox(self,23,'Color',pos=(155,150),choices=self.color,style=wxCB_READONLY) self.codebx = wxTextCtrl(self, 18, pos=(345, 100), size=(150,100), style=wxTE_MULTILINE | wxTE_READONLY) EVT_LISTBOX(self,14,self.MagGen) EVT_COMBOBOX(self,-1,self.MagGen) def MagGen(self, event): mag = str(self.maglist.GetSelection()) if self.version.GetValue() == '1.0': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04444DC4' slot2 = '04444DC8' slot3 = '04444DCC' slot4 = '04444DD4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04444DC4' slot2 = '04444DE4' slot3 = '04444DE8' slot4 = '04444DF0' elif self.slot.GetValue() == 'Slot 3': slot1 = '04444DFC' slot2 = '04444E00' slot3 = '04444E04' slot4 = '04444E0C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04444E18' slot2 = '04444E1C' slot3 = '04444E20' slot4 = '04444E28' elif self.slot.GetValue() == 'Slot 5': slot1 = '04444E34' slot2 = '04444E38' slot3 = '04444E3C' slot4 = '04444E48' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' slot4 = '00000000' elif self.version.GetValue() == '1.1': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04445244' slot2 = '04445248' slot3 = '0444524C' slot4 = '04445254' elif self.slot.GetValue() == 'Slot 2': slot1 = '04445260' slot2 = '04445264' slot3 = '04445268' slot4 = '04445270' elif self.slot.GetValue() == 'Slot 3': slot1 = '0444527C' slot2 = '04445280' slot3 = '04445284' slot4 = '0444528C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04445298' slot2 = '0444529C' slot3 = '044452A0' slot4 = '044452A8' elif self.slot.GetValue() == 'Slot 5': slot1 = '044452B4' slot2 = '044452B8' slot3 = '044452BC' slot4 = '044452C4' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' slot4 = '00000000' elif self.version.GetValue() == '1.2': verifier = '0E80' + hex(random.randrange(4096, 65535))[2:].upper() + ' 08000000' if self.slot.GetValue() == 'Slot 1': slot1 = '04448AE4' slot2 = '04448AE8' slot3 = '04448AEC' slot4 = '04448AF4' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448B00' slot2 = '04448B04' slot3 = '04448B08' slot4 = '04448B10' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448B1C' slot2 = '04448B20' slot3 = '04448B24' slot4 = '04448B2C' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448B38' slot2 = '04448B3C' slot3 = '04448B40' slot4 = '04448B48' elif self.slot.GetValue() == 'Slot 5': slot1 = '04448B54' slot2 = '04448B58' slot3 = '04448B5C' slot4 = '04448B64' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' slot4 = '00000000' elif self.version.GetValue() == 'EU': verifier = '07FF' + hex(random.randrange(4096, 65535))[2:].upper() + ' 18000000' if self.slot.GetValue() == 'Slot 1': slot1 = '0444893C' slot2 = '04448940' slot3 = '04448944' slot4 = '0444894C' elif self.slot.GetValue() == 'Slot 2': slot1 = '04448958' slot2 = '0444895C' slot3 = '04448960' slot4 = '04448968' elif self.slot.GetValue() == 'Slot 3': slot1 = '04448974' slot2 = '04448978' slot3 = '0444897C' slot4 = '04448974' elif self.slot.GetValue() == 'Slot 4': slot1 = '04448980' slot2 = '04448984' slot3 = '04448988' slot4 = '04448990' elif self.slot.GetValue() == 'Slot 5': slot1 = '0444899C' slot2 = '044489A0' slot3 = '044489A4' slot4 = '044489AC' else: slot1 = '00000000' slot2 = '00000000' slot3 = '00000000' slot4 = '00000000' if mag == '0': magval = '0200' elif mag == '1': magval = '0201' elif mag == '2': magval = '0202' elif mag == '3': magval = '0203' elif mag == '4': magval = '0204' elif mag == '5': magval = '0205' elif mag == '6': magval = '0206' elif mag == '7': magval = '0207' elif mag == '8': magval = '0208' elif mag == '9': magval = '0209' elif mag == '10': magval = '020A' elif mag == '11': magval = '020B' elif mag == '12': magval = '020C' elif mag == '13': magval = '020D' elif mag == '14': magval = '020E' elif mag == '15': magval = '020F' elif mag == '16': magval = '0210' elif mag == '17': magval = '0211' elif mag == '18': magval = '0212' elif mag == '19': magval = '0213' elif mag == '20': magval = '0214' elif mag == '21': magval = '0215' elif mag == '22': magval = '0216' elif mag == '23': magval = '0217' elif mag == '24': magval = '0218' elif mag == '25': magval = '0219' elif mag == '26': magval = '021A' elif mag == '27': magval = '021B' elif mag == '28': magval = '021C' elif mag == '29': magval = '021D' elif mag == '30': magval = '021E' elif mag == '31': magval = '021F' elif mag == '32': magval = '0220' elif mag == '33': magval = '0221' elif mag == '34': magval = '0222' elif mag == '35': magval = '0223' elif mag == '36': magval = '0224' elif mag == '37': magval = '0225' elif mag == '38': magval = '0226' elif mag == '39': magval = '0227' elif mag == '40': magval = '0228' elif mag == '41': magval = '0229' elif mag == '42': magval = '022A' elif mag == '43': magval = '022B' elif mag == '44': magval = '022C' elif mag == '45': magval = '022D' elif mag == '46': magval = '022E' elif mag == '47': magval = '022F' elif mag == '48': magval = '0230' elif mag == '49': magval = '0231' elif mag == '50': magval = '0232' elif mag == '51': magval = '0233' elif mag == '52': magval = '0234' elif mag == '53': magval = '0235' elif mag == '54': magval = '0236' elif mag == '55': magval = '0237' elif mag == '56': magval = '0238' elif mag == '57': magval = '0239' elif mag == '58': magval = '023A' elif mag == '59': magval = '023B' elif mag == '60': magval = '023C' elif mag == '61': magval = '023D' elif mag == '62': magval = '023E' elif mag == '63': magval = '023F' elif mag == '64': magval = '0240' elif mag == '65': magval = '0241' else: magval = '0000' try: sdef = int(self.defbx.GetValue())*100 except: sdef= 0 sdef = hex(sdef)[2:].upper() while len(sdef) < 4: sdef = '0' + sdef sdef = sdef[:2] + sdef[2:] try: spow = int(self.powbx.GetValue())*100 except: spow = 0 spow = hex(spow)[2:].upper() while len(spow) < 4: spow = '0' + spow spow = spow[:2] + spow[2:] try: sdex = int(self.dexbx.GetValue())*100 except: sdex = 0 sdex = hex(sdex)[2:].upper() while len(sdex) < 4: sdex = '0' + sdex sdex = sdex[:2] + sdex[2:] try: smin = int(self.minbx.GetValue())*100 except: smin = 0 smin = hex(smin)[2:].upper() while len(smin) < 4: smin = '0' + smin smin = smin[:2] + smin[2:] col = self.colorbx.GetValue() clr=0 for item in self.color: if col == item: cl = self.color[clr] break clr = clr+1 clr = hex(clr)[2:].upper() if len(clr) < 2: clr = '0' + clr self.codebx.Remove(0,-1) try: self.codebx.AppendText(verifier + '\n') self.codebx.AppendText(slot1 + ' ' + magval + '0000\n') self.codebx.AppendText(slot2 + ' ' + sdef + spow + '\n') self.codebx.AppendText(slot3 + ' ' + sdex + smin + '\n') self.codebx.AppendText(slot4 + ' ' + 'FFFF00' + clr) except: self.codebx.AppendText('00000000 00000000\n'*4 + '00000000 00000000') app = wxPySimpleApp() frame = wxFrame(None,-1,"PyWeapon Mod", size=(500,240)) tabs = wxNotebook(frame,-1) wepmod=WepMod(tabs, -1) tabs.AddPage(wepmod, "Weapon") armormod=ArmorMod(tabs, -1) tabs.AddPage(armormod, "Armor") shieldmod=ShieldMod(tabs, -1) tabs.AddPage(shieldmod, "Shield") unitmod=UnitMod(tabs, -1) tabs.AddPage(unitmod, "Unit") techmod=TechMod(tabs, -1) tabs.AddPage(techmod, "Tech") itemmod=ItemMod(tabs, -1) tabs.AddPage(itemmod, "Item") othermod=OtherMod(tabs, -1) tabs.AddPage(othermod, "Other") magmod=MagMod(tabs, -1) tabs.AddPage(magmod, "Mag") frame.Show(1) app.MainLoop()