Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Py4GW.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from Py4GWCoreLib import Botting, Agent, GLOBAL_CACHE, Routines, ActionQueueManager, Player
from Py4GWCoreLib import Botting, Agent, GLOBAL_CACHE, Routines, ActionQueueManager, Player, Party
from Py4GWCoreLib.enums_src.Hero_enums import HeroType
import PyImGui, Py4GW
import os
BOT_NAME = "Killroy Stoneskin"
Expand All @@ -7,6 +8,36 @@

bot = Botting(BOT_NAME, config_stop_on_party_wipe=False)

def InviteHeroesForXP(bot: Botting) -> None:
"""
Invite specific heroes that need leveling (Koss, Dunkoro, Tahlkora, Melonni, Olias, AcolyteJin, AcolyteSousuke)
for XP from quest rewards.
"""
# Heroes that don't start at max level and need XP
leveling_heroes = [
HeroType.Koss,
HeroType.Dunkoro,
HeroType.Tahlkora,
HeroType.Melonni,
HeroType.Olias,
HeroType.AcolyteJin,
HeroType.AcolyteSousuke,
]

hero_ids = [int(hero.value) for hero in leveling_heroes]

bot.Party.LeaveParty()
bot.Wait.ForTime(1000)

for hero_id in hero_ids:
try:
Party.Heroes.AddHero(hero_id)
bot.Wait.ForTime(200)
except Exception:
continue

print(f"Invited leveling heroes for XP")

def bot_routine(bot: Botting) -> None:
KillroyMap(bot)
UnlockKillroy(bot)
Expand Down Expand Up @@ -34,8 +65,10 @@ def KillroyMap(bot: Botting) -> None:
bot.Wait.ForTime(3000)
bot.Party.Resign()
bot.Wait.UntilOnOutpost()
bot.States.AddCustomState(lambda: InviteHeroesForXP(bot), "Invite Heroes For XP")
bot.Move.XYAndDialog(17341.00, -4796.00, 0x835807)
bot.Map.TravelGH()
bot.Party.LeaveParty()
bot.Map.LeaveGH()
bot.Wait.ForMapLoad(target_map_id=644) # gunnars_hold_id
bot.States.JumpToStepName("[H]Killroy Stoneskin_1")
Expand Down
4 changes: 2 additions & 2 deletions Widgets/Automation/Helpers/Elite Skills/EliteSkillsCapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -3687,9 +3687,9 @@ def AdvancedHeroTeam():

# Define skill templates by hero type
skill_template_map = {
HeroType.Gwen: "OQhkAsC8gFKzJIHM9MdDBcaG4iB",
HeroType.Gwen: "OQhkAsB8gFK0LACYeGJAHUPVGwFD", #Ineptitude
HeroType.Norgu: "OQhkAoC8AGKyJM95gprBZARcxA",
HeroType.Vekk: "OgVDI8gsS5AnATPmOHgCAZAFBA",
HeroType.Vekk: "OgljgwMpZO0iwB54b4N0h74aM", #Thunderclap
HeroType.MasterOfWhispers: "OABDUshnSyBVBoBKgbhVVfCWCA",
HeroType.Olias: "OAhjQoGYIP3hhWVVaO5EeDTqNA",
HeroType.Ogden: "OwUUMsG/E4SNgbE3N3ETfQgZAMEA",
Expand Down
Loading