chinajade
Community Developer
- Joined
- Jul 20, 2010
- Messages
- 17,540
New Urgent fix please to apply on the file : "Quest Behaviors/Hooks/MountHook.cs"
Change the minimum gold required for "Expert riding skill + the flying mount" from 268 to 278, below are the two places to change:
Expert Riding Skill price = 237g 50s
The flying mount price = 40g
Total = 277g 50s, or better yet 278g
This is important for DK questing, because they start fresh in terms of gold, and the moment they hit 268g and the profile does the train flying check, the bot goes to buy the expert riding skill, and can't buy the flying mount (not enough money at that moment).
Code:private static Composite HellfireComposite { get { return new Decorator(r => Hellfire && Me.Level >= 60 && Me.Gold >= [U][B]278[/B][/U] && FlightLevel < 2, new Action(r => SetupTrainer())); } } private static Composite OldWordComposite { get { return new Decorator(r => OldWorld && ((Me.Level >= 20 && Me.Gold >= 5 && FlightLevel < 1) || (Me.Level >= 60 && Me.Gold >= [U][B]278[/B][/U] && FlightLevel < 2)), new Action(r => SetupTrainer())); } }
LOG PART FOR THE MINIMUM GOLD ISSUE:
Code:[05:27:43.132 D] Compiling expression 'HasQuest(10140) && IsQuestCompleted(10140)' @ line 2043 [05:27:43.132 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:43.132 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedCodeBehavior. [05:27:43.133 N] MountHook:True - zxbca [05:27:43.133 N] MountHook:Inserting hook - zxbca [05:27:43.135 D] Inserted new hook [Questbot_Main @0] 9f273971-0ff8-44b6-9158-e72f8b21954a [05:27:43.135 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedCodeBehavior. [05:27:43.135 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:43.135 D] Compiling expression 'Me.GetSkill(Styx.SkillLine.Riding).CurrentValue < 225 && (Me.Gold >= 268) && (Me.Level >= 60)' @ line 2055 [05:27:43.627 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:43.627 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:43.627 D] Compiling expression 'Me.GetSkill(Styx.SkillLine.Riding).CurrentValue < 225 && (Me.Level >= 60)' @ line 2074 [05:27:44.133 D] Compiling expression 'Me.GetSkill(Styx.SkillLine.Riding).CurrentValue < 225 && (Me.Level < 60)' @ line 2076 [05:27:44.597 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedCodeBehavior. [05:27:44.597 N] [Profile Message]: You are not level 60 yet; defaulting to non-flying protocols [05:27:44.597 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedCodeBehavior. [05:27:44.597 D] StyxWoW.AreaManager.CurrentGrindArea is null [05:27:44.635 N] [Singular] attention: Pull Distance set to 45 yds by Questing, Plug-in, Profile, or User [05:27:44.635 N] (Singular) YourCurrentTarget: changed to: (null) [05:27:44.658 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] Compiling expression '!HasQuest(10254) && !IsQuestCompleted(10254)' @ line 2081 [05:27:44.658 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] Compiling expression '!HasQuest(10055) && !IsQuestCompleted(10055)' @ line 2088 [05:27:44.658 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.658 D] Compiling expression '!HasQuest(10482) && !IsQuestCompleted(10482)' @ line 2095 [05:27:44.659 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.659 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.659 D] Compiling expression 'HasQuest(10141) && IsQuestCompleted(10141)' @ line 2099 [05:27:44.659 D] [QDBG] Done with forced behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.659 D] [QDBG] Starting behavior Bots.Quest.QuestOrder.ForcedIf. [05:27:44.659 D] Compiling expression 'HasQuest(10055) && !IsQuestCompleted(10055)' @ line 2106
Last Issue is that the training check is too early in the profile for DK characters, and below is a fix for both factions, at that precise moment DK already should have enough gold like 300g or more:
*For The Horde Part (TESTED AND WORKING CORRECTLY, the only little issue is with the MountHook.cs which tries to avoid mob when travelling to the trainer on ground mount, whenever a mob goes in combat with the bot, he runs back until the combat is left, this makes the bot zigzag for a few minutes with each mob encountered during the travel route)
ProfileName="[Fly][H - Quest] BC 58-70 [Kick].xml"
Code:<TurnIn Nav="Fly" QuestName="Blessings of the Ancients" QuestId="9785" TurnInName="Windcaller Blackhoof" TurnInId="18070" X="-234.2691" Y="5434.766" Z="22.42206" /> [U][B]<If Condition="Me.GetSkill(Styx.SkillLine.Riding).CurrentValue < 225" >[/B] [B] <CustomBehavior File="Hooks\MountHook" state="true"/>[/B] [B] </If>[/B][/U] <PickUp Nav="Fly" QuestName="Watcher Leesa'oh" QuestId="9697" GiverName="Lethyn Moonfire" GiverId="17834" X="-218.2539" Y="5495.695" Z="22.28442" />
*For The Alliance Part (NOT YET TESTED, will confirm on the next DK character to level, another issue is why in the alliance profile, there is additional checks and behaviors for the minimum gold amount of 268g + the behavior to go buy the skill and mount beside the "MountHook.cs" call ? This also needs to be fixed, or totally removed and replaced by this)
ProfileName="[Fly][A - Quest] BC 58-70 [Kick].xml"Code:<If Condition="HasQuest(9802) && IsQuestCompleted(9802)"> <CustomBehavior File="FlyTo" DestName="Cenarion Refuge Landing Spot" X="-216.1101" Y="5498.881" Z="21.79396" /> <TurnIn QuestName="Plants of Zangarmarsh" QuestId="9802" TurnInName="Lauranna Thar'well" TurnInId="17909" X="-215.5434" Y="5437.267" Z="21.4277" /> </If> [U][B]<If Condition="Me.GetSkill(Styx.SkillLine.Riding).CurrentValue < 225" >[/B] [B] <CustomBehavior File="Hooks\MountHook" state="true"/>[/B] [B] </If>[/B][/U] <PickUp QuestName="Watcher Leesa'oh" QuestId="9697" GiverName="Lethyn Moonfire" GiverId="17834" X="-181.3797" Y="5527.087" Z="29.40768" />
Hi again, Dmyoussef.
THANKS so much for all the details and the repair!
In v2851, we've folded your changes into the profiles.
Since my development machine is still out of commission, another team member is making the required changes to the hook quest behavior. We expect the changes to be available in the next Honorbuddy drop.
Thanks again for the the problem report, and fixes!
cheers,
chinajade
[size=-2]Ref: [post=1315402]Dmyoussef's problem report and fixes[/post][/size]