Moderator: MacroQuest Developers
Code: Select all
[SwapCommands]
NormNeck=ifin?Qeynos Badge of Honor:Neck?-1?pickup:neck/pickup:Qeynos Badge of Honor/Empty?
FightNeck=ifin?Broken Shore Shell Necklace:Neck?-1?pickup:neck/pickup:Broken Shore Shell Necklace/Empty?
NormMain=ifin?Foraging Machette:MainHand?-1?pickup:MainHand/pickup:Foraging Machette/Empty?
FightMain=ifin?Scimitar of the Emerald Dawn:MainHand?-1?pickup:MainHand/pickup:Scimitar of the Emerald Dawn/Empty?
NormOff=ifin?Grandmaster Baker's Spoon:OffHand?-1?pickup:OffHand/pickup:Grandmaster Baker's Spoon/Empty?
FightOff=ifin?Tactician's Bulwark:OffHand?-1?pickup:OffHand/pickup:Tactician's Bulwark/Empty?
Armswitch=swap:Elder Spiritist's Vambraces=Elysian Armplates





I'll look into writing three more core subs that handle slots inside your bank or bigbank window.Any chance this could be expand this to support bank slots, as well?
No. Don't get confused when I talk about my macro 'parsing' the command line. It isn't using MQ2's parser. The macro simply takes the command line it's given and breaks it down into separate commands via the String.Arg function. The | indicates the end of one command and the begining of the next.You mentioned not to use |s in the if statements, but to use / instead? Does that mean you can use // as an or statement in an if, and it will parse correctly?
Code: Select all
#define AddSlotArray(name,count,start) \
for (i = 0 ; i < count ; i++)\
{\
sprintf(szOut,#name"%d",i+1);\
ItemSlotMap[szOut]=start+i;\
}
[color=yellow]
AddSlotArray(bank,16,2000);
AddSlotArray(sharedbank,2,2500);
AddSlotArray(trade,8,3000);
AddSlotArray(world,10,4000);
AddSlotArray(enviro,10,4000);
AddSlotArray(loot,31,5000);
AddSlotArray(merchant,80,6000);
AddSlotArray(bazaar,80,7000);
AddSlotArray(inspect,31,8000);
[/color]
#undef AddSlotArray
Code: Select all
bank1-16
Sharedbank1-2
trade1-8
world1-10
enviro1-10
loot1-31
merchant1-80
bazaar1-80
inspect1-31
Code: Select all
Pickup:Mainhand|Moveto:Singing Short Sword>offhand|Moveto:Whip of Unending Pain>mainhand|Empty