Jump to content
  • 0

Menu Change Colors


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  740
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

$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

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Like this

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

mes "^00FF00Active^000000";

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  740
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

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

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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...