Jump to content

fantasia

Members
  • Posts

    13
  • Joined

  • Last visited

Reputation Activity

  1. Like
    fantasia got a reaction from Matenia in Learning C#   
    I have only used wrobot for a week so I haven't done very much with it yet. (a plugin that detects nearby players and display a warning on screen, a plugin that assigns talents automatically on level up in the order I specified and just some fight classes for low lvl characters playing solo with some behavior to stop trying to pull their current target if they have aggro from a nearby mob to make it less likely to pull big packs)
    I think c# feels a lot easier to write and understand, I am not used to lua but I don't like it but others might think it is good.
    I looked at the Holy Grail c# fight class. It looks like it handles healing party members without targetting them by using focus. (I have not tested the code I took from it, but it seems really useful).
    In "WhatsGoingOn" plugin you can check how to make and edit frames ingame. (I used its frame and just customized it so it goes small when noone is nearby and big with a warning when anyone is within range)
    "AutoSelectFoodDrink" is a good plugin to use as a framework for a plugin that runs code every x amount of seconds.
  2. Thanks
    fantasia got a reaction from Matenia in Learning C#   
    I am not very good at programming but I would recommend:
    1. Learn the fundamentals if you haven't already (learn about things like variables, loops, conditions and other basic things).
    2. Download every cs fight class and plugin you can find on here. They are great to see how other people have solved the issues.
    3. Use the intellisense in visual studio to see what methods you have access to. Also "Go to definition" and "Find all references" is 2 useful options in the right click menu when right clicking a method or class.
    4. Search for what you want to do on here (wrobot related things) or on google (lua or c# related things).
  3. Like
    fantasia reacted to zze in trying to use ItemsManager.HasItemById but with a stack   
    after messing around with it more found was just the area desolace being werid with pathing after i died :3 now its working ?
    if (!ObjectManager.Me.IsMounted && ItemsManager.GetItemCountById(6265) <= 8 && ObjectManager.Target.HealthPercent <= 15) { DrainSoul.Launch(); System.Threading.Thread.Sleep(700); return; }  
    thank you very much for you help ?
  4. Like
    fantasia got a reaction from zze in trying to use ItemsManager.HasItemById but with a stack   
    Maybe you use Sleep somewhere that blocks the code from running (not sure if it would block the pathfinding from running its code).
    Maybe you need to enclose your buff and combat code in a "if (!ObjectManager.Me.IsDeadMe)".
    That is the only 2 things I can come up with that could possibly affect it.
  5. Thanks
    fantasia got a reaction from zze in trying to use ItemsManager.HasItemById but with a stack   
    I have not tried this, but I think this would work: ItemsManager.GetItemCountById(6265) <= 10
    HasItemById is just a bool (true/false if we have it or not)
  6. Thanks
    fantasia got a reaction from Grevlen in Learning C#   
    I am not very good at programming but I would recommend:
    1. Learn the fundamentals if you haven't already (learn about things like variables, loops, conditions and other basic things).
    2. Download every cs fight class and plugin you can find on here. They are great to see how other people have solved the issues.
    3. Use the intellisense in visual studio to see what methods you have access to. Also "Go to definition" and "Find all references" is 2 useful options in the right click menu when right clicking a method or class.
    4. Search for what you want to do on here (wrobot related things) or on google (lua or c# related things).
  7. Like
    fantasia got a reaction from Matenia in Issues with combat after ressing when using C# fight class   
    It was a different but similar situation.
    I used some code that someone else made that would pause the bot for a while if it was a pvp death. But it was written wrong so it only paused the fight class not the entire bot and it triggered if the enemy wasn't same faction as the bot (which caused it to trigger on mobs since they are not same faction...).
    I should have checked their code better, somehow it sounded like it was good in my head when I read it but ofcourse it isn't.
×
×
  • Create New...