Jump to content

libai

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by libai

  1. Thank you for your detailed and patient explanation.
  2. When the boss is casting AOE damage, in order to avoid deep damage, I hope the robot can follow a path or auto find a way to reach a safe area. I made a plugin, but it not works, it only move very little little step then keep fighting without moving to the right place,. can you help me ,thanks. public void OnFightLoop(WoWUnit unit,CancelEventArgs cancelable) { foreach(var boss in Bosses){ if(unit.Name == boss && unit.IsCast && unit.InCombat) { Logging.Write("Boss is casting,run now! ); RunWhenBossCastAOE(unit); } } } public void RunWhenBossCastAOE(WoWUnit boss) { switch (boss.Entry) { case 28586: { // General Bjarngrim var x = ObjectManager.Me.Position.X; var y = ObjectManager.Me.Position.Y; var z = ObjectManager.Me.Position.Z; List<Vector3>pathList = new List<Vector3>(); for(int i = 0;i<20;i++) { var newX = x; var newY = y + i; var newZ = z; Vector3 tmpPos = new Vector3(newX,newY,newZ); pathList.Add(tmpPos); } GoToSafePosition(pathList); break; } } } public bool GoToSafePosition(List<Vector3> pathList) { wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = true; MovementManager.Go(pathList); wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = false; return true; }
  3. the temp file is a middle state will be delete quickly , i try to save it after created and before it gone, but failed....
  4. There is no OnRunningLoopState events ,do you change it to OnRunState? FiniteStateMachineEvents Members (wrobot.eu)
  5. yes, My client is 1.12.1 too. And i found wManager.Wow.Helpers.ItemsManager.IsEquippableItem not work on vanilla. it says IsEquippableItem is not in ItemsManager. var bagItems = wManager.Wow.Helpers.Bag.GetBagItem(); foreach (WoWItem item in bagItems) { if (item.IsEquippableItem) { // here IsEquippableItem is not Exist in vanilla, The Wrobot version is 2.8.0
  6. I have tried on MacOS with WineSkin (the WOW works well but WRobot). It seams like WRobot write by C#, which version of C# it supported? I do run some code like this,but it failed. var hello = "hello world"; Lua.LuaDoString($@" local index = string.find(hello,h"); "); how to pass it to lua?thanks.
  7. sorry for my mistyped. I mean i want my rogue stay in instance only pick pocket on each target, don't attack any one by active or passive . i am not just simply ignore combat, i need a path or solution to avoid get into combat at all time. (because the skill pick pocket of rogue need stealthy state).
  8. Is it possible rouge only pick pocket in instance without fight any mobs. i try to do it,but i meet some troubles as follow: 1. when i use [Followpath] in a Quester ,the character in stealth state only follow the path without select any target , no pick pocket skill cast at all (is it possible to add other action like cast some skill while moving?) 2. i use [overridePulseCsharpCode] in a Quester, var zone = wManager.Wow.Helpers.Usefuls.MapZoneName; Logging.Write(zone); wManager.wManagerSetting.CurrentSetting.MaxUnitsNear = 100; var mobs = ObjectManager.GetObjectWoWUnit().Where(o=>o.IsAttackable).OrderBy(o=>o.GetDistance); var count = mobs.Count(); Logging.Write("我的位置"+ObjectManager.Me.Position); Logging.Write("周围怪物数量=>"+count.ToString()); foreach(var target in mobs){ Thread.Sleep(3000); if (!ObjectManager.Me.HaveBuff("Stealth")) { Lua.RunMacroText("/cast !Stealth"); } if(ObjectManager.Me.InCombat){ Lua.RunMacroText("/cast Varnish"); } if(target.GetMove==false) { Logging.Write("固定=>"+target.Name+target.Guid +"距离"+ target.GetDistance.ToString()); Lua.RunMacroText("/target "+target.Name); wManager.Wow.Bot.Tasks.GoToTask.ToPosition(target.Position); if(target.GetDistance >= 5 && target.GetDistance <=10 ){ Lua.RunMacroText("/cast Sap"); } // if(ObjectManager.Me.Position.DistanceTo(target.Position) < 5) { Thread.Sleep(1000); Lua.RunMacroText("/cast pick pocket"); Thread.Sleep(1000); } } //else{ // Logging.Write("移动=>"+target.Name+target.Guid +"距离"+ target.GetDistance.ToString()); //} Logging.Write("地址=>"+ target.Position); } return true; the bot meet a new trouble It went straight ahead, and before it reached the end, it met the monster on the road, and then entered the battle. so,any one can help me ?
×
×
  • Create New...