ScripterQQ 89 Posted May 19, 2018 Share Posted May 19, 2018 Hello, I would like to include a step that forces the character going to the trainer of his class. Now I know there is plugin trainlevel.cs, customizable with levels and so on, but if I'm grinding with quester Pulse > Level 10 to 15, and the plugin is set to 13 for trainer visit for example, it simply doesn't go, because I believe the bot is still finishing the 10 to 15 pulse so it ignores the plugin. Also I'm trying to do a Quester 1-80 that fits all classes so I can't put a Step > GoToAndInteractWithNpc because every class has different trainer, so my idea was between each pulse of zone level, force the bot to visit the trainer like it would do normally, I mean knowning exactly the class and knowing where is located his trainer (but this isn't a problem, I added npc in the profile). TLDR: Is there a "Go to trainers" button/C# code that fits all classes? Thanks ? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/ Share on other sites More sharing options...
Droidz 2738 Posted May 21, 2018 Share Posted May 21, 2018 Hello, I keep note, I'll add c# code to force to go to the trainer (and probably button tab tools also) ScripterQQ and tonycali 2 Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-43919 Share on other sites More sharing options...
Matenia 628 Posted June 6, 2018 Share Posted June 6, 2018 Can this be added, pretty please? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-44275 Share on other sites More sharing options...
xj3r3myx 2 Posted August 5, 2018 Share Posted August 5, 2018 I would also like this to be added. thank you. Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-46401 Share on other sites More sharing options...
Jensen- 25 Posted November 23, 2018 Share Posted November 23, 2018 any news? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-49484 Share on other sites More sharing options...
TheSmokie 242 Posted September 23, 2019 Share Posted September 23, 2019 Any news? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-55892 Share on other sites More sharing options...
Borox 0 Posted June 4, 2020 Share Posted June 4, 2020 Any News? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58610 Share on other sites More sharing options...
Matenia 628 Posted June 4, 2020 Share Posted June 4, 2020 This isn't ever going to happen. But you can just select a trainer type for your class from the NpcDB and go to it, then train shit. That's like 3 more lines of code than forcing it. Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58611 Share on other sites More sharing options...
Droidz 2738 Posted June 4, 2020 Share Posted June 4, 2020 Hi, I can do it for train new spells but it will be complicated for the professions Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58614 Share on other sites More sharing options...
Droidz 2738 Posted June 4, 2020 Share Posted June 4, 2020 it is ok? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58615 Share on other sites More sharing options...
Droidz 2738 Posted June 4, 2020 Share Posted June 4, 2020 wManager.Wow.Bot.States.Trainers.ForceGoClassTrainer(); Pudge and TheSmokie 1 1 Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58616 Share on other sites More sharing options...
sidalibns 1 Posted June 4, 2020 Share Posted June 4, 2020 4 hours ago, Droidz said: wManager.Wow.Bot.States.Trainers.ForceGoClassTrainer(); Hi, Can you tell me how this code works ? , because I need code to train after interacting with the trainer Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58618 Share on other sites More sharing options...
TheSmokie 242 Posted June 4, 2020 Share Posted June 4, 2020 You have to update your bot | wait for update. (I dont know if droidz pushed a update yet.) sidalibns 1 Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58619 Share on other sites More sharing options...
Matenia 628 Posted June 4, 2020 Share Posted June 4, 2020 Update hasn't been released yet. But then this will go to the class trainer in your database and force train all skills there. sidalibns 1 Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58620 Share on other sites More sharing options...
TheSmokie 242 Posted June 4, 2020 Share Posted June 4, 2020 @Droidz can you add a option to train a set list of skills? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58621 Share on other sites More sharing options...
Droidz 2738 Posted June 5, 2020 Share Posted June 5, 2020 14 hours ago, Smokie said: @Droidz can you add a option to train a set list of skills? no sorry, you can do it manually with your profile Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58627 Share on other sites More sharing options...
Pudge 24 Posted June 6, 2020 Share Posted June 6, 2020 Code like this should help // train skills by name // if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new robotManager.Helpful.Vector3(5813.14f, 475.205f, 658.7826f), 31238)) { wManager.Wow.Helpers.Usefuls.SelectGossipOption(wManager.Wow.Enums.GossipOptionsType.trainer); Thread.Sleep(1000); // spell 1 // if (!Lua.LuaDoString<bool>("if IsSpellKnown(54197) then return true end") && Lua.LuaDoString<bool>("for i=1,GetNumTrainerServices() do serviceName,_,serviceType,_=GetTrainerServiceInfo(i) if serviceName == 'Cold Weather Flying' and serviceType == 'available' then return true end end")) { Lua.LuaDoString("for i=1,GetNumTrainerServices() do serviceName,_,_,_=GetTrainerServiceInfo(i) if serviceName == 'Cold Weather Flying' then BuyTrainerService(i) end end"); Thread.Sleep(1000); } // spell 2 // if (!Lua.LuaDoString<bool>("if IsSpellKnown(33391) then return true end") && Lua.LuaDoString<bool>("for i=1,GetNumTrainerServices() do serviceName,_,serviceType,_=GetTrainerServiceInfo(i) if serviceName == 'Journeyman Riding' and serviceType == 'available' then return true end end")) { Lua.LuaDoString("for i=1,GetNumTrainerServices() do serviceName,_,_,_=GetTrainerServiceInfo(i) if serviceName == 'Journeyman Riding' then BuyTrainerService(i) end end"); Thread.Sleep(1000); } } Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58635 Share on other sites More sharing options...
TheSmokie 242 Posted June 6, 2020 Share Posted June 6, 2020 Or you can use toolbox and buy skills by name. Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58636 Share on other sites More sharing options...
TheSmokie 242 Posted June 13, 2020 Share Posted June 13, 2020 (edited) @Droidz The Force go Train code doesnt work at all, i tried adding npc to database | i tried making my own quester with pre training npc added with runcode " wManager.Wow.Bot.States.Trainers.ForceGoClassTrainer(); It doesnt go to trainer. Update : it runs if i use a runcode in quester, but its not letting me use the database for inside a plugin. Edited June 13, 2020 by Smokie Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58792 Share on other sites More sharing options...
Droidz 2738 Posted June 13, 2020 Share Posted June 13, 2020 you need to have trainer in npc db (or in your profile) (and wait ~15 seconds) Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58793 Share on other sites More sharing options...
TheSmokie 242 Posted June 13, 2020 Share Posted June 13, 2020 @Droidz I’ve added to data base Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58794 Share on other sites More sharing options...
Droidz 2738 Posted June 13, 2020 Share Posted June 13, 2020 option train new spell is enabled? Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58795 Share on other sites More sharing options...
TheSmokie 242 Posted June 13, 2020 Share Posted June 13, 2020 Yes, ofc. Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-58798 Share on other sites More sharing options...
TheSmokie 242 Posted October 23, 2020 Share Posted October 23, 2020 Just to help others, here is to go to a trainer and learn spell or spells. Custom Code > Quester : public static class Trainer_Learn { public static List<Tuple<string, uint>> SpellsList = new List<Tuple<string, uint>> { new Tuple<string, uint>("Charge", 5), new Tuple<string, uint>("Rend", 5), new Tuple<string, uint>("Thunder Clap", 5), new Tuple<string, uint>("Parry", 5), new Tuple<string, uint>("Battle Shout", 5), }; public static void LearningSpells(string SpellName) { Lua.LuaDoString(string.Format(@" for i=1,GetNumTrainerServices() do local name = GetTrainerServiceInfo(i) if (name == '{0}') then BuyTrainerService(i) end end ", SpellName.Replace("'", "\'"))); } public static void SpellINdex(Vector3 Vect, int npc, bool LearnAll) { if (LearnAll == true) { Trainer.TrainingSpell(); Thread.Sleep(100); } uint lastLevelCheck = 0; foreach (var SpellIndex in SpellsList) { var level = ObjectManager.Me.Level; if (level >= SpellIndex.Item2) { if (SpellManager.KnowSpell(SpellIndex.Item1.ToString()) == false) { while (GoToTask.ToPositionAndIntecractWithNpc(Vect, npc)) { Usefuls.SelectGossipOption(GossipOptionsType.trainer); Thread.Sleep(100); LearningSpells(SpellIndex.Item1); Thread.Sleep(100); } } } lastLevelCheck = level; } } } Useage : Trainer_Learn.SpellINdex(new Vector3(-639.344f, -4230.19f, 38.13411f), 3153, false); Link to comment https://wrobot.eu/forums/topic/9434-go-to-trainers-command-for-all-classes/#findComment-60308 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