fantasia 6 Posted September 17, 2018 Share Posted September 17, 2018 I have only been using the bot for a few days, I tried making my own fight class in C#. It works fine except when it decides to pull a big pack of mobs and dies. When it ress it stops running my fight class code, it just runs to the mob auto attacking, not using any spell and the log shows nothing at the time of death or ressurection, not even when showing debug. Dying: :54 - [Fight] Player Attacked by ... :55 - [Fight] Fight stopped :56 - [Resurrect] Player dead Ressing: :46 - [Resurrect] Player retrieve corpse :47 - [Fight] Player Attacked by ... :55 - [Resurrect] Player dead I tried twice to stop and start the bot while dead and then it works fine, it is then able to ress and use abilities right away. But everytime it dies and try to ress without a restart it won't use any abilities, just auto attack. Could it be that somehow the fight class is "crashing" when it dies? It doesn't say anything about any issues with it and I don't think it really would do that. I haven't had any issues with this with the xml fight classes you make with the GUI. Any idea what is causing the bot to not use any abilities unless it is restarted after dying? Link to comment https://wrobot.eu/forums/topic/10112-issues-with-combat-after-ressing-when-using-c-fight-class/ Share on other sites More sharing options...
Matenia 628 Posted September 17, 2018 Share Posted September 17, 2018 I'm guessing the loop in your fightclass stops when you die. You should just the condition. Link to comment https://wrobot.eu/forums/topic/10112-issues-with-combat-after-ressing-when-using-c-fight-class/#findComment-47503 Share on other sites More sharing options...
fantasia 6 Posted September 17, 2018 Author Share Posted September 17, 2018 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. Matenia 1 Link to comment https://wrobot.eu/forums/topic/10112-issues-with-combat-after-ressing-when-using-c-fight-class/#findComment-47510 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now