Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
How to use a Randomized number
Forums
Active Threads
Search
Who's Online
Help
Print Thread
How to use a Randomized number
#
62093
28/11/03
06:07 AM
N
nafsnipe685
nafsnipe685
N
/f11 { /$rand(1,15) {
if (# == 1) { /msg $chan 12:¬) }
elseif (# == 2) { /msg $chan 13:¬) }
elseif (# == 3) { /msg $chan 14:¬) }
elseif (# == 4) { /msg $chan 15:¬) }
elseif (# == 5) { /msg $chan 11:¬) }
elseif (# == 6) { /msg $chan 10:¬) }
elseif (# == 7) { /msg $chan 9:¬) }
elseif (# == 8) { /msg $chan 8:¬) }
elseif (# == 9) { /msg $chan 7:¬) }
elseif (# == 10) { /msg $chan 6:¬) }
elseif (# == 11) { /msg $chan 5:¬) }
elseif (# == 12) { /msg $chan 4:¬) }
elseif (# == 13) { /msg $chan 3:¬) }
elseif (# == 14) { /msg $chan 2:¬) }
elseif (# == 15) { /msg $chan 1:¬) }
}
}
Is basicly the script i have, but it odviousely doesnt work!!!
How do i make a script that will use a random number and select a color smiley? It doesnt have to be in elseif terms, just needs to work!!!
Copy Link to Clipboard
Re: How to use a Randomized number
#
62094
28/11/03
06:11 AM
Joined:
Dec 2002
Posts: 3,015
London, UK
C
Collective
Hoopy frood
Collective
Hoopy frood
C
Joined:
Dec 2002
Posts: 3,015
London, UK
/f11 msg # $+(,$rand(
0
,15),:¬,$chr(41))
I marked the 0 red because your script would never give a white smiley, I don't know if that was deliberate or not, change it back to 1 if it was.
Copy Link to Clipboard
Re: How to use a Randomized number
#
62095
28/11/03
06:14 AM
N
nafsnipe685
nafsnipe685
N
I still dont understand how you would use that though!
Copy Link to Clipboard
Re: How to use a Randomized number
#
62096
28/11/03
06:19 AM
N
nafsnipe685
nafsnipe685
N
oh i figured it out, Thanks!!!!
Copy Link to Clipboard
Re: How to use a Randomized number
#
62097
28/11/03
06:23 AM
N
nafsnipe685
nafsnipe685
N
One More question though, how would you get
/f11 msg # $+(,$rand(0,15),:¬,$chr(41))
to include :¬(
instead of :¬)
Copy Link to Clipboard
Re: How to use a Randomized number
#
62098
28/11/03
06:30 AM
N
nafsnipe685
nafsnipe685
N
never mind i figued it out
/f11 msg # $+(,$rand(0,15),:¬,$chr(40))
delivers :¬(
Copy Link to Clipboard
Re: How to use a Randomized number
#
62099
28/11/03
06:43 AM
N
nafsnipe685
nafsnipe685
N
I do have one more question though, how did you know that
$chr(41) == )
Or i might ask where can i look to see what every characters number is?
Copy Link to Clipboard
Re: How to use a Randomized number
#
62100
28/11/03
06:49 AM
Joined:
Dec 2002
Posts: 3,015
London, UK
C
Collective
Hoopy frood
Collective
Hoopy frood
C
Joined:
Dec 2002
Posts: 3,015
London, UK
Goto
www.asciitable.com
. Characters can vary from font to font, but the important ones stay the same.
Copy Link to Clipboard
Re: How to use a Randomized number
#
62101
28/11/03
06:52 AM
N
nafsnipe685
nafsnipe685
N
Ok Cool!!!! And Thanks!!! Ive been looking for a place like that anyways!!!
Copy Link to Clipboard
Re: How to use a Randomized number
#
62102
29/11/03
06:28 AM
A
Alien736
Alien736
A
or if you in a hurry and you want to know an ascii value of a key that is on the keyboard while in mIRC just type //echo $asc(a) and exchange whatever you wanted in for the 'a'.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage