Discussion in   FAQ's   started     11 years ago   August 15, 2013, 07:42:18 AM   by   Peterr

Status bar / Bag auto opener

Peterr
Offline
129 Posts
Topic :   Status bar / Bag auto opener
11 years ago  August 15, 2013, 07:42:18 AM

it was driving me nuts that i have to open bags time and time again after i recall/moongate and whatnot. AssistUO can't do it, i asked on the forum...

So, here's an EasyUO macro that fixes that. The code is looped - in the below example when i hit ALT+a the code will run. In the below example it opens my status bar (large format), backpack and two sub bags. Choose a key combo that can't be hit when chatting or weird stuff might happen.

Some explanation:
event macro 8 2 = status bar
event macro 8 7 = backpack

Other bags can't be opened by system variable, and have to be opened by assigning the bag ID to last used object (event macro 17). You put the gumps anywhere on screen with contpos X Y
I wrote the loop with other subs in mind, but i'm writing this with one eye open - so check back later :p

To find the position of a bag: Open the bag, and look in EasyUO -> Container Info -> CONTPOSX/CONTPOSY
Those are the X and Y position on your screen for the bag you opened

Code: [Select]
set #lpc 1000
repeat
  onhotkey a alt
    gosub hotkey
  sleep 1
until #false

sub hotkey
{
  event macro 8 2
  wait 15
  contpos 392 624
  wait 15
  event macro 8 7
  wait 15
  contpos 796 613
  wait 15
  set %pack NYWUVMD
  set #lObjectID %pack
  event macro 17
  wait 15
  contpos 1099 387
  wait 15
  set %pack FPPBSMD
  set #lObjectID %pack
  event macro 17
  wait 15
  contpos 1033 601
  return
}

SirGuybrush
Offline
33 Posts
#1 Re :   Status bar / Bag auto opener
11 years ago  August 15, 2013, 08:41:26 AM

 I am using macro to re-equip all of my gear after death with a single hit.
Thanks for sharing, macros are useful :)