IceChat Forums

IceChat 5 Scripting => Uploaded Scripts => Topic started by: Snerf on May 11, 2004, 06:05:39 PM

Title: Color Nick Completer
Post by: Snerf on May 11, 2004, 06:05:39 PM
This uses the Scripting NICKCOMPLETE

Function
Place this into a current Script File, or put it in a new one.
This will use random colors for the nick

completer.

Unload the Script File if you wish to turn this off.


Code: [Select]
Function NickComplete(nick)
NickAddTextBegin = "<--"
NickAddTextEnd = "-->"

MyColors = Array(1,2,3,4,5,6,7,9,10,12,13,14,16,17,18,19,20,21,22,23,24)

Randomize
MyColor = MyColors(Int((UBound(MyColors) * Rnd) + 0))
Randomize
MyNickColor = MyColors(Int((UBound(MyColors) * Rnd) + 0))
NewNick = "" & MyColor & NickAddTextBegin & " " & MyNickColor & Nick & " " & MyColor & NickAddTextEnd & ""

NickComplete = NewNick

End Function