mIRC Home    About    Download    Register    News    Help

Print Thread
#15701 17/03/03 12:12 AM
Joined: Mar 2003
Posts: 34
L
Lucres Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Mar 2003
Posts: 34
Is it possible to set jokes with variables, or do you have to use $read?

cant you do something like:
on *:text:!Submit *:#: { set %joke [ $+ [ $2 ] ] $3- | msg......

and
on *:text:!Joke *:#: { msg $chan Joke $2 $+ : %joke [ $+ [ $2 ] ] }

....... or do you HAVE to use $read? -MT


Heh..
#15702 17/03/03 01:07 AM
Joined: Dec 2002
Posts: 271
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
you can use variables if you want to, but i would use something like this:


on *:text:!submit*:*:{
if ($joke($2)) {
privmsg $chan $2 Already Appears To Be In The List Of Jokes...
return
}
joke $2 $3-
privmsg $chan $2 Added To Joke List...
}


on *:text:!joke*:*:{
if (!$joke($2)) {
privmsg $chan $2 Doesnt Appear To Be In The Joke List... !submit $2- <joke message> --> To Add A Joke
return
}
privmsg $chan $joke($2)
}


alias joke {
if ($isid) {
return $readini(jokes.ini,main,$1)
}
writeini -n jokes.ini main $1-
}


Thats a basic start for ya, just one of the many ways you can start something like that off, but remember, thats just a basic example, i can go wayyyyyyyy farther into detail, and add option after option, however, i have other things to do aswell, and dont feel like making the whole thing for you :P

so there is a good starting point.... atleast i think it is wink

#15703 17/03/03 09:31 PM
Joined: Mar 2003
Posts: 34
L
Lucres Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Mar 2003
Posts: 34
LOL Thankyou, NightChillz


Heh..

Link Copied to Clipboard