Gargaroth95 1 Posted May 9, 2019 Share Posted May 9, 2019 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? Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/ Share on other sites More sharing options...
Droidz 2742 Posted May 9, 2019 Share Posted May 9, 2019 Hello, use SkillLine https://wrobot.eu/forums/topic/10723-quest-profile-code-snippets-continued-updated/ (you can also use lua Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53441 Share on other sites More sharing options...
Gargaroth95 1 Posted May 9, 2019 Author Share Posted May 9, 2019 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="" /> Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53442 Share on other sites More sharing options...
Gargaroth95 1 Posted May 9, 2019 Author Share Posted May 9, 2019 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="" /> Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53443 Share on other sites More sharing options...
TheSmokie 242 Posted May 9, 2019 Share Posted May 9, 2019 Skill.GetValue(SkillLine.Cooking) remove GetValue and change it to Has and add ! before the S in skill. Enjoy Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53446 Share on other sites More sharing options...
Gargaroth95 1 Posted May 9, 2019 Author Share Posted May 9, 2019 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. Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53447 Share on other sites More sharing options...
TheSmokie 242 Posted May 9, 2019 Share Posted May 9, 2019 Good Link to comment https://wrobot.eu/forums/topic/11187-check-if-know-profession-skill/#findComment-53448 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now