Jump to content

Recommended Posts

12 hours ago, naviomg said:

wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcid);
Lua.LuaDoString("GossipTitleButton1:Click();");
Lua.LuaDoString("ClassTrainerSkill1:Click();");

run this as RunCode

Thank you, with this code he learn all skills from trainer right?

Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48094
Share on other sites

On 9/30/2018 at 1:08 AM, naviomg said:

wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcid);
Lua.LuaDoString("GossipTitleButton1:Click();");
Lua.LuaDoString("ClassTrainerSkill1:Click();");

run this as RunCode

dont work

wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(-8796.12f, 613.003f, 96.77357f,11867);
Lua.LuaDoString("GossipTitleButton1:Click();");
Lua.LuaDoString("ClassTrainerSkill1:Click();");

Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48132
Share on other sites

if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new robotManager.Helpful.Vector3(-1150.26, 52.8149, 144.8369), 7089)) // replace 1, 2, 3 by position, and 12345 by npc entry id
 { 
 wManager.Wow.Helpers.Usefuls.SelectGossipOption(wManager.Wow.Enums.GossipOptionsType.trainer);
 wManager.Wow.Helpers.Trainer.TrainingSpell();
}

use this change cords and npc id

Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48134
Share on other sites

1 minute ago, Jensen- said:

if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new robotManager.Helpful.Vector3(-1150.26, 52.8149, 144.8369), 7089)) // replace 1, 2, 3 by position, and 12345 by npc entry id
 { 
 wManager.Wow.Helpers.Usefuls.SelectGossipOption(wManager.Wow.Enums.GossipOptionsType.trainer);
 wManager.Wow.Helpers.Trainer.TrainingSpell();
}

use this change cords and npc id

As Runcode? I use easy quest editor

Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48135
Share on other sites

This was my code i used in my Gnome profile. It basically spams the train button, as there is usually 3-4 things that need training on some classes.

What your seeing is a Double Redundancy. The bot will go to Position, click trainer, spam the staticpopupbutton1  4x. Then he will redo it using a different code. I found this to be more efficient, in case the bot skips a step.

 

    <QuestsSorted Action="If" NameClass="ObjectManager.Me.Level >= 10 && ObjectManager.Me.Level <=13 && (wManager.Wow.Helpers.Usefuls.MapZoneName == "Stormwind City")" />
    <QuestsSorted Action="RunCode" NameClass="var position = new Vector3(-8796.12f, 613.003f, 96.77357f);
int npcEntryId = 11867; 
wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId);" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8796.12f, 613.003f, 96.77357f), 11867);" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("ClassTrainerTrainButton:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="EndIf" NameClass="" />

 

Edited by Andoido
Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48227
Share on other sites

15 hours ago, Andoido said:

This was my code i used in my Gnome profile. It basically spams the train button, as there is usually 3-4 things that need training on some classes.

What your seeing is a Double Redundancy. The bot will go to Position, click trainer, spam the staticpopupbutton1  4x. Then he will redo it using a different code. I found this to be more efficient, in case the bot skips a step.

 


    <QuestsSorted Action="If" NameClass="ObjectManager.Me.Level >= 10 && ObjectManager.Me.Level <=13 && (wManager.Wow.Helpers.Usefuls.MapZoneName == "Stormwind City")" />
    <QuestsSorted Action="RunCode" NameClass="var position = new Vector3(-8796.12f, 613.003f, 96.77357f);
int npcEntryId = 11867; 
wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId);" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8796.12f, 613.003f, 96.77357f), 11867);" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("ClassTrainerTrainButton:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup1Button1:Click();");" />
    <QuestsSorted Action="EndIf" NameClass="" />

 

thanks, if 1 button crossbow, 2 button swords i need only swords, then Lua.LuaDoString("StaticPopup1Button2:Click(); ?

Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48246
Share on other sites

This actually looks more correct.. staticpopup 2, button 1 =- train button.

 

    <QuestsSorted Action="If" NameClass="ObjectManager.Me.Level >= 10 && ObjectManager.Me.Level <=13 && (wManager.Wow.Helpers.Usefuls.MapZoneName == "Stormwind City")" />
    <QuestsSorted Action="RunCode" NameClass="var position = new Vector3(-8796.12f, 613.003f, 96.77357f);
int npcEntryId = 11867; 
wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId);" /> 
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup2Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup2Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup2Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup2Button1:Click();");" />
    <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8796.12f, 613.003f, 96.77357f), 11867);" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("GossipTitleButton1:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("ClassTrainerTrainButton:Click();");" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunCode" NameClass="Lua.LuaDoString("StaticPopup2Button1:Click();");" />

 

Edited by Andoido
Link to comment
https://wrobot.eu/forums/topic/10184-traning-weapon/#findComment-48250
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...