Jump to content

Recommended Posts

On 2/8/2017 at 4:00 AM, Droidz said:

For the distance, put false at the spell option "Check if is good distance" and add condition type "C Sharp Code" with the code 


Lua.LuaDoString<bool>("return IsActionInRange(" + (SpellManager.GetSpellSlotId(SpellListManager.SpellIdByName("Auto Shot")) + 1) + ")")

(of course, replace Auto Shot by your spell name in english, this code in implemented here).

 

@Droidz  When I follow these instructions I get compilation error:  'wManager.Wow.Helpers.SpellManager.' does not contain a definition for 'GetSpellSlotId'

I changed Auto Shot to Shoot (for wand)

In my spellbook I have Shoot (5019)

Can I use spell by number id instead of GetSpellSlotId?

 

Link to comment
Share on other sites

8 hours ago, justgimmiethelink said:

 

@Droidz  When I follow these instructions I get compilation error:  'wManager.Wow.Helpers.SpellManager.' does not contain a definition for 'GetSpellSlotId'

I changed Auto Shot to Shoot (for wand)

In my spellbook I have Shoot (5019)

Can I use spell by number id instead of GetSpellSlotId?

 

This code is for wrobot for vanilla, you can use lua for others wow vresion

Link to comment
Share on other sites

  • 4 weeks later...

To get wand working

1. Add the Wand attack to your fighterclass

2. Add Spell condition C Sharp Code

!Lua.LuaDoString<bool>("return IsAutoRepeatAction(" + (SpellManager.GetSpellSlotId(SpellListManager.SpellIdByName("Shoot")) + 1) + ")")

3. Profit.

 

I also use set mine to only use wand when target is below a certain percent of health

Link to comment
Share on other sites

Would this work in a c# fightclass?

if (EquippedItems.GetEquippedItem(WoWInventorySlot.Ranged) != null && !Lua.LuaDoString<bool>("return IsAutoRepeatAction(" + (SpellManager.GetSpellSlotId(SpellListManager.SpellIdByName("Shoot")) + 1) + ")"))
        {
            if (Shoot.KnownSpell)
                SpellManager.CastSpellByNameLUA("Shoot");
            return;
        }

The aim here is to only use Shoot if a ranged weapon is actually equipped.

Link to comment
Share on other sites

Guys. how to fix problem with wanding. If you got stunned or knocked etc any cc on you sometimes wrecks wanding. my Button is active like i'm wanding. but bot isnt shooting. so i need to press wand one more time to get it works

Link to comment
Share on other sites

  • 2 years later...
On 5/9/2017 at 8:59 PM, Zickefoose said:

To get wand working

1. Add the Wand attack to your fighterclass

2. Add Spell condition C Sharp Code

!Lua.LuaDoString<bool>("return IsAutoRepeatAction(" + (SpellManager.GetSpellSlotId(SpellListManager.SpellIdByName("Shoot")) + 1) + ")")

3. Profit.

I also use set mine to only use wand when target is below a certain percent of health

This worked pretty well but i'm getting this error frequently now when the Automaton mode loads.

Compilator Error : c:\User\USERNAME\AppData\Local\Temp\kvb3zwmm\kvb3zwmm.0.cs(52,136) : error CS0117: 'wManager.Wow.Helpers.SpellManager' does not contain a definition for Get SpellSlotId'

compilator-error.JPG

Link to comment
Share on other sites

5 hours ago, JWalton85 said:

This worked pretty well but i'm getting this error frequently now when the Automaton mode loads.

Compilator Error : c:\User\USERNAME\AppData\Local\Temp\kvb3zwmm\kvb3zwmm.0.cs(52,136) : error CS0117: 'wManager.Wow.Helpers.SpellManager' does not contain a definition for Get SpellSlotId'

compilator-error.JPG

hello, this code is for Vanilla

Link to comment
Share on other sites

  • 4 years later...
  • 9 months later...
On 11/22/2023 at 4:40 PM, wlhr said:

I am going to create fight classes for Vanilla WoW servers like Turtle WoW and this works perfectly, thanks! 

Doesnt work on the basic priest profile... Bot shoots then auto attacks instantly, is there a way we can just turn Melee attack off? @Droidz

Link to comment
Share on other sites

On 1/24/2017 at 4:43 PM, baka said:

It looks like its casting Attack so its hits Attack then Shoot anyway to stop the auto attack

Bump grinding doesnt allow shoot either because the bot just spams auto attack all the time

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...