EZ Server

General Category => General Discussion => Topic started by: s0rcier on November 04, 2018, 01:36:10 am



Title: Some looting macro for experts! by Hardtime
Post by: s0rcier 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 :)

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 :P

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




Title: Re: Some looting macro for experts! by Hardtime
Post by: Sarthin on November 04, 2018, 08:45:47 am
Nice one  ;D