Jump to content

79135

WRobot user
  • Posts

    336
  • Joined

  • Last visited

Everything posted by 79135

  1. Hi, List<int> list= Lua.LuaDoString<List<int>>("local s={}; for i = 1,17 do _,s=GetInventoryItemLink('player', i):match('item:(%d+):(%d+)') end return s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8]"); How to return all lua array withoun spam(s[1]..s[2]..s[n]) after return?
  2. I use Party.GetParty().Count(o => o.GetDistance < 100). For party leader result = 4 if all pary (5 member) is near. For not leader result = 5 if all pary (5 member) is near.
  3. wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(123456).Count > 0 - yes for big instance dont work, tryed /run print(C_Scenario.GetCriteriaInfo()) - nothing print (WoW 3.3.5). I need check if party (LFG) killed last boss and can to leave without dungeon desertire. And still one question - What is do it function? "GetLFGInfoLocal" ?
  4. How to check if random dungeon is done? (last boss is killed). if(Lua.LuaDoString<bool>("if LFDungeonIsDone then return 1 end") ) //it is dont work return true;
  5. I mean How will bot to know what happens this: [D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.MovementLoop already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Grinding already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it the main thing here is to clarify to the bot that this error occurred and after that close the game
  6. Thanks. I think what the code help to me, but dont.. I use it: EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) => { if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_DEAD) robotManager.Products.Products.ProductRestart(); }; Sometimes happens next: [D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.MovementLoop already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Grinding already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it I tried use next code: robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log) { if (log != null) { if (log.Text.Contains("[FSM] State wManager.Wow.Bot.States.Idle already launched, ignore i")) Lua.LuaDoString("ForceQuit()");//close wow } }; But dont help. How to restart a bot if this error appears?
  7. I badly understand, plaese write it IN DETAIL like: var p = Quest.QuesterCurrentContext.Profile as Quester.Profile.QuesterProfile; if (p != null) { for (int i = 0; i < p.QuestsSorted.Count; i++) { if (p.QuestsSorted.Action == wManager.Wow.Class.QuestAction.StepName && p.QuestsSorted.NameClass == stepName) { Quest.QuesterCurrentContext.CurrentStep = i; break; } } } I've the step TEST type Follow Path. In the Steps, Action list: [0] Pulse > TEST [1] RunCode > here need the code for reset TEST step
  8. How can i callout the command with C#? Write the code please.
  9. Im using 1 relogger for a two different wow versions and sometimes have bug when relogger try to start a profile. Windows 10. On another computers, where i use 1 relogger for an one wow version, work all fine.
  10. [E] 01:05:49 - RunReloggerTask > Run(...)#2: System.Threading.SynchronizationLockException: Для не синхронизированного блока кода вызван метод синхронизации объектов. в Relogger.Classes.RunReloggerTask.Run(ReloggerProfile parent) [E] 01:12:05 - ReloggerProfile > KillWowProcess(): System.ComponentModel.Win32Exception (0x80004005): Отказано в доступе в System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) в System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) в System.Diagnostics.Process.Kill() в Relogger.Classes.ReloggerProfile.KillWowProcess()
  11. [E] 21:59:55 - Quester.Bot > Pulse(): System.IO.IOException: Процесс не может получить доступ к файлу "D:\BOTs\WRobot 3.3.5\Profiles\Quester\Cache\A.xml.cs", так как этот файл используется другим процессом. в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) в System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) в System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) в System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) в System.IO.File.WriteAllText(String path, String contents) в Quester.Bot.Bot.Pulse(Boolean loadSettingsProfile, String profile) 21:59:55 - [Quester] Failed to start After use the thread: Thread startStop = new Thread(() => { robotManager.Products.Products.ProductStop(); Thread.Sleep(1000); robotManager.Products.Products.ProductStart(); }); startStop.Start(); Thread.Sleep(3000); startStop.Abort();
  12. How to check what a flight master is active in the list at the char? if (Taxi.TaxiList.Nodes.All(o => o.Name != "AAA")) { flyMasterEntry = 2941; flyMasterPosition = new Vector3(-6555, -1165, 310); nodeName = "AAA"; } The code only add in to data base of flight masters, but without mark of active.
  13. Any know how to get value of armor from item? In format like: Lua.LuaDoString<string>(" _, _, _, _, _, _, i = GetItemInfo(GetInventoryItemLink('player', 12)) return i")
  14. How to autoclear log files in folder of wrobot ?
  15. Hello, i very need it for druid, becouse druid have 3 spec (rdd/mdd/heal). when i lvling i use mdd, but when i reach 80 lvl i use rdd, range 5 yards in FC, RDD constantly starting run to target... Do you can add a new function in FC editor for change of range? I dont want create clone of fight class with range 30 yards.
×
×
  • Create New...