May 9, 20196 yr Hello ? Is it possible to check if the character know a specific profession skill? for example: !wManager.Wow.Helpers.SpellManager.KnowSpell(2698) (Recipe Cooked Claw) https://db.rising-gods.de/?item=2698#sold-by-npc It works fine for class spells but not for professions skills. Can someone help me there please?
May 9, 20196 yr Hello, use SkillLine https://wrobot.eu/forums/topic/10723-quest-profile-code-snippets-continued-updated/ (you can also use lua
May 9, 20196 yr Author Thank you for your response. I already use SkillLine for the While Conditions. Is there another option to check if the char knows the profession skill? Because if I restart the bot the char goes to the trainer until the while condition is finished. <QuestsSorted Action="While" NameClass="Skill.GetValue(SkillLine.Cooking) < 225" /> <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("Raptor Flesh");" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage("|cFFFFCE2ETramBot|r Farm Raptor Flesh")" /> <QuestsSorted Action="Pulse" NameClass="RaptorFlesh" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage("|cFFFFCE2ETramBot|r Learn Skill Roast Raptor")" /> <QuestsSorted Action="Pulse" NameClass="BuyRecipeRoastRaptor" /> <QuestsSorted Action="RunMacroLua" NameClass="/use Recipe: Roast Raptor" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage("|cFFFFCE2ETramBot|r Cook Roast Raptor")" /> <QuestsSorted Action="Pulse" NameClass="Roast Raptor" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.States.ToTown.ForceToTown = true;" /> <QuestsSorted Action="EndWhile" NameClass="" />
May 9, 20196 yr Author For example this works fine. <QuestsSorted Action="While" NameClass="!wManager.Wow.Helpers.SpellManager.KnowSpell(18260)" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage("|cFFFFCE2ETramBot|r Learn Artisan Cook")" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8610.9, 364.64, 99.62309), 5482, 1, false);" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyTrainerSkill("Artisan Cook")" /> <QuestsSorted Action="RunCode" NameClass="SpellManager.UpdateSpellBook();" /> <QuestsSorted Action="EndWhile" NameClass="" />
May 9, 20196 yr Skill.GetValue(SkillLine.Cooking) remove GetValue and change it to Has and add ! before the S in skill. Enjoy
May 9, 20196 yr Author Thank you. But does it work for recipes for a profession? I got this codes for the beginning and it works fine. <QuestsSorted Action="While" NameClass="!Skill.Has(SkillLine.Cooking)" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage("|cFFFFCE2ETramBot|r Learn Apprentice Cooking")" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-9466.99, -4.53396, 56.9501), 1430, 1, false);" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyTrainerSkill("Apprentice Cook")" /> <QuestsSorted Action="RunCode" NameClass="SpellManager.UpdateSpellBook();" /> <QuestsSorted Action="EndWhile" NameClass="" /> Do you mean something like this? <QuestsSorted Action="While" NameClass="!Skill.Has("Cooking", "Roast Raptor")" /> <QuestsSorted Action="EndWhile" NameClass="" /> or <QuestsSorted Action="While" NameClass="!Skill.Has("Roast Raptor")" /> <QuestsSorted Action="EndWhile" NameClass="" /> Unfortunately both codes are not working.
Create an account or sign in to comment