Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

Droidz

Administrators
  • Content Count

    10585
  • Joined

  • Last visited


Reputation Activity

  1. Thanks
    Droidz got a reaction from ffs in Vanilla WoW pathing is super bugged   
    Hello,
     
  2. Like
    Droidz got a reaction from Beast in Run Macro with C#   
    Hello, to run lua macro use this c# code:
    wManager.Wow.Helpers.Lua.RunMacroText("/cast SpelName"); And to fix your problem with intellisense add in project references "wManager.dll" and "robotManager.dll".
  3. Thanks
    Droidz got a reaction from The Smokie. in Product (bot) sample project (developer only)   
    It is Visual studio 2015 project (you need to add in project references "robotManager.dll" and "wManager.dll", you can found in in folder "WRobot\Bin\") (base product file is "Main.cs").
    Grinder.zip
  4. Like
    Droidz got a reaction from thxgod1 in activate/deactive plugin by runcode   
    Hello, https://wrobot.eu/forums/topic/5417-change-fight-classload-pluginchanging-the-type-of-the-bot-in-questing-profile-using-code/?do=findComment&comment=25072
  5. Like
    Droidz got a reaction from Garub in [Wotlk] Looking for WoW API   
    https://web.archive.org/web/20100726112636/http://wowprogramming.com/docs/api_categories
  6. Thanks
    Droidz got a reaction from The Smokie. in Force move to position?   
    Hello, use code like (not tested, run this code one time):
    wManager.Events.FightEvents.OnFightLoop += delegate(WoWUnit unit, CancelEventArgs cancelable) { if (your procs condition) { var toPosition = new Vector3(1, 2, 3); wManager.Wow.Helpers.MovementManager.MoveTo(toPosition); while (wManager.Wow.Helpers.MovementManager.InMoveTo && toPosition.DistanceTo(wManager.Wow.ObjectManager.ObjectManager.Me.Position) > 0.7) { System.Threading.Thread.Sleep(10); } } };  
  7. Like
    Droidz got a reaction from Kamogli in Shaman Ghost Wolf between mobs   
    not tested but try this plugin: Dismount cancelaura.cs
    (I'll try to resolve this problem in next updates)
  8. Like
    Droidz got a reaction from Serrec in Change fight class/load plugin/changing the type of the bot in questing profile using code   
    Hello,
    1:
    wManager.wManagerSetting.CurrentSetting.CustomClass = "fdsfsd.xml"; wManager.Wow.Helpers.CustomClass.DisposeCustomClass(); Thread.Sleep(1000); wManager.Wow.Helpers.CustomClass.LoadCustomClass(); 2: 
    wManager.Plugin.PluginsManager.DisposeAllPlugins(); foreach (var p in wManager.wManagerSetting.CurrentSetting.PluginsSettings) { if (p.FileName == "myplugin.cs") p.Actif = true; } wManager.Plugin.PluginsManager.LoadAllPlugins(); (but you can run c# code in your quest profile, it is better way http://wrobot.eu/forums/topic/5272-new-script-node-in-quester-profiles/#comment-24318
    3: You cannot
  9. Thanks
    Droidz got a reaction from Kamogli in Priority   
    Hello, I keep note, I comeback here if I add this feature
  10. Thanks
    Droidz got a reaction from Zer0 in How can I force a fight?   
    Hello, blacklist events is in "wManager.Events.OthersEvents"
    And try
     
  11. Like
    Droidz got a reaction from Beast in Set Specialization and Talents   
    Hello, with lua code like this:
    TalentMicroButton:Click() if PlayerTalentFrame then PlayerTalentFrameTab2:Click() PlayerTalentFrameTalentsTalentRow1Talent2:Click() PlayerTalentFrameTalentsTalentRow2Talent1:Click() PlayerTalentFrameTalentsTalentRow3Talent1:Click() PlayerTalentFrameTalentsTalentRow4Talent1:Click() PlayerTalentFrameTalentsTalentRow5Talent1:Click() PlayerTalentFrameTalentsTalentRow6Talent1:Click() PlayerTalentFrameTalentsTalentRow7Talent1:Click() PlayerTalentFrameCloseButton:Click() end Replace talent number, in PlayerTalentFrameTalentsTalentRow4Talent1:Click() replace 1 by 1, 2 or 3 (talent number) (in the line, is the row 4, it is the talent for level 60)
    You can get wow button name with this script: http://wrobot.eu/forums/topic/1689-useful-scripts/?do=findComment&comment=8447
  12. Like
    Droidz got a reaction from Beast in Useful scripts   
    Get wow bouton/window name:
    /run print(GetMouseFocus():GetName()) or
    /run DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName()) Copy this script in wow chat, put your mouse over an button and press enter key. In wow chat appear button name (you can use this like "/click TheButtonName" or "TheButtonName:Click()" or "RunMacroText("/click TheButtonName")" if you use it in fightclass).
    You can also use macro:
    /framestack More info: http://wow.gamepedia.com/Framestack 
  13. Thanks
    Droidz got a reaction from saleh in wait for a few minutes to resurrect   
    hello, try plugin like:
    using System.Threading; using wManager.Wow.Bot.States; public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) => { if (state is Resurrect || state is ResurrectBG) { Thread.Sleep(1000 * 30); } }; } public void Dispose() { } public void Settings() { } }  
    Wait Resurrect.cs
  14. Like
    Droidz got a reaction from zatvorgt in Take off tha bag   
    Hello, try:
    In "CONTAINER_BAG_OFFSET_X" replace X by 1, 2, 3 or 4 and replace "Small Black Pouch" by your bag name
     
  15. Thanks
    Droidz got a reaction from The Smokie. in Take off tha bag   
    Hello, try:
    In "CONTAINER_BAG_OFFSET_X" replace X by 1, 2, 3 or 4 and replace "Small Black Pouch" by your bag name
     
  16. Thanks
    Droidz got a reaction from fanmeng123 in Add action in grinder profile   
    Hello,
    To click on crystal you can add object in object to harvest list (in advanced general settings), if you just to to interact with npc you can add it to npc to attack, but in your case it is better to use Quester profile
  17. Like
    Droidz got a reaction from The Smokie. in Stunned condition   
    Hello, is use "UnitFlags"
  18. Thanks
    Droidz got a reaction from The Smokie. in Flying Mounts broken in TBC/WOTLK   
    I tried with automaton and grinder profile several hours each without plugin/fightclass and I cannot reproduce your problem. You get this problem without plugin but you have try without fightclass?
    He seems than WRobot press key (jump or forward I don't know) but never release it (I checked code several time and seem not in WRobot)
  19. Thanks
    Droidz got a reaction from saleh in Auction Get Error   
    Hello,
    It is connection problem with auth server, if this don't close WRobot you can ignore it.
  20. Like
    Droidz got a reaction from BetterSister in Is Lua.LuaDoString using a lock?   
    Hello,
    (when you don't use lock frame) Lua is slow because WRobot need to inject code in wow (that run in next frame refresh). If you call 5 times lua (on 1 thread) you need to wait ~5 wow frames, ~80ms with 60 fps.
    You can:
    - lockframe (it is a easier way, and in some case better)
    - avoid to use lua (but a lot of wrobot api methods use lua it is hard to know what methods you can use or not)
    - try to avoid useless lua call (by sample if you use "if (lua.do("is ok") && me.health < 10 && me.havetarget)" replace it by "if (me.havetarget && me.health < 10 && lua.do("is ok"))"
    - combine your lua scripts (if you use several lua calls in one condition try to combine it to one call)
  21. Thanks
    Droidz got a reaction from The Smokie. in Is Lua.LuaDoString using a lock?   
    Hello,
    (when you don't use lock frame) Lua is slow because WRobot need to inject code in wow (that run in next frame refresh). If you call 5 times lua (on 1 thread) you need to wait ~5 wow frames, ~80ms with 60 fps.
    You can:
    - lockframe (it is a easier way, and in some case better)
    - avoid to use lua (but a lot of wrobot api methods use lua it is hard to know what methods you can use or not)
    - try to avoid useless lua call (by sample if you use "if (lua.do("is ok") && me.health < 10 && me.havetarget)" replace it by "if (me.havetarget && me.health < 10 && lua.do("is ok"))"
    - combine your lua scripts (if you use several lua calls in one condition try to combine it to one call)
  22. Like
    Droidz got a reaction from Zbinx34 in Bot randomly won't dismount and just autoattacks   
    Hello, do you have errors in wow or wrobot log? do you have try to disable wow addons ?
  23. Like
    Droidz got a reaction from duthibaut in C# Stopfollowing Path [Gathering]   
    It is same problem like here: https://wrobot.eu/bugtracker/battleground-debuff-r1251/?do=findComment&comment=5834
    Your plugin run code not on the same thread that your current product thread, in your code at the same time you do 2 tasks
  24. Like
    Droidz got a reaction from Marsbar in MiniMapGenerator.MinimapImage   
    Hello, I think it is more easy to use " MiniMapGenerator.PathImage", sample:
    void RefreshMap(object objs) { try { var prm =(List<double>) objs; double zoom = prm[0]; double actualWidth = prm[1]; double actualHeight = prm[2]; lock (_lockShowMap) { var landmarksMiniMapCache = GenerateLandmarks(zoom); var image = new MiniMapGenerator.PathImage(Usefuls.ContinentNameMpq, ObjectManager.ObjectManager.Me.Position, landmarksMiniMapCache, (float)zoom); image.Generate(actualWidth, actualHeight); if (image.Result != null) { // Save img: if (!string.IsNullOrWhiteSpace(_saveTo)) { try { image.Result.Save(_saveTo, ImageFormat.Jpeg); } catch { } _saveTo = ""; } // Show img: var hbmp = image.Result.GetHbitmap(); try { var ret = Imaging.CreateBitmapSourceFromHBitmap(hbmp, IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); ret.Freeze(); Dispatcher.Invoke(DispatcherPriority.Background, new Action(() => MapImage.Source = ret)); //Dispatcher.BeginInvoke( // DispatcherPriority.Send, // new Action(() => MapImage.Source = null)); //Dispatcher.BeginInvoke( // DispatcherPriority.Send, // new Action(() => MapImage.Source = ret)); } finally { DeleteObject(hbmp); } } image.Dispose(); } } catch { } }  
  25. Like
    Droidz got a reaction from duthibaut in Is Lua.LuaDoString using a lock?   
    Hello,
    (when you don't use lock frame) Lua is slow because WRobot need to inject code in wow (that run in next frame refresh). If you call 5 times lua (on 1 thread) you need to wait ~5 wow frames, ~80ms with 60 fps.
    You can:
    - lockframe (it is a easier way, and in some case better)
    - avoid to use lua (but a lot of wrobot api methods use lua it is hard to know what methods you can use or not)
    - try to avoid useless lua call (by sample if you use "if (lua.do("is ok") && me.health < 10 && me.havetarget)" replace it by "if (me.havetarget && me.health < 10 && lua.do("is ok"))"
    - combine your lua scripts (if you use several lua calls in one condition try to combine it to one call)
×
×
  • Create New...