mIRC Home    About    Download    Register    News    Help

Print Thread
#210160 07/03/09 01:39 AM
Joined: Feb 2009
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Feb 2009
Posts: 5
Well i want to create a remote that will use variables for smileys..i cant use input for i allready have an input script.i thought it would be somehting like this :
Code:
alias sml {
  if ($1 != $null) {
    if (%sml. [ $+ [ $1 ] ] == $null) {
      set %sml. [ $+ [ $1 ] ] $$?="Greet Msg:"
    }
    else { beep $input($+(There is already a smiley set for $1 $+ .,$crlf,Check your smileys),o,Problem) }
  }
}


but i dnt know how to trigger it...any help?

Last edited by Legolioum; 07/03/09 01:39 AM.
Legolioum #210162 07/03/09 04:09 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
alias sml {
  if (!$+(%sml.,$1)) { set $+($(%sml.,$1)) $$?="Greet Msg:" }
  else { beep $input($+(There is already a smiley set for $1 $+ .,$crlf,Check your smileys),o,Problem) }
}

Syntax: /sml

Tomao #210165 07/03/09 08:35 AM
Joined: Feb 2009
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Feb 2009
Posts: 5
Ya i figured,but how can i trigger it w/o input? setting the variable n leavin it wont do smirk
Well sry for the "Greet msg" part...mixed up a few remotes smile
I need something that doesnt use input and uses variables to say what i want...like..i have if ($1 == %sml1) { say LoOoOoOoL $2- | halt}
bt how can i do it so it doesnt need me to go to variables n type it in? smirk

Legolioum #210166 07/03/09 09:33 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Use a local variable. Maybe something as such:
Code:
alias test {
  var %sml1 = blah
  if ($1 == %sml1) { say LoOoOoOoL }
}

Now when you enter: /test blah
It will return LoOoOoOoL
Then the variable unsets itself after the code finishes processing
But I don't see the point in using a local variable for this... eek

Last edited by Tomao; 07/03/09 09:41 AM.

Link Copied to Clipboard