Innokin 2 Posted August 15, 2018 Share Posted August 15, 2018 Hi everyone, I am trying to make use of shield bash in battle stance but it requires shield to be equipped. Normally in battlestance, when my wrotation is on, my warrior has 2h weapon equipped so, shield bash doesn't work as it requires shield to be equipped. Is there any possible way to make it equip shield on using shield bash, like some lua code? I am new to this stuff so I really have no clue how to do it. Any help or hints would be glady appreciated. Thanks :)) Link to comment https://wrobot.eu/forums/topic/9947-warrior-shield-bash-in-battle-stance/ Share on other sites More sharing options...
Innokin 2 Posted August 17, 2018 Author Share Posted August 17, 2018 I have seen people ask this many times in forums but it has always gone unanswered. I tried adding Equipitembyname(ITEMID/NAME) in the lua code but it still isn't working. Am I doing something wrong or is it not within the bounds of the API? Please help me. xD @Droidz Link to comment https://wrobot.eu/forums/topic/9947-warrior-shield-bash-in-battle-stance/#findComment-46669 Share on other sites More sharing options...
Matenia 628 Posted August 17, 2018 Share Posted August 17, 2018 Anyway - read the damn docs:http://wowwiki.wikia.com/wiki/API_EquipItemByName Quote Changes in 3.3.0 When in combat this function now "picks up" the item instead of equipping it, similar to PickupInventoryItem. Out of combat, the function behaves as expected. This change was made to address the issue of rogues using "poison swapping" addons to increase their DPS.[1] You will need to call: EquipItemByName("mainHand"); PickupInventoryItem(16); EquipItemByName("offHand"); PickupInventoryItem(17); -- or the macro call RunMacroText("/equip mainHandName\n/equip offHandName"); Link to comment https://wrobot.eu/forums/topic/9947-warrior-shield-bash-in-battle-stance/#findComment-46670 Share on other sites More sharing options...
Innokin 2 Posted August 17, 2018 Author Share Posted August 17, 2018 Yes I am very new to LUA so i had no clue how to use the strings. I will try and see if this works. Thanks for guiding me. :)) Link to comment https://wrobot.eu/forums/topic/9947-warrior-shield-bash-in-battle-stance/#findComment-46671 Share on other sites More sharing options...
Garub 6 Posted September 14, 2018 Share Posted September 14, 2018 On 8/17/2018 at 2:09 PM, Innokin said: Yes I am very new to LUA so i had no clue how to use the strings. I will try and see if this works. Thanks for guiding me. :)) could post your profile for me to use on my, (I do not know how to program). Link to comment https://wrobot.eu/forums/topic/9947-warrior-shield-bash-in-battle-stance/#findComment-47455 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