async def dung(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return embedVar = discord.Embed(title='Dungeons', description='', color=0x00ff00) pclass, secrets_found, pages_found, completed_journals, boss_col = zDungeonStuff.getDungeonData( username) embedVar.add_field(name='**Basic Details**', value='```\nSelected Class: %s\nSecrets Found: %s```' % (str(pclass), str(secrets_found)), inline=False) embedVar.add_field( name='**Journal Details**', value='```\nPages Found: %s\nJournals Completed: %s```' % (str(pages_found), str(completed_journals)), inline=False) estr = '```\nBonzo: %s\nScarf: %s\nProfessor: %s\nThorn: %s\nLivid: %s\nPlaceholder: %s\nNecron: %s\n```' % ( boss_col[0], boss_col[1], boss_col[2], boss_col[3], boss_col[4], boss_col[5], boss_col[6]) embedVar.add_field(name='**Boss Collections**', value=estr, inline=False) await ctx.send(embed=embedVar)
async def mt(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return mtali = zMissingTalismans.getMissingTalismans(username) embedVar = discord.Embed(title='Missing Talismans', description='', color=0x00ff00) mtalis = '' for i in range(len(mtali)): mtalis = mtalis + mtali[i] + '\n' embedVar.add_field(name='**Missing Talismans**', value=mtalis, inline=False) await ctx.send(embed=embedVar)
async def mp(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return pets = zPetStuff.getMissingPets(username) embedVar = discord.Embed(title='Pets', description='', color=0x00ff00) estr = '' for i in pets: estr = estr + str(i) + '\n' embedVar.add_field(name='**Pets**', value='```\n' + estr + '```', inline=False) await ctx.send(embed=embedVar)
async def armor(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return current_armor = zSBDetails.getCurrentArmor(username) embedVar = discord.Embed(title='Current Armor', description='', color=0x00ff00) boots = current_armor[0] leggings = current_armor[1] chestplate = current_armor[2] helmet = current_armor[3] embedVar.add_field( name='**Current Armor: **', value= '**Helmet: **%s\n**Chestplate: **%s\n**Leggings: **%s\n**Boots: **%s' % (helmet, chestplate, leggings, boots), inline=False) await ctx.send(embed=embedVar)
async def bank(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('Enter a Valid Username and Try Again...') return bank_balance, purse_balance = zSBStalk.getBankBalance(mcuuid) if bank_balance == 'no': await ctx.send('Bank API is Switched Off for this Player') return embedVar = discord.Embed(title='Bank Details', description='', color=0x00ff00) embedVar.add_field(name='Bank Balance: ', value='$%s' % ("{:,}".format(bank_balance)), inline=True) embedVar.add_field(name='Purse Balance: ', value='$%s' % ("{:,}".format(purse_balance)), inline=True) await ctx.send(embed=embedVar)
async def skills(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('Enter a Valid Username and Try Again...') return names = [ '**Combat**', '**Foraging**', '**Farming**', '**Enchanting**', '**Alchemy**', '**Mining**', '**Fishing**' ] levels, expremaining, exptoup = zSBStalk.getSkills(mcuuid) skill_avg = zSBStalk.findSkillAverage(mcuuid) embedVar = discord.Embed( title='Skill Details', description='', color=0x00ff00) # Make this Look Better In the Future embedVar.add_field(name='**Skill Average**', value=skill_avg, inline=False) for i in range(len(levels)): embedVar.add_field( name=names[i], value='Level: %d \n Progress Percent: %d' % (levels[i], round(expremaining[i] * 100 / exptoup[i], 2)) + f'%' + '\n %s / %s' % (zNumberFormat.human_format( expremaining[i]), zNumberFormat.human_format(exptoup[i])), inline=True) await ctx.send(embed=embedVar)
async def floors(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return full_data = zDungeonStuff.getFloorData(username) e = full_data[0] one = full_data[1] two = full_data[2] three = full_data[3] four = full_data[4] five = full_data[5] six = full_data[6] seven = full_data[7] embedVar = discord.Embed(title='Best Scores', description='', color=0x00ff00) embedVar.add_field(name='**Entrance**', value=zDungeonStuff.makeString(e), inline=False) embedVar.add_field(name='**Floor 1**', value=zDungeonStuff.makeString(one), inline=False) embedVar.add_field(name='**Floor 2**', value=zDungeonStuff.makeString(two), inline=False) embedVar.add_field(name='**Floor 3**', value=zDungeonStuff.makeString(three), inline=False) embedVar.add_field(name='**Floor 4**', value=zDungeonStuff.makeString(four), inline=False) embedVar.add_field(name='**Floor 5**', value=zDungeonStuff.makeString(five), inline=False) embedVar.add_field(name='**Floor 6**', value=zDungeonStuff.makeString(six), inline=False) embedVar.add_field(name='**Floor 7**', value=zDungeonStuff.makeString(seven), inline=False) await ctx.send(embed=embedVar)
async def allStats(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) if mcuuid == 'no': await ctx.send('No Person Exists With That Username') return stats = zAllSBStats.maincommand(username) # [health, defence, effective_health, strength, speed, intelligence, sea_creature_chance, magic_find, pet_luck, ferocity, ability_damage, mining_speed, mining_fortune, farming_fortune, foraging_fortune] health = stats[0] defence = stats[1] effective_health = stats[2] strength = stats[3] speed = stats[4] intelligence = stats[5] sea_creature_chance = stats[6] magic_find = stats[7] pet_luck = stats[8] ferocity = stats[9] ability_damage = stats[10] mining_speed = stats[11] mining_fortune = stats[12] farming_fortune = stats[13] foraging_fortune = stats[14] collected = stats[15] completed = stats[16] percentage = stats[17] embedVar = discord.Embed(title='Stats', description='', color=0x00ff00) embedVar.add_field( name=':shield: **Main Stats**', value= '```\nHealth: %s\nDefence: %s\nEffective Health: %s\nStrength: %s\nSpeed: %s\nIntelligence: %s\nSea Creature Chance: %s\nMagic Find: %s\nPet Luck: %s\nFerocity: %s\nAbility Damage: %s\nMining Speed: %s\nMining Fortune: %s\nFarming Fortune: %s\nForaging Fortune: %s\n```' % (health, defence, effective_health, strength, speed, intelligence, sea_creature_chance, magic_find, pet_luck, ferocity, ability_damage, mining_speed, mining_fortune, farming_fortune, foraging_fortune), inline=False) embedVar.add_field( name=':crossed_swords: **Fairy Souls**', value='```\nCollected: %s\nTotal: %s\nProgress: %s\n```' % (collected, completed, percentage), inline=False) await ctx.send(embed=embedVar)
async def profiles(ctx, username=''): if username == '': await ctx.send('Enter a Username and Try Again...') return mcuuid = zSBStalk.getUUID(username) profs = zSBStalk.getProfileCuteNames(mcuuid) embedVar = discord.Embed(title='Profiles', description='', color=0x00ff00) for i in range(len(profs)): embedVar.add_field(name='Profile %d' % (i + 1), value=profs[i], inline=False) await ctx.send(embed=embedVar)