FEAT REQ: Case Statement

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

FEAT REQ: Case Statement

Post by SingleServing » Fri Dec 27, 2002 9:48 pm

Um yea ^ that says it all

case:

"joe" do this

"jane" do that

"dec skely" kill

"Tormax" /shout rez plz

If you can read this you don't need glasses!
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sat Dec 28, 2002 12:17 am

Salutations,

Code: Select all

/Select v0 {
/case "attack on" {
    /attack on
    /breakcase
/case "attack off" 
    /attack off
    /breakcase
/case "sit":
    /sit on
    /breakcase
/case "stand":
    /sit off
    /breakcase
}
*shrugs*

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Sat Dec 28, 2002 5:38 pm

um, i dont think case is in the code base...
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

Mutter
a ghoul
a ghoul
Posts: 105
Joined: Sat Nov 16, 2002 1:09 pm

AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHh

Post by Mutter » Sat Dec 28, 2002 7:00 pm

Your shitting me!! There is case?? Why does everyone use these awful elseif elseif staements then??!

Geesh. I never knew it was intentional. More then 2 elseif's are a waste of code.

LOL

OMG

Now to re-write EVERY macro.

sigh :-)

Lizard u are my hero! Even if you DO boil my blood! LOL

:twisted:

You know how easy my loot script just got? Now if we only had NEWUI. I'd die happy :)

Mutter
a ghoul
a ghoul
Posts: 105
Joined: Sat Nov 16, 2002 1:09 pm

Sorry

Post by Mutter » Sat Dec 28, 2002 7:16 pm

Sorry if that came off harsh. Bad day here.

Anyhow, where do you guys FIND these commands?

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Mon Dec 30, 2002 1:38 am

case is NOT in the latest codebase...
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Mon Dec 30, 2002 5:33 pm

Salutations,
You all misunderstood me, the case statement code I put out was what I invisioned the case statement workign as inside MQ, it is NOT legal code at all...

S_B_R
a lesser mummy
a lesser mummy
Posts: 72
Joined: Tue Jul 30, 2002 11:12 am

Post by S_B_R » Tue Dec 31, 2002 10:19 am

I requested OR for /if's quite awhile ago.... Basically the same functionality as a case statement.... I think case would be a cleaner idea though.

It would be nice to have AND for if's too though ;)
[b]dd if=/dev/zero of=/dev/hda[/b]

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Dec 31, 2002 5:34 pm


S_B_R
a lesser mummy
a lesser mummy
Posts: 72
Joined: Tue Jul 30, 2002 11:12 am

Post by S_B_R » Wed Jan 01, 2003 4:59 pm

Cool, Thanks L12 :mrgreen:
[b]dd if=/dev/zero of=/dev/hda[/b]

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: FEAT REQ: Case Statement

Post by xyilla » Sat Aug 30, 2025 12:15 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: FEAT REQ: Case Statement

Post by xyilla » Sat Aug 30, 2025 12:17 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: FEAT REQ: Case Statement

Post by xyilla » Sat Aug 30, 2025 12:18 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: FEAT REQ: Case Statement

Post by xyilla » Sat Aug 30, 2025 12:19 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: FEAT REQ: Case Statement

Post by xyilla » Sat Aug 30, 2025 12:20 pm