triciamc 2 Posted May 3, 2018 Share Posted May 3, 2018 I got interested in creating my own fightclass. Why does the bot use only spells I put manualy on action bar? I've seen Warlock Profile by eeny that doesnt require putting spells down in action bar. How did he do that ? Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/ Share on other sites More sharing options...
Matenia 628 Posted May 4, 2018 Share Posted May 4, 2018 Because the fightclass editor requires them on the bar in vanilla to check through the Lua function IsUsableAction whether you can actually use a spell. If you use C# and you don't check for usability at all, you can basically skip the action bars, but even then it's not advisable. Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43220 Share on other sites More sharing options...
triciamc 2 Posted May 5, 2018 Author Share Posted May 5, 2018 On 5/4/2018 at 9:19 AM, Matenia said: Because the fightclass editor requires them on the bar in vanilla to check through the Lua function IsUsableAction whether you can actually use a spell. If you use C# and you don't check for usability at all, you can basically skip the action bars, but even then it's not advisable. What do you mean by using C# ? Any specific clue ? Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43274 Share on other sites More sharing options...
Ordush 185 Posted May 5, 2018 Share Posted May 5, 2018 30 minutes ago, triciamc said: What do you mean by using C# ? Any specific clue ? In your fightclass editor set CheckIfKnowSpell to false Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43275 Share on other sites More sharing options...
triciamc 2 Posted May 6, 2018 Author Share Posted May 6, 2018 On 5/5/2018 at 8:36 PM, Ordush said: In your fightclass editor set CheckIfKnowSpell to false I switched check if known option to false on every spell, even tried converting to c# and nothing, it Still doesnt use spells unless they are on the bar. Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43303 Share on other sites More sharing options...
Ordush 185 Posted May 6, 2018 Share Posted May 6, 2018 Converting to c# will not do anything. If that doesn't work, then you have to do what Matenia said. Rewrite your fightclass in C#, there are plenty of guides out there, and then don't do a "IsSpellUsable" check on your spell in C#. There are way more advanced ways to do the "IsSpellUsable" on Vanilla, then the implemented WRobot way. You will have to research yourself for that. ? Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43304 Share on other sites More sharing options...
triciamc 2 Posted May 7, 2018 Author Share Posted May 7, 2018 Allright I understood previously to change check if spell known to false but actualy You ment check if spell is usable. Changed it to false and it seems to work fine. I am still interested in learning to write custom fightclasses though. So if I understand correctly You can make fightclasses without the fightclass creator in pure C# ? Are there any "tutorials" or at least clues on this forum? If so I will have to search for it Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43312 Share on other sites More sharing options...
Matenia 628 Posted May 7, 2018 Share Posted May 7, 2018 Plenty of tutorials to get you started all over the developers section. Link to comment https://wrobot.eu/forums/topic/9284-bot-uses-spells-only-from-action-bar/#findComment-43313 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