Jump to content
  • 0
Bringer

Menu Change Colors

Question

$EVT_Dice == 1
$EVT_Poring == 1
$EVT_LMS == 1
switch(select("Dice Event:Poring Event:LMS Event")) {
	case 1:
		mes "blablbala";
	case 2:
		mes "blablbala";
	case 3:
		mes "blablbala";
		}
^FF0000Not Available^000000" "^00FF00Active^000000"

how to do it when events active and menu option change colors

Edited by Bringer
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

Then:

switch(select( (!$EVT_Dice)?"^FF0000Dice^000000":"^00FF00Dice^000000", (!$EVT_Poring)?"^FF0000Poring Event^000000":"^00FF00Poring Event^000000",(!$EVT_LMS)?"^FF0000LMS Event^000000":"^00FF00LMS Event^000000")) {
case 1:
case 2:
case 3:
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0
24 minutes ago, WhiteEagle said:

Like this

case 1:
if (!$EVT_Dice) {
mes "^FF0000Not Available^000000";
}

mes "^00FF00Active^000000";

 

the menu option

Link to comment
Share on other sites

  • 0
prontera,155,181,5	script	sample	757,{
	switch(select(
		"Dice Event - " + ($EVT_Dice ? "^FF0000Not Available":"^00FF00Active") + "^000000",
		"Poring Event - " + (!$EVT_Poring ? "^FF0000Not Available":"^00FF00Active") + "^000000",
		"LMS Event - " + ($EVT_LMS ? "^FF0000Not Available":"^00FF00Active") + "^000000"
	)) {
	case 1:
		mes "blablbala";
	case 2:
		mes "blablbala";
	case 3:
		mes "blablbala";
	}
	close;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.