Welcome, Guest. Please login or register.
Did you miss your activation email?
November 29, 2024, 01:18:03 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: Some looting macro for experts! by Hardtime  (Read 4242 times)
s0rcier
Newbie
*
Posts: 38


View Profile
« on: November 04, 2018, 01:36:10 am »

macro movetoloot.mac
Code:
Sub Main
    /squelch /hidecorpse looted

    /if (!${Target.Type.Equal[CORPSE]}) {
   /target npc corpse radius 50
/delay 3
}

/if (!${Target.Type.Equal[CORPSE]}) {
/endm
}

/if (${Window[LootWnd]}) {
/endm
}

:Wait4Distance
/if (${Target.Distance}>10) {
/delay 1
/if (!${Stick.Active}) /stick 5
/goto :Wait4Distance
}
/echo looting corpse id ${Target.ID}
/loot
/return

macro movetolootdone.mac
Code:
Sub Main
    /squelch /hidecorpse looted

    /if (!${Target.Type.Equal[CORPSE]}) {
   /target npc corpse radius 50
         /delay 3
    }

/if (!${Target.Type.Equal[CORPSE]}) {
/endm
}

/if (${Window[LootWnd]}) {
/nomodkey /notify LootWnd LW_DoneButton leftmouseup
/endm
}

:Wait4Distance
/if (${Target.Distance}>10) {
/delay 1
/if (!${Stick.Active}) /stick 5
/goto :Wait4Distance
}
/echo looting corpse id ${Target.ID}
/loot
/return

macro movetolootall.mac
Code:
Sub Main
    /squelch /hidecorpse looted

/if (${Window[OptionsWindow].Child[OGP_LootAllConfirmCheckBox].Checked}) /nomodkey /notify OptionsWindow OGP_LootAllConfirmCheckBox leftmouseup

    /if (!${Target.Type.Equal[CORPSE]}) {
   /target npc corpse radius 50
/delay 3
}

/if (!${Target.Type.Equal[CORPSE]}) {
/endm
}

/if (${Window[LootWnd]}) {
/nomodkey /notify LootWnd LW_LootAllButton leftmouseup
/endm
}

:Wait4Distance
/if (${Target.Distance}>10) {
/delay 1
/if (!${Stick.Active}) /stick 5
/goto :Wait4Distance
}
/echo looting corpse id ${Target.ID}
/loot
/return

make a hotkey  toc all the macro
ie: line 1: /mac movetoloot

press that hotkey and enjoy Smiley

difference between the 3...

movetoloot.mac will target and move to the closest corpse and open the loot window for ya and echo the target ID in the macroquest window

last 2 use at your own risk Tongue

movetolootdone.mac do the same things as movetoloot, but if you press the button again when the loot window is open it will click the done button and close it...

movetolootall.mac do the same thing as movetoloot.mac but if you press the button again when the loot window is open it will click the loot all with no confirmation at all and close it..

Thanks to dimurwar for helping me out...

Hardtime Findinganame


« Last Edit: November 04, 2018, 01:44:04 am by s0rcier » Logged
Sarthin
Administrator
Legend
*****
Posts: 1036

Common sense is not so common


View Profile
« Reply #1 on: November 04, 2018, 08:45:47 am »

Nice one  Grin
Logged

Pages: [1]
Print
Jump to:  

Recent

Stats

Members
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 298
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 327
Total: 327
TinyPortal v1.0 beta 4 © Bloc