quests quefaire (next)

This commit is contained in:
Amazed 2020-09-25 01:05:30 +02:00
parent 95dd894d83
commit 0ccf8ad720
2 changed files with 472 additions and 2570 deletions

View File

@ -105,22 +105,47 @@ class WynncraftCog(commands.Cog):
} }
default_global = { default_global = {
"log": True, "log": True,
"xp_guide": [ "grind_spots": [
# 1-10 {"minlevel": 1, "maxlevel": 10, "location": "-465, -1575"},
["Autour de Ragni (-718,-1580).", {"minlevel": 11, "maxlevel": 15, "location": "610, -1550"},
"Faire les métiers (fishing, mining, farming, et woodcutting) jusqu'au niveau 10", {"minlevel": 16, "maxlevel": 17, "location": "-600, -1200"},
"Around the Identifier, just a little East of Ragni (-551,-1578).", {"minlevel": 18, "maxlevel": 20, "location": "545, -1300"},
"Down the road from Ragni where there are two small Zombie ruins, one with level 1-3 mobs, and the other with level 5+ mobs, pick your position! (-547, -1568 and -530,-1624)", {"minlevel": 21, "maxlevel": 25, "location": "-30, -1980"},
"The Decrepit Sewers northwards of Ragni, it provides quite a hefty sum of experience and Emeralds! (-900,-1880)", {"minlevel": 26, "maxlevel": 30, "location": "640, -1735"},
"Inside the Nivla Woods, it is quite full of low level Spiders and Zombies (-200,-1600)."], {"minlevel": 31, "maxlevel": 35, "location": "1500, -1460"},
# 11-20 {"minlevel": 36, "maxlevel": 40, "location": "950, -2255"},
["Ancient Nemract's level 17 Colosseum (250,-1950).", {"minlevel": 41, "maxlevel": 45, "location": "-2120, -4720"},
"Do your quests.", {"minlevel": 46, "maxlevel": 50, "location": "-350, -280"},
"Ancient Nemract has a lot of level 17+ Skeletons, you should grind those for rapid experience.", {"minlevel": 51, "maxlevel": 55, "location": "-510, -840"},
"Farm Pigmen underground at (-610,-1580).", {"minlevel": 56, "maxlevel": 60, "location": "-620, -1000"},
"The level 12 mushroom cave on the Black Road between Ternaves and Detlas."], {"minlevel": 61, "maxlevel": 65, "location": "-500, -810"},
# 21-30 {"minlevel": 66, "maxlevel": 70, "location": "-1100, -5590"},
[""] {"minlevel": 71, "maxlevel": 75, "location": "-10, -4935"},
{"minlevel": 76, "maxlevel": 80, "location": "-900, -5600"},
{"minlevel": 81, "maxlevel": 85, "location": "410, -5085"},
{"minlevel": 86, "maxlevel": 90, "location": "780, -5370"},
{"minlevel": 91, "maxlevel": 95, "location": "1500, -5560"},
{"minlevel": 96, "maxlevel": 100, "location": "1400, -5060"},
{"minlevel": 101, "maxlevel": 106, "location": "1170, -4385"},
],
"dungeons": [
{"minlevel": 9, "name": "Decrepit Sewers", "url": "https://wynncraft.gamepedia.com/Decrepit_Sewers", "location": "-919, -1883"},
{"minlevel": 18, "name": "Infested Pit", "url": "https://wynncraft.gamepedia.com/Infested_Pit", "location": "-171, -1820"},
{"minlevel": 24, "name": "Lost Sanctuary", "url": "https://wynncraft.gamepedia.com/Lost_Sanctuary", "location": "-262, -1045"},
{"minlevel": 27, "name": "Underworld Crypt", "url": "https://wynncraft.gamepedia.com/Underworld_Crypt", "location": "227, -1950"},
{"minlevel": 36, "name": "Sand-Swept Tomb", "url": "https://wynncraft.gamepedia.com/Sand-Swept_Tomb", "location": "1409, -1830"},
{"minlevel": 45, "name": "Ice Barrows", "url": "https://wynncraft.gamepedia.com/Ice_Barrows", "location": "117, -667"},
{"minlevel": 54, "name": "Undergrowth Ruins", "url": "https://wynncraft.gamepedia.com/Undergrowth_Ruins", "location": "-660, -835"},
{"minlevel": 63, "name": "Galleon's Graveyard", "url": "https://wynncraft.gamepedia.com/Galleon%27s_Graveyard", "location": "-583, -3468"},
{"minlevel": 70, "name": "Corrupted Decrepit Sewers", "url": "https://wynncraft.gamepedia.com/Corrupted_Decrepit_Sewers", "location": "-860, -4900"},
{"minlevel": 74, "name": "Corrupted Infested Pit", "url": "https://wynncraft.gamepedia.com/Corrupted_Infested_Pit", "location": "-860, -4900"},
{"minlevel": 78, "name": "Corrupted Lost Sanctuary", "url": "https://wynncraft.gamepedia.com/Corrupted_Lost_Sanctuary", "location": "-860, -4900"},
{"minlevel": 82, "name": "Corrupted Underworld Crypt", "url": "https://wynncraft.gamepedia.com/Corrupted_Underworld_Crypt", "location": "-860, -4900"},
{"minlevel": 86, "name": "Corrupted Sand-Swept Tomb", "url": "https://wynncraft.gamepedia.com/Corrupted_Sand-Swept_Tomb", "location": "-860, -4900"},
{"minlevel": 90, "name": "Fallen Factory", "url": "https://wynncraft.gamepedia.com/Fallen_Factory", "location": "-1675, -2600"},
{"minlevel": 90, "name": "Corrupted Ice Barrows", "url": "https://wynncraft.gamepedia.com/Corrupted_Ice_Barrows", "location": "-860, -4900"},
{"minlevel": 94, "name": "Corrupted Undergrowth Ruins", "url": "https://wynncraft.gamepedia.com/Corrupted_Undergrowth_Ruins", "location": "-860, -4900"},
{"minlevel": 101, "name": "Eldritch Outlook", "url": "https://wynncraft.gamepedia.com/Eldritch_Outlook", "location": "-1310, -777"},
], ],
"quests": [ "quests": [
{"level": 1, "name": "King's Recruit", "url": "https://wynncraft.gamepedia.com/King%27s_Recruit"}, {"level": 1, "name": "King's Recruit", "url": "https://wynncraft.gamepedia.com/King%27s_Recruit"},
@ -285,12 +310,33 @@ class WynncraftCog(commands.Cog):
if quest["name"] in max_class["quests"]["list"]: if quest["name"] in max_class["quests"]["list"]:
continue # player has already done this quest continue # player has already done this quest
if quest["level"] < max_class["professions"]["combat"]["level"] and max_class["professions"]["combat"]["level"] - quest["level"] < 10: if quest["level"] <= max_class["professions"]["combat"]["level"] and max_class["professions"]["combat"]["level"] - quest["level"] < 10:
# quest is doable # quest is doable
await ctx.send(":dizzy: Woosh! Tu peux faire la quête **%s** (%s)" % (quest["name"], quest["url"])) await ctx.send(":dizzy: Woosh! Tu peux faire la quête **%s** (%s)" % (quest["name"], quest["url"]))
return return
await ctx.send(":x: impossible de t'aider, je ne trouve plus de quêtes pour toi :(") # check for dungeons and grind spots
dungeons = await self.config.dungeons()
dungeons.reverse()
grind_spots = await self.config.grind_spots()
grind_spots.reverse()
hints = []
for dungeon in dungeons:
if max_class["professions"]["combat"]["level"] >= dungeon["minlevel"] and max_class["professions"]["combat"]["level"] - dungeon["minlevel"] < 10:
hints.append(":cyclone: Tu peux faire le donjon **%s** aux coordonnées %s (%s)" % (dungeon["name"], dungeon["location"], dungeon["url"]))
break
for grind_spot in grind_spots:
if grind_spot["minlevel"] <= max_class["professions"]["combat"]["level"] <= grind_spot["maxlevel"]:
hints.append(":star: Tu peux grinder aux coordonnées %s jusqu'au niveau %s" % (grind_spot["location"], grind_spot["maxlevel"]))
break
if hints:
await ctx.send(":dizzy: Woosh! Voici comment tu peux continuer ton aventure :\n%s" % "\n\t".join(hints))
else:
await ctx.send(":x: je sais pas comment t'aider :(")
@commands.command() @commands.command()
@checks.admin_or_permissions(manage_guild=True) @checks.admin_or_permissions(manage_guild=True)

2960
temp.py

File diff suppressed because it is too large Load Diff