Melee weapon toggle [Request Fulfilled]

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

curiousgeorge
orc pawn
orc pawn
Posts: 10
Joined: Mon Aug 26, 2002 1:02 pm

Melee weapon toggle [Request Fulfilled]

Post by curiousgeorge » Thu Sep 12, 2002 1:04 pm

I was so inspired by eqjim's code to switch out an inventory item for heals then switch back that I was wondering what it would take to make a macro for toggling between a 1hs/sheild combo to a 2hs. perhaps something like this;

check if shield in secondary, if shield = true
click shield (picks up shield from secondary?)
find item (2hs weap, toggles shield with 2hs on cursor)
equip primary (toggles your 1hs to 2hs)
put 1hs in pack x x

if shield = false (2hs already equipped)
find 1hs
toggle 1hs in primary (picking up 2hs)
find shield (toggling 2hs into pack slot)
equip shield in secondary

I put my weaps in an inventory slot and not a pack, so perhaps this could be worked for inventory slot to toggle other weapons like piercing, just make sure they are in the right inventory slot?

I'll start messing around with the code (i'm not a programmer by any means), any help here would rule.

CG
wait, where did you say you put the cheeze-wiz?

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

Post by eqjim » Thu Sep 12, 2002 2:58 pm

none of my char own shields.. so i used (2) 1h weapons and a 2HB.. should work the same.

tested it out and it would switch my (2) 1h weapons for 2hb and then if played agian would switch my 2hb out for both 1hbs.

Code: Select all

Sub Main
/if $invpanel==false /press i
/if $equip(secondary,value)==0 {
/click left equip secondary
/click left inv 2 | 2hb in this slot, secondary weapon will be placed here
/click left equip primary
/click left inv 3 | open slot for primary weapon to goto
} else /if $equip(primary,value)==0 {
/click left equip primary
/click left inv 2 | secondary weapon will be here
/click left equip secondary
/click left inv 3 | primary weapon will be here
/click left equip primary
}
/if $invpanel==true /press i
/return 

curiousgeorge
orc pawn
orc pawn
Posts: 10
Joined: Mon Aug 26, 2002 1:02 pm

Post by curiousgeorge » Fri Sep 13, 2002 11:56 am

I couldn't get this one to work last night. I have my weaps in the right inventory slot. I'm assuming it won't work with the New UI because it utilizes the /click commands? Any thoughts?


CG
wait, where did you say you put the cheeze-wiz?

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Fri Sep 13, 2002 12:28 pm

that would be correct. /click doesn't work (at least on the new windows) in the new UI. I think (correct me if I'm wrong) that /click still works in the new UI on things like your target, but anything in a window would definately be broken.

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

Post by Ariain » Fri Oct 11, 2002 4:30 pm

I am looking for away to switch instruments for bard songs is the /click command the only way to do this?

macrotoon
a ghoul
a ghoul
Posts: 106
Joined: Wed Sep 18, 2002 4:38 pm

Post by macrotoon » Fri Oct 11, 2002 4:56 pm

click is the only way to pick up an item from inventory. I have tried using hotkeys with the weapon in main inventory, but using the hotkey number doesnt work either. Its too bad. Use the old ui. It works eaqually as well except twising for me is faster on the new ui. It seems im able to start the songs right after stoping them. Then again I havnt tested twisting much with the old ui lately.