color talker dialog

By pwnisher3 on Dec 19, 2008

this is another useless snippet. it is a color talker that made. the reason i made it like this is because i have never seen it approached this way. this does work but it is stupid. when you enter the color you want to use please add the ctrl+k and whatever

dialog CT {
  title "Color Talker"
  size -1 -1 200 24
  option dbu
  edit "", 1, 1 13 198 10, autohs
  button "Color Of Your Text", 2, 2 1 98 10, flat
  button "", 3, 100 1 99 10, flat
}
menu * {
  .Pwnisher3's Color Talker: dialog -m ct ct
}
on *:dialog:ct:*:*:{
  if ($devent == init) {
    set %ctroom $$?=" What Channel Do You Want To Talk In?"
    did -a ct 3 Send Your Text To %ctroom
  }
  if ($devent == sclick) {
    if ($did == 2) {
      set %tc  $+ $$?=" what color would you like? EX: 3,4"
    }
    if ($did == 3) {
      if ($did(1)) {
        msg %ctroom %tc $did(1)
        did -ra ct 1
      }
    }
  }
}

Comments

Sign in to comment.
`Green   -  Oct 18, 2009

lol i forgot i made this one. its so stupid tehe

 Respond  
Plekpotje   -  Dec 31, 2008

This is a very nice talker, Tnx :)

Greetz, plek

 Respond  
Blitzjager   -  Dec 19, 2008

You can combine your on dialogs

on *:dialog:ct:*:*:{
  if ($devent == init) { do this }
  if ($devent == sclick) {
    if ($did == 2) { do this }
    if ($did == 3) { do that }
  }
}

Some stuff you did wrong

on *:dialog:ct:sclick:2:{
  set %tc  $$?=" what color would you like? EX: 3,4"
}

You forgot a $+

on *:dialog:ct:sclick:*:{
  if (did == 3) {
    if (!$did(1).text || set %ct $did(1).text || say %ct)
  }

Your if is screwed up and if it did work: First you'd check if there's no text in $did(1) and if there ISN'T you go on to set no text to %ct and then message it

I fixed it up a bit.

dialog CT {
  title "Color Talker"
  size -1 -1 200 24
  option dbu
  edit "", 1, 1 13 198 10, autohs
  button "Color Of Your Text", 2, 2 1 98 10, flat
  button "", 3, 100 1 99 10, flat
} 
menu * {
  .Pwnisher3's Color Talker: dialog -m ct ct
}
on *:dialog:ct:*:*:{
  if ($devent == init) {
    set %ctroom $$?=" What Channel Do You Want To Talk In?"
    did -a ct 3 Send Your Text To %ctroom
  }
  if ($devent == sclick) {
    if ($did == 2) {
      set %tc  $+ $$?=" what color would you like? EX: 3,4"
    }
    if ($did == 3) {
      if ($did(1)) {
        msg %ctroom %tc $did(1)
        did -ra ct 1
      }
    }
  }
}

Would be nice if it was all visible at once and if it had a dropdown for the channel select.

 Respond  
pwnisher3   -  Dec 19, 2008

%tc is the text color

 Respond  
^Neptune   -  Dec 19, 2008
  else {
    set %ct $did(1).text
    msg %ctroom %tc %ct
  }

What the heck is the point in that?

msg %ctroom $did(1).text %ct
 Respond  
pwnisher3   -  Dec 19, 2008

i don't know any other way to script it so i use that

 Respond  
guest598594   -  Dec 19, 2008

Again, I don't see what you're trying to do here:

    if (!$did(1).text || set %ct $did(1).text || say %ct) 
 Respond  
pwnisher3   -  Dec 19, 2008

god i'm making the most pointless scripts. you people must be embarrassed to even know me lol :P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.