saleh 13 Posted June 8, 2019 Share Posted June 8, 2019 Hello How Using Wand ( Shoot ) in fightclass? i use it and it work with Hunter but (MAGE-PRIEST) Not work i use Cataclysm Private Server Version Thanks Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/ Share on other sites More sharing options...
TheSmokie 242 Posted June 8, 2019 Share Posted June 8, 2019 Is it a click or does it autoshoot Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54379 Share on other sites More sharing options...
saleh 13 Posted June 9, 2019 Author Share Posted June 9, 2019 On 6/8/2019 at 7:14 AM, The Smokie. said: Is it a click or does it autoshoot click Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54409 Share on other sites More sharing options...
TheSmokie 242 Posted June 9, 2019 Share Posted June 9, 2019 public Spell wand = new Spell("Shoot"); if (wand.KnownSpell && wand.IsSpellUsable && ObjectManager.Me.ManaPercentage <= 5 && ObjectManager.Me.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) != 0) { wand.Launch(); Usefuls.WaitIsCasting(); return; } This is what i use in my fightclass. if you want anymore help join my discord : https://discord.gg/ppm8Ufc im not always on here and i love helping people learn. saleh 1 Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54410 Share on other sites More sharing options...
saleh 13 Posted June 9, 2019 Author Share Posted June 9, 2019 Thanks But i dont Know how to Put this Code In FightClass :) Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54411 Share on other sites More sharing options...
TheSmokie 242 Posted June 9, 2019 Share Posted June 9, 2019 are you using VS or wrobot fightclass editor? Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54412 Share on other sites More sharing options...
saleh 13 Posted June 9, 2019 Author Share Posted June 9, 2019 Just now, The Smokie. said: are you using VS or wrobot fightclass editor? fightclass editor Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54413 Share on other sites More sharing options...
TheSmokie 242 Posted June 9, 2019 Share Posted June 9, 2019 Tbh i havent really ever messed with editor, if you can message me the profile, i can put it into a dll file for you and add the shooting but i am clueless when it comes to FC editor saleh 1 Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54414 Share on other sites More sharing options...
saleh 13 Posted June 9, 2019 Author Share Posted June 9, 2019 thanks Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54415 Share on other sites More sharing options...
Ordush 185 Posted June 10, 2019 Share Posted June 10, 2019 (edited) 50 minutes ago, saleh said: thanks Just add "shoot" as a spell name in the editor. It's the same as what MikeMail did above. public Spell wand = new Spell("Shoot"); Here he instances Spell wand as "Shoot". and his code here: MikeMail wand.Launch(); Basically just tells the bot to cast whatever "Wand" is instanced as. In this case Shoot. So in short he is telling the bot to cast the spell Shoot. Which is the same as adding the spell "Shoot" in the FC editor. if (wand.KnownSpell && wand.IsSpellUsable && ObjectManager.Me.ManaPercentage <= 5 && ObjectManager.Me.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) != 0) This here is his conditions. You can add all these in the editor Just look at what comes after Wand. The last bit with GetEquippedItemBySlot is probably not in the editor, but you can add this via "c#" code as a condition. Make sure you add the condition that it should only "cast" if not casting already, otherwise it will shoot, stop shoot, shoot, stop shoot etc. Edited June 10, 2019 by Ordush Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54416 Share on other sites More sharing options...
saleh 13 Posted June 10, 2019 Author Share Posted June 10, 2019 1 minute ago, Ordush said: Just add "shoot" as a spell name in the editor. work Only with Hunter Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54417 Share on other sites More sharing options...
Ordush 185 Posted June 10, 2019 Share Posted June 10, 2019 Just now, saleh said: work Only with Hunter Looked at the extended edit i just made. If "shoot" only works as hunter, then the above code that MikeMail posted won't work either, Because that is EXACTLY what it does. ? saleh 1 Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54418 Share on other sites More sharing options...
saleh 13 Posted June 10, 2019 Author Share Posted June 10, 2019 Just now, Ordush said: Looked at the extended edit i just made. If "shoot" only works as hunter, then the above code that MikeMail posted won't work either, Because that is EXACTLY what it does. ? <?xml version="1.0" encoding="utf-8"?> <FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FightClassGeneralSettings> <FightClassName>Fight config name</FightClassName> </FightClassGeneralSettings> <FightClassSpells> <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>SmallerOrEqual</Type> <Value>30</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>Shoot</SpellName> <Priority>1</Priority> <Timer>4000</Timer> <CanMoveDuringCast>No</CanMoveDuringCast> </FightClassSpell> </FightClassSpells> </FightClass> Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54419 Share on other sites More sharing options...
Ordush 185 Posted June 10, 2019 Share Posted June 10, 2019 1 minute ago, saleh said: <?xml version="1.0" encoding="utf-8"?> <FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FightClassGeneralSettings> <FightClassName>Fight config name</FightClassName> </FightClassGeneralSettings> <FightClassSpells> <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>SmallerOrEqual</Type> <Value>30</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>Shoot</SpellName> <Priority>1</Priority> <Timer>4000</Timer> <CanMoveDuringCast>No</CanMoveDuringCast> </FightClassSpell> </FightClassSpells> </FightClass> You just told your code that it should cast "shoot" on mobs that are 30 yards or less from you. You did not add the condition to not cast spells while casting. ? Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54420 Share on other sites More sharing options...
saleh 13 Posted June 10, 2019 Author Share Posted June 10, 2019 4 minutes ago, Ordush said: You just told your code that it should cast "shoot" on mobs that are 30 yards or less from you. You did not add the condition to not cast spells while casting. ? where this Option ? Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54421 Share on other sites More sharing options...
Ordush 185 Posted June 10, 2019 Share Posted June 10, 2019 Just now, saleh said: where this Option ? Conditions, just like you added the "range" condition, there is one called IsCasting or something like that. ? Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54422 Share on other sites More sharing options...
Ordush 185 Posted June 10, 2019 Share Posted June 10, 2019 Try and search wand on the forum, i seem to recall that wand is the same as a hunter, being a repeatable action instead of a spell. If memory serves me well and this is the case, then it complicates things a lot for you. I seem to recall Droidz explaining someone how to do though. ? Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-54423 Share on other sites More sharing options...
Suikoden 1 Posted November 20, 2022 Share Posted November 20, 2022 The file attached is the Solution for me. You can Import the xml in Fight Class Editor. Priest_YB.xml Ordush 1 Link to comment https://wrobot.eu/forums/topic/11367-how-using-wand-shoot-in-fightclass/#findComment-67249 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