Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 03:59:08 pm *

Login with username, password and session length
Pages: 1 2 3 [4]
Print
Author Topic: Quality of Life macro commands  (Read 38615 times)
Rakharth
Full Member
***
Posts: 141


View Profile
« Reply #45 on: December 07, 2018, 03:28:54 pm »

Line 1: /tar corpse
Line 2: /docommand ${If[${Target.Distance}<10,/loot,/multiline ; /docommand ${If[${Target.Distance}<100,/stick 5,]} ; /bc Moving closer to corpse]}
Line 3: /notify LootWnd LW_LootAllButton leftmouseup
Line 4: /notify ConfirmationDialogBox No_Button leftmouseup
Line 5: /popup ${SpawnCount[radius 70 corpse]} corpses left to loot

[/quote]


Cant get this to work for me doesn't click loot all button
Logged

Sarthin
Administrator
Legend
*****
Posts: 1017

Common sense is not so common


View Profile
« Reply #46 on: December 07, 2018, 03:52:59 pm »

I just tested it and it works perfect for me. What MQ2 compile do you run?
Logged

Rakharth
Full Member
***
Posts: 141


View Profile
« Reply #47 on: December 07, 2018, 09:34:04 pm »

Rof2 one
Logged

RedDwarf
Full Member
***
Posts: 130



View Profile
« Reply #48 on: December 08, 2018, 06:18:14 am »

Where from and how old
Lots of different builds out there
MQEmulator/Redguides/MMOBugs/Own Build etc etc

Red
Logged

Rakharth
Full Member
***
Posts: 141


View Profile
« Reply #49 on: December 08, 2018, 07:17:37 am »

MQemulator
Logged

s0rcier
Newbie
*
Posts: 38


View Profile
« Reply #50 on: December 08, 2018, 09:43:18 pm »

Line 1: /tar corpse
Line 2: /docommand ${If[${Target.Distance}<10,/loot,/multiline ; /docommand ${If[${Target.Distance}<100,/stick 5,]} ; /bc Moving closer to corpse]}
Line 3: /notify LootWnd LW_LootAllButton leftmouseup
Line 4: /notify ConfirmationDialogBox No_Button leftmouseup
Line 5: /popup ${SpawnCount[radius 70 corpse]} corpses left to loot



Cant get this to work for me doesn't click loot all button
[/quote]

not sure what u are trying to achieve but u can download macro movetolootall posted in another thread and make this hotkey
Code:
Line 1: /mac movetolootall

it does everything you are looking for Wink
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #51 on: September 13, 2020, 02:22:34 pm »

Someone on RedGuides asked if there was a way to turn audio off on all EQ windows in the background and only have audio on for the window in the foreground, so I whipped this up and thought I'd share it here as well.

You could just drop a sub in your Main loop to set any EQ window in the foreground to load whatever your desired sound settings are and to turn all sound settings off when in the background.
Slider values are base 5 iirc, so to set your volume to 50 on slider values you'd use 10, something like this would work I think. I'm not logged on to test it but if it doesn't work let me know.
Code:
    Sub Main
        ...stuff
        /call AudioHandler
    /return

    Sub AudioHandler
        /if (!${EverQuest.Foreground}) {
            /notify OptionsGeneralPage OGP_SoundRealismSlider newvalue 0
            /notify OptionsGeneralPage OGP_MusicVolumeSlider newvalue 0
            /notify OptionsGeneralPage OGP_SoundVolumeSlider newvalue 0
            /if (${Window[OptionsGeneralPage].Child[OGP_EnvSoundsCheckbox].Checked}) /notify OptionsGeneralPage OGP_EnvSoundsCheckbox leftmouseup
            /if (${Window[OptionsGeneralPage].Child[OGP_CombatMusicCheckbox].Checked}) /notify OptionsGeneralPage OGP_CombatMusicCheckbox leftmouseup

        } else {
            /notify OptionsGeneralPage OGP_SoundRealismSlider newvalue 10
            /notify OptionsGeneralPage OGP_MusicVolumeSlider newvalue 10
            /notify OptionsGeneralPage OGP_SoundVolumeSlider newvalue 10
            /if (!${Window[OptionsGeneralPage].Child[OGP_EnvSoundsCheckbox].Checked}) /notify OptionsGeneralPage OGP_EnvSoundsCheckbox leftmouseup
            /if (!${Window[OptionsGeneralPage].Child[OGP_CombatMusicCheckbox].Checked}) /notify OptionsGeneralPage OGP_CombatMusicCheckbox leftmouseup
        }
    /return
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #52 on: September 13, 2020, 02:39:27 pm »

I'm not sure how much people mess around with MQ2 and TLOs, but for anyone interested, I wrote a quick macro to return all of the members for any TLO.  Without getting into too much detail, a TLO is a top level object for MQ2 and is basically how you get a value returned for a query. 

/echo ${Me.Race}

The TLO in this case is the ${Me} and the member is Race. There are 316 members that ${Me} can access and you can use this macro to identify or any TLO for that matter.  This macro will watch for event triggers, this way you can pass a value to the subroutine to evaluate.  If I want the members for ${Window} TLO, I supply that as part of the echo command.

I did make it only spit out 100 at a time, if there are more than 100 members it pauses the macro and you can display the next 100 by typing /mqp and hitting enter.

/echo gmember window

This lists all 36 members for the window TLO.  If none of this makes sense, read the MacroQuest 2 wiki TLO section.  Just wanted to post this in case anyone else can benefit from it.

Code:
    #Event GetMember "[MQ2] gmember #1#"

    Sub Main
        /doevents
    /return

Sub Event_GetMember(Line, Member)
/declare n int local
/echo Members for ${Member}
/for n 1 to 100
/if (${Type[${Member}].Member[${n}].Length}>0) /echo ${n}. ${Type[${Member}].Member[${n}]}
/next n
/if (${Type[${Member}].Member[101].Length}>0) {
/echo Type /mqp to iterate through the next 100 members
/mqp
/for n 101 to 200
/if (${Type[${Member}].Member[${n}].Length}>0) /echo ${n}. ${Type[${Member}].Member[${n}]}
/next n
}
/if (${Type[${Member}].Member[201].Length}>0) {
/echo Type /mqp to iterate through the next 100 members
/mqp
/for n 201 to 300
/if (${Type[${Member}].Member[${n}].Length}>0) /echo ${n}. ${Type[${Member}].Member[${n}]}
/next n
}
/if (${Type[${Member}].Member[301].Length}>0) {
/echo Type /mqp to iterate through the next 100 members
/mqp
/for n 301 to 400
/if (${Type[${Member}].Member[${n}].Length}>0) /echo ${n}. ${Type[${Member}].Member[${n}]}
/next n
}
/return
Logged
Pages: 1 2 3 [4]
Print
Jump to:  

Recent

Stats

Members
Stats
  • Total Posts: 64979
  • Total Topics: 5051
  • Online Today: 62
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 31
Total: 31
TinyPortal v1.0 beta 4 © Bloc