• Welcome to Valhalla Legends Archive.
 

Re: For all VB users using cleanslatebot.ocx

Started by tty, March 04, 2005, 07:03 PM

Previous topic - Next topic


Spilled

Quote from: The_Lost_One on March 17, 2003, 06:23 AM
can u make the addchat() in vb...?

here:


Public Function AddChat(ParamArray saElements() As Variant)
    Dim i As Integer
        With frmMain.rtbChat
        .SelStart = 999999999
        .SelLength = 0
        .SelColor = &HE0E0E0
        .SelText = "[" & Format$(Time, "hh:mm:ss] ")
        .SelStart = 999999999
        End With
    For i = LBound(saElements) To UBound(saElements) Step 2
        With frmMain.rtbChat
        .SelStart = 999999999
        .SelLength = 0
        .SelColor = saElements(i)
        .SelText = saElements(i + 1) & Left$(vbCrLf, -2 * CLng((i + 1) = UBound(saElements)))
        .SelStart = 999999999
        End With
    Next i
       
End Function


use it like this:

Addchat vbGreen, "message here"


Enjoy.

Warrior

Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Warrior

Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?