Macro for switching weps and managem macro

Macro for switching weps and managem macro

by Slibzshady » Fri Jan 22, 2016 9:08 pm

I got skull of impending doom as oh
i've tried loads to remove the buff with /unbuff Flee in super macro but it just errors no matter what i try..

anyway i'd like to remove the buff after one tick and i've found simply switching between another OH and skull will cancel the buff so i need a macro that with first press uses the OH, second press switches it to my other OH in bag and third press it re-equips the skull of impending doom OH..

is this possible without super macro addon?? cus it seems i can only find a version that gives me errors or maybe im just doing it wrong, not sure. help much appreciated :)

o and also i'd like a macro for using my mana agate and if mana agate isnt there then use mana jade ???
Slibzshady
Sergeant
Sergeant
 

Re: Macro for switching weps and managem macro

by Dreez » Fri Jan 22, 2016 11:38 pm

Code: Select all
/script local i=0 g=GetPlayerBuff while not(g(i) == -1)do if(strfind(GetPlayerBuffTexture(g(i)), "Spell_Magic_PolymorphChicken"))then CancelPlayerBuff(g(i))end i=i+1 end

that's the one to directly cancel the effect of skull of impending doom

and this is a macro to equip a weapon in your offhand:
Code: Select all
/run local i=0 j=1 for i=0,4 do for j=1,18 do local d=GetContainerItemInfo(i,j) if d=="Interface\\Icons\\INV_Sword_49"then PickupContainerItem(i,j)EquipCursorItem(17)end end end

replace the INV_Sword_49 by whatever texture your weapon has

either use a database for that or use this macro while the weapon you want to equip is in your first (upper left) slot of your main backpack:
/run ChatFrame1:AddMessage(GetContainerItemInfo(0,1))
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: Macro for switching weps and managem macro

by Slibzshady » Sat Jan 23, 2016 11:52 am

ty <333 the unbuff flee one works finally!

However i'd like the macro to also use the skull of impending doom on first press and then 2nd press it unbuffs flee.. just adding
Code: Select all
/script use(''Skull of Impending Doom''); 
gave an error for me

also i think this managem macro should be working, it is for my friend who also got supermacro and did it in supermacro tab, but i cant make it work.. am i doing something wrong or is my addon fukin with me?

Code: Select all
/script use(''Mana Jade'');  use(''Mana Agate'');


thanks alot again, if ^ cant be done im happy i just got the unbuff flee macro to work :D
Slibzshady
Sergeant
Sergeant
 

Re: Macro for switching weps and managem macro

by Dreez » Sat Jan 23, 2016 1:54 pm

I'm not familiar with supermacro but i'm pretty sure it should either be

use('Skull of Impending Doom')
or
use ("Skull of Impending Doom")
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: Macro for switching weps and managem macro

by Slibzshady » Sat Jan 23, 2016 4:05 pm

no matter the order i put the gems in, it still uses the lesser one first in this macro..
Code: Select all
/script use('Mana Agate');  use('Mana Jade');

how do i make it use the best one first?(jade one)

Skull one works perfectly, first press uses the OH and 2nd press removes the 'flee' buff (if anyone wants it)

Code: Select all
/script  use('Skull of Impending Doom');  local i=0 g=GetPlayerBuff while not(g(i) == -1)do if(strfind(GetPlayerBuffTexture(g(i)), "Spell_Magic_PolymorphChicken"))then CancelPlayerBuff(g(i))end i=i+1 end
Slibzshady
Sergeant
Sergeant
 

Re: Macro for switching weps and managem macro

by Dreez » Sun Jan 24, 2016 12:03 pm

Slibzshady wrote:no matter the order i put the gems in, it still uses the lesser one first in this macro..
Code: Select all
/script use('Mana Agate');  use('Mana Jade');

how do i make it use the best one first?(jade one)

Code: Select all
/run use('Mana Jade')
/run use('Mana Agate')

that should work
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 


Return to Addons & macros