• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Problem - /if else issue

Rare Spawn

Well-known member
Joined
Oct 10, 2022
RedCents
3,282¢
None of these work as expected from the console/hotkey/buttomaster:

[CODE title="mq cli"]/if (${Me.TributeActive}) {/dgga /multiline ; /tribute personal off;/trophy personal off} else {/dgga /multiline ; /tribute personal on;/trophy personal on}

/if (${Me.TributeActive}) {/dgga /multiline ; /tribute personal off;/trophy personal off} else /dgga /multiline ; /tribute personal on;/trophy personal on

/if (${Me.TributeActive}) {/dgga /multiline ; /tribute personal off;/trophy personal off}
[/CODE]

The problem seems to be with the {} as this doesn't work in hoitkeys, console, etc:

[CODE title="mq cli"]/if (${Me.TributeActive}) /dgga /multiline ; /tribute personal off;/trophy personal off
[/CODE]

Do the {} only work when executed from a .mac file? How can I do an if/else in a single like for hotbuttons?

Thanks in advance.
 
Last edited:
/docommand ${If[${Me.TributeActive[/dgga /multiline ; /tribute personal off; /trophy personal off,/dgga /multiline ; /tribute personal on; /trophy personal on]}

You'll also need to use an inline if/else like above.
${If[SomeCheck,IfItsTrue,IfItsFalse]}
 
no, its also an inline if he is doing, not just if
 
Problem - /if else issue

Users who are viewing this thread

Back
Top
Cart