Jump to content

Zer0

Elite user
  • Posts

    213
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Zer0 reacted to Matenia in UnitDebuff/UnitBuff for TBC 2.4.3   
    unitCaster doesn't exist in TBC and owner doesn't work either
    In TBC, if there's a timer it's yours.
  2. Thanks
    Zer0 reacted to Matenia in "[Fight] Mob seem bugged" What does it do?   
    Then the best you can do is read log events and react to your current target when it happens. That should do the trick for now. 
    Don't use the regular blacklist either (wManager.wManagerSetting.AddBlackList - this isn't realiable), it has to be the property directly on the ObjectManager class as seen here.

    I realize log events won't help much with identifying the mob correctly, but hopefully this will do the trick as your bot is still targeting the mob, so that you can blacklist it and then stop the fight manually afterwards.
  3. Thanks
    Zer0 reacted to Matenia in "[Fight] Mob seem bugged" What does it do?   
    I think blacklist events exist, but I don't recall if this case is covered by them. There is a blacklist of GUIDs (which in "real" wow are truly random and NOT re-used like on most p-servers) attached directly to the objectmanager iirc. It's either a list or a map that you can manually add those GUIDs to and they will never be considered in the OM, so for WRobot it's as if those mobs don't even exist. I believe I used this in my free AV plugin for blacklisting AV mobs too.
  4. Thanks
    Zer0 reacted to Mjack in "[Fight] Mob seem bugged" What does it do?   
    You can use log event and if that message happens blacklist it.
  5. Like
    Zer0 got a reaction from Droidz in Can WRobot catch UNIT_SPELLCAST_SUCCEEDED with arguments?   
    For your information, I used to subscribe to OnEventsLuaStringWithArgs in 2 places. 
    First in Hunter.Initialize() and then in the constructor of another class called Cast.Cast()
    in both places I could only get COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED. now that I've moved the hunter autoshot event catcher to the Main.Initialize() method, I can get all events from there.
    For the sake of testing I've logged the Cast.Cast() event catcher and I still only catch COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED (Which in this case doesn't matter because I don't need anything else)

    I hope it helps.
  6. Thanks
    Zer0 reacted to Droidz in Can WRobot catch UNIT_SPELLCAST_SUCCEEDED with arguments?   
    Hey, I tested this code he works for me:
    wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaStringWithArgs += (eventid, args) => { if (eventid == "UNIT_SPELLCAST_SUCCEEDED") Logging.WriteDebug("[EVENT] " + args[0] + " > " + args[1]); }; It is not the case for you?
  7. Thanks
    Zer0 reacted to Matenia in Can WRobot catch UNIT_SPELLCAST_SUCCEEDED with arguments?   
    I use EventsLuaWithArgs.OnEventsLuaStringWithArgs for pretty much everything. It definitely logs all events. However, if you're using something based on my framework, where I copied this functionality, I specifically only registered it with COMBAT_LOG_EVENT_UNFILTERED, whereas Droidz' functionality uses RegisterAllEvents().

    Also, have you made sure you're actually getting the event for auto shot in the client? Afaik, at least in TBC, it was never fired.
  8. Thanks
    Zer0 got a reaction from happiness7 in ResetCustomClass   
    CustomClass.ResetCustomClass() reloads the current FightClass. Most products call it when the PLAYER_LEVEL_UP Lua event is fired.
  9. Like
    Zer0 got a reaction from Pudge in ResetCustomClass   
    CustomClass.ResetCustomClass() reloads the current FightClass. Most products call it when the PLAYER_LEVEL_UP Lua event is fired.
  10. Thanks
    Zer0 reacted to paps in Microsoft visual c++   
    Probleme resolu avec : https://www.microsoft.com/fr-fr/download/confirmation.aspx?id=26999
  11. Like
    Zer0 got a reaction from libai in Calling for developers and testers   
    Due to the lack of free available third party products in the store (plugins, fight classes, grinders, questers), I have decided to gather developers and testers under an umbrella project called "Project Wholesome".
    The goal of Project Wholesome is to develop, test, and freely share wRobot products. All the code created under the project will be transparent, open-source, and then released in the store for free. I insist on the fact that not a single line of code released under Project Wholesome  will be sold for profit. We already have a few people working together on fight classes and on profile creation.
    Developers : You want to help the community grow and participate in providing quality products or you want to learn how to create plugins, fight classes and profiles. You are willing to share your knowledge and your code to others. You are aware that you are not in for the money. You will take testers' feedback into account to polish your product. Once you finish a product, you will release it for free in the store, although you can call for donations on the product page. 
    Testers : You will have access to unfinished/beta products from our team under the condition that you provide active feedback through bug reports in the discord channel. You are willing to treat developers with respect and patience, keeping in mind that they are providing a service for free.
    Project Wholesome is all about trust, and keeping wRobot alive. We start small, setting realistic goals, but we intend to create a momentum and keep it growing as much as possible. If you are interested, feel free to join our channel.

    https://discord.gg/NEq4VA6
  12. Like
    Zer0 got a reaction from Talamin in Calling for developers and testers   
    Bump for visibility.
    New people have joined and we are working on different future releases.
  13. Like
    Zer0 got a reaction from TheSmokie in License Key   
    https://wrobot.eu/clients/purchases/
    Then click on your purchase.
  14. Thanks
    Zer0 reacted to Droidz in Official WRobot API Documentation   
    WRobot API Documentation
    Website: https://wrobot.eu/byme/doc/
    Offline documentation: https://wrobot.eu/byme/doc/WRobot.chm
    (from Wotlk version, Updated the 01 February 2021)
     
     Unofficial documentation is available here   , it is still very useful because it contains examples and descriptions that are not available in the official.
     
     
  15. Like
    Zer0 got a reaction from fyr den in Wotlk - "Game version incorrect"   
    Yup.
  16. Like
    Zer0 got a reaction from Pudge in c# offmesh connection to use elevator   
    Here's the method I've made to handle elevators:
    public static void AddTransportOffMesh( Vector3 waitForTransport, Vector3 stepIn, Vector3 objectDeparture, Vector3 objectArrival, Vector3 stepOut, int objectId, ContinentId continentId, string name = "", float precision = 0.5f) { OffMeshConnection offMeshConnection = new OffMeshConnection(new List<Vector3> { waitForTransport, new Vector3(stepIn.X, stepIn.Y, stepIn.Z, "None") { Action = "c#: Logging.WriteNavigator(\"Waiting for transport\"); " + "while (Conditions.InGameAndConnectedAndProductStartedNotInPause) " + "{ " + $"var elevator = ObjectManager.GetWoWGameObjectByEntry({objectId}).OrderBy(o => o.GetDistance).FirstOrDefault(); " + $"if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3({objectDeparture.X.ToString().Replace(",", ".")}, {objectDeparture.Y.ToString().Replace(",", ".")}, {objectDeparture.Z.ToString().Replace(",", ".")})) < {precision.ToString().Replace(",", ".")}) " + "break; " + "Thread.Sleep(100); " + "}" }, new Vector3(stepOut.X, stepOut.Y, stepOut.Z, "None") { Action = "c#: Logging.WriteNavigator(\"Wait to leave Elevator\"); " + "while (Conditions.InGameAndConnectedAndProductStartedNotInPause) " + "{ " + $"var elevator = ObjectManager.GetWoWGameObjectByEntry({objectId}).OrderBy(o => o.GetDistance).FirstOrDefault(); " + $"if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3({objectArrival.X.ToString().Replace(",", ".")}, {objectArrival.Y.ToString().Replace(",", ".")}, {objectArrival.Z.ToString().Replace(",", ".")})) < {precision.ToString().Replace(",", ".")}) " + "break; " + "Thread.Sleep(100); " + "}" }, }, (int)continentId, OffMeshConnectionType.Unidirectional, true); offMeshConnection.Name = name; OffMeshConnections.Add(offMeshConnection, true); } And here is how I use it:
    AddTransportOffMesh(new Vector3(2865.628, 6211.75, 104.262), // wait for transport new Vector3(2878.712, 6224.032, 105.3798), // Step in new Vector3(2878.315, 6223.635, 105.3792), // Object departure new Vector3(2892.18, 6236.34, 208.908), // Object arrival new Vector3(2880.497, 6226.416, 208.7462, "None"), // Step out 188521, ContinentId.Northrend, "Warsong Hold Elevator UP"); AddTransportOffMesh(new Vector3(2880.497, 6226.416, 208.7462, "None"), // wait for transport new Vector3(2891.717, 6236.516, 208.9086, "None"), // Step in new Vector3(2892.18, 6236.34, 208.908), // Object departure new Vector3(2878.315, 6223.635, 105.3792), // Object arrival new Vector3(2865.628, 6211.75, 104.262), // Step out 188521, ContinentId.Northrend, "Warsong Hold Elevator DOWN"); I've used this for our FlightMaster plugin. In theory, it should also work for other transports.
  17. Like
    Zer0 got a reaction from Pudge in MovementManager.Go   
    If you want to move to the first spot on the list, use
    GoToTask.ToPosition(path[0]); If you want to find nearest spot on the list, you can do it this way:
    using System.Linq; List<Vector3> closestSpots = path .OrderBy(spot => spot.Position.DistanceTo(ObjectManager.Me.Position)) .ToList(); Vector3 closestSpot = closestSpots[0]; I haven't tested it and there's probably a more efficient way to do it, but that should work.
  18. Like
    Zer0 reacted to Energia in Problem with GoToTask.ToPositionAndIntecractWithNpc on TBC   
    Hi all,
    I want to join to the victims of this problem. This one happening not very often. NPC window is not showing up at all (as if the bot never interacted with npc). Examples - pick up / turn in quests or discovering flight master. Even when my bot is played and I will click on npc bot refuses to pick up / turn in the quest at all. 
    For me that was on TBC servers only too. 1 think I want to mention is that I tried to disable all my plugins, I am not using any addons. Tried to reset wrobot, relogger, PC... Nothing helped. 
  19. Like
    Zer0 got a reaction from Energia in Problem with GoToTask.ToPositionAndIntecractWithNpc on TBC   
    Hi,
    I have noticed a problem recently with GoToTask.ToPositionAndIntecractWithNpc(...).
    Sometimes, the bot will succesfully move to the NPC, but then fail to interact with it, despite being in interaction range.
    It's very random and hard to reproduce. When that happens, GoToTask.ToPositionAndIntecractWithNpc returns false. The gossip option argument doesn't seem to make a difference. I've encountered this issue a few times on my private server, and others in the team have also encountered this issue on the Endless server. It does not happen on the WotLK expansion at all. It happens with our flightmaster plugin, but also with the quester (quests pickup for example).
    Has anyone ever encountered this issue, and has any idea where it could come from?
  20. Thanks
    Zer0 got a reaction from Apexx in Detect Target Immunities (ie: Immune to Diseases)   
    This is how I do it (TBC).
    Although as Matenia pointed out, some mobs might only be temporary immune to a school. That being said, I'd rather handle those rare exceptions than random immunities that differ from server to server.
     
    EventsLuaWithArgs.OnEventsLuaWithArgs += LuaEventsHandler; private void LuaEventsHandler(LuaEventsId id, List<string> args) { if (args[11] == "IMMUNE")) { Logging.Write($"{ObjectManager.Target.Name} is immune to {args[9]}"); // Your code to handle spell ban // args[9] is the name of the spell } }  
  21. Thanks
    Zer0 got a reaction from Sjd6795 in Reapply DoTs   
    Hi, if you want to check if your target has a debuff, you can use ObjectManager.Target.HaveBuff("buff name"").
    In your situation, you simply could use.
    if (!ObjectManager.Target.HaveBuff("Rend")) { // Cast rend } This will ensure that Rend is always up on your target.
  22. Like
    Zer0 got a reaction from Talamin in How do I impliment Fight Class Settings   
    Looks good to me at first sight.
    Maybe you forgot to declare the following method?
    public static void ShowConfiguration() { TestingSettings.Load(); TestingSettings.CurrentSetting.ToForm(); TestingSettings.CurrentSetting.Save(); } You also need to load the settings in the Initialize() method of the FC:
    TestingSettings.Load();  
  23. Thanks
    Zer0 got a reaction from Photogenic in Conditions in xml ??   
    I don't know about ObjectManager.Me.InCombatWithFlagOnly
    ObjectManager.Me.InCombatFlagOnly is the way to go.
  24. Thanks
    Zer0 got a reaction from Bambo in Need a bot for wow classic official servers   
    47 views / 36 likes. Forget about bots, my man, you've got an unprecedented YouTube career waiting for you.

    In all seriousness, I kinda feel bad for those who will fall for this scam. It's obvious to an experimented user, but probably not so much for newcomers.
  25. Like
    Zer0 reacted to Matenia in Fightclass Framework for 2.4.3/3.3.5a and more   
    If you've seen my 1.12 fightclass framework, this is basically the much enhanced version.
    It should work for WoW 2.4.3 and 3.3.5a, possibly many more expansions. The only thing you would have to do is adjust the way combatlog events are parsed, if paramters have changed in your expansion. Everything else should be handled by wRobot. 

    Below you can find the GitHub repository. It also contains a very simple enhancement shaman fightclass as an example that you could change to fit your own needs.
    This is for developers only. If you're a regular user, I recommend just buying my fightclasses. They are, in my opinion, fairly priced.

    Features:
    - checks with server if a spell was successful
    - support for different types of spells 
    - no more double casts of any sort (heals, debuffs, damage)
    - possibility to ignore server responses
    - easy offtarget handling
    - performant caching and rotation handling
    - possibility to use as a healing framework
    - support for wanding
    - multilanguage support
    - dispel by debuff type
     

    https://github.com/Schaka/wRobotFightclassFrameworkEnhanced
     
    @Droidz would be nice if you could sticky/pin this thread
×
×
  • Create New...