Skip to content
MSN

Potential Help please?

A TG007 community discussion started by Absorbx_o.

Closed discussion 4 posts
Page 1 of 1
Closed
Topic #1537 · 4 published posts · 645 views

Hi All, I've got a problem with my main dialog, have you ever used Cyphers script absynthe? well anyway my main dialog has an option on it like absynthe's if a group is on that a icon will show in a grid but if its off then the off icon shows anyways moving on, this is my code to enable one of my prots:

 

kickonjoins {

if (%kickjoins == 1) {

set %kickjoins 0

}

elseif (%kickjoins == 0) {

set %kickjoins 1

}

}

 

and i want it to change the icon in the grid when its turned off or on heres a screenshot to help a little:

 

user posted image

 

as you can see when the group is off then the orange icon is whole, but when its on its got a little white hole inside it, but when i click the option to either turn it off or on i want the icon to change, any comments/help apprechiated

 

the code would have to be placed in the alias, i think it would be something like this but obviously its not else i wouldnt be posting this message

 

kickonjoins {

if (%kickjoins == 1) {

set %kickjoins 0

did -i $dname 28 1 seticon list 9, $+ brain\icons\orange.icl

 

}

elseif (%kickjoins == 0) {

set %kickjoins 1

did -i $dname 28 1 seticon list 18, $+ brain\icons\orange.icl

 

}

}

 

that code doesnt work but i think its something along those lines. Thanks in advance

Edited Sep 29, 2004 6:41 PM by Absorbx_o

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

A really handy code I made is groupcheck (or $gc)

alias gc {
 if ($group($1) == on) { .disable $1 }
 else { .enable $1 }
}

A modified version for you could be:

alias gc {
 if ($group($1) == on) { .disable $1 | set %gc 18 }
 else { .enable $1 | set %gc 9 }
}
alias kickonjoins {
$gc(#kickjoins) | did -i dname 28 1 list %gc $+ , $+ brain\icons\orange.icl
}

I put dname instead of $dname because there isn't a dialog in an alias so it doesn't know what dialog you're referring to; use the actual dialog name.

 

Still doesnt work!

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

fixed.gif

 

* end of problem *

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0