Mlarssa
-
Posts
16 -
Joined
-
Last visited
Reputation Activity
-
Mlarssa got a reaction from Timadance in Use hearthstone when bags are full
Hi,
can anyone tell me how to code the following?
When bag are full use hearthstone to go to Town.
-
Mlarssa got a reaction from fragik in Use hearthstone
Hi,
I'm pretty new to this but I have managed to do some good questing profiles. Now I want to add the feature to hearthstone but can't get it to work.
Do you have time to describe exactly how I use the code in the easy quest profile maker?
-
-
Mlarssa reacted to Droidz in Use hearthstone when bags are full
Hello, use plugin like HearthstoneToGoToTown.cs (not tested):
using System; using System.ComponentModel; using System.Threading; using System.Windows.Forms; using robotManager.Events; using robotManager.FiniteStateMachine; using robotManager.Helpful; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { FiniteStateMachineEvents.OnRunState += FiniteStateMachineEventsOnOnRunState; Logging.Write("[HearthstoneToGoToTown] Loadded."); } public void Dispose() { Logging.Write("[HearthstoneToGoToTown] Disposed."); } public void Settings() { MessageBox.Show("[HearthstoneToGoToTown] No settings for this plugin."); } private void FiniteStateMachineEventsOnOnRunState(Engine engine, State state, CancelEventArgs cancelable) { try { if (string.IsNullOrWhiteSpace(state.DisplayName) || state.DisplayName != "To Town") return; Logging.WriteDebug("[HearthstoneToGoToTown] Use Hearthstone."); var o = wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported; wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false; MovementManager.StopMove(); Thread.Sleep(Usefuls.Latency + 150); Lua.LuaDoString("local itemName, _, _, _, _, _, _, _ = GetItemInfo(6948); RunMacroText('/use ' .. itemName);"); Thread.Sleep(Usefuls.Latency + 500); if (ObjectManager.Me.IsCast) { Usefuls.WaitIsCasting(); Thread.Sleep(Usefuls.Latency + 10000); // wait load screen } wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = o; } catch (Exception e) { Logging.WriteError("[HearthstoneToGoToTown] " + e); } } }
-
Mlarssa reacted to Droidz in Is complete condition: Get item
Hello,
If you want complete quest when you don't have item in bag (1234 is item id):
return wManager.Wow.Helpers.ItemsManager.GetItemCountByIdLUA(1234) <= 0; Or if you want complete quest when you have item in bag (1234 is item id):
return wManager.Wow.Helpers.ItemsManager.GetItemCountByIdLUA(1234) >= 3; (replace 3 by minimun item count)
-
Mlarssa reacted to Eldunar in FollowPath "Can Condition"
Ive had it before, using a follow path is how I solved it as well. I think I went for a simple solution by returning a Quest.hasquest(questid) && !Quest.isObjectiveComplete(1, questId) as can condition. So something similar should do the trick, written from phone il check it again on pc later on.
-
Mlarssa reacted to Skalikas in Get flight path and use hearthstone
1.
<QuestsSorted Action="While" NameClass="ObjectManager.Me.Position.DistanceTo2D(new Vector3(-1831.95f, 5298.3f, -12.42793f)) < 300" /> <QuestsSorted Action="RunCode" NameClass="var position = new Vector3(-1831.95f, 5298.3f, -12.42793f); int npcEntryId = 18940; if (!ObjectManager.Me.IsOnTaxi) { if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId)) { Usefuls.SelectGossipOption(GossipOptionsType.taxi); Lua.RunMacroText("/click TaxiButton1"); } }" /> <QuestsSorted Action="EndWhile" NameClass="" /> Vector3 - Flight master
npcEntryId - FLight master Id
'TaxiButton1' - name of the location button
2.
<QuestsSorted Action="RunLuaCode" NameClass="local itemName, _, _, _, _, _, _, _ = GetItemInfo(6948);
 RunMacroText("/use " .. itemName);" /> <QuestsSorted Action="Wait" NameClass="15000" /> 3.
<QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(599.04f, -4928.18f, 17.88458f), 23731, 2, false)" /> <QuestsSorted Action="RunMacroLua" NameClass="/click StaticPopup1Button1" /> Vector3 - Inkeeper location
23731 - Inkeeper Id
2 - set home option number