Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Dayclone on April 12, 2003, 10:37 AM

Title: Spam Ban Code?
Post by: Dayclone on April 12, 2003, 10:37 AM
Anyone have a spam ban code that is really good pelase give it to me? Thnx
Title: Re:Spam Ban Code?
Post by: haZe on April 12, 2003, 12:09 PM
what the hell do you mean, spamban? if you mean to check if they are spamming the same thing, just save the message and username in a variable or array then check it everytime someone talks. ^^
Title: Re:Spam Ban Code?
Post by: Dayclone on April 12, 2003, 12:35 PM
No is someone started spammnig like hi hi hi hi over and over they get kicked or either banned.
Title: Re:Spam Ban Code?
Post by: haZe on April 12, 2003, 12:41 PM
Quote from: haze the cow on April 12, 2003, 12:09 PM
what the hell do you mean, spamban? if you mean to check if they are spamming the same thing, just save the message and username in a variable or array then check it everytime someone talks. ^^
You would still do that.
Title: Re:Spam Ban Code?
Post by: Dayclone on April 12, 2003, 12:54 PM
would you know what is wrong with this code it always says compile error me a newbie at this i just need help from other ppl so i can learn :)

'Form Code
Private Sub form_load()      ( Highlighted Yellow )
   Dim s As String
   Close #1
   rtbChat.BackColor = vbBlack
   rtbChat.Font.Size = 8
   lvChannel.View = lvwSmallIcon
   AddChat &H99CC00, "Welcome to Vi0lNtBot v1.00 Test Edition by l)ayclone]XV["
   frmChat.KeyPreview = True
   frmChat.Caption = ":: Vi0lNtBot v1.00 Test Edition :: Disconnected ::"
   frmAbout.lblTitle.Caption = ":: Vi0lNtBot v1.00 Test Edition"
   Me.Show
   Me.Refresh
   AutoClear = True
   
   s = Dir$(App.Path & "\quickchannels.txt")
           If s = "" Then
               lbQC.AddItem "Clan x]XV[x"
               mnuQC1.Caption = lbQC.List(0)
               mnuQC2.Caption = lbQC.List(1)
               mnuQC3.Caption = lbQC.List(2)
               mnuQC4.Caption = lbQC.List(3)
               mnuQC5.Caption = lbQC.List(4)
               Exit Sub
           End If
   
   Open (App.Path & "\quickchannels.txt") For Input As #1
   Do
       Input #1, s
       lbQC.AddItem s
   Loop Until EOF(1)
       mnuQC1.Caption = lbQC.List(0)
       mnuQC2.Caption = lbQC.List(1)
       mnuQC3.Caption = lbQC.List(2)
       mnuQC4.Caption = lbQC.List(3)
       mnuQC5.Caption = lbQC.List(4)
End Sub
Title: Re:Spam Ban Code?
Post by: haZe on April 12, 2003, 01:11 PM
What's it highlight.
Title: Re:Spam Ban Code?
Post by: Dayclone on April 12, 2003, 04:33 PM
and i'm thinking the part that's wrong is  

lvChannel.View = lvwSmallIcon        

but i edited the one up top where it's highlighted
Title: Re:Spam Ban Code?
Post by: ILurker on April 12, 2003, 04:36 PM
What does the error state?, and what does it highlight?
Title: Re:Spam Ban Code?
Post by: Banana fanna fo fanna on April 12, 2003, 06:09 PM
Dayclone, buy a VB book.
Title: Re:Spam Ban Code?
Post by: Etheran on April 12, 2003, 06:10 PM
I never required a VB book.. :p
Title: Re:Spam Ban Code?
Post by: Banana fanna fo fanna on April 12, 2003, 06:12 PM
Well Dayclone does, along with a good spanking and visit from the copyright police.
Title: Re:Spam Ban Code?
Post by: Dayclone on April 12, 2003, 09:21 PM
Is it Copyright legally ? hmmmm thnik about that b4 u say soemthin like that. and a VB book heh.... mayb

Ther error is


Compile Error:   Method or data member not found.

'Form Code
Private Sub form_load()   ( highlighted yellow )
   Dim s As String
   Close #1
   rtbChat.BackColor = vbBlack
   rtbChat.Font.Size = 8
   lvChannel.View = lvwSmallIcon         ( something wrong here? )
   AddChat &H99CC00, "Welcome to Vi0lNtBot v1.00 Test Edition by l)ayclone]XV["
   frmChat.KeyPreview = True
   frmChat.Caption = ":: Vi0lNtBot v1.00 Test Edition :: Disconnected ::"
   frmAbout.lblTitle.Caption = ":: Vi0lNtBot v1.00 Test Edition"
   Me.Show
   Me.Refresh
   AutoClear = True
   
   s = Dir$(App.Path & "\quickchannels.txt")
           If s = "" Then
               lbQC.AddItem "Clan x]XV[x"
               mnuQC1.Caption = lbQC.List(0)
               mnuQC2.Caption = lbQC.List(1)
               mnuQC3.Caption = lbQC.List(2)
               mnuQC4.Caption = lbQC.List(3)
               mnuQC5.Caption = lbQC.List(4)
               Exit Sub
           End If
   
   Open (App.Path & "\quickchannels.txt") For Input As #1
   Do
       Input #1, s
       lbQC.AddItem s
   Loop Until EOF(1)
       mnuQC1.Caption = lbQC.List(0)
       mnuQC2.Caption = lbQC.List(1)
       mnuQC3.Caption = lbQC.List(2)
       mnuQC4.Caption = lbQC.List(3)
       mnuQC5.Caption = lbQC.List(4)
End Sub
Title: Re:Spam Ban Code?
Post by: Banana fanna fo fanna on April 12, 2003, 09:58 PM
Does it say copyright in the src you stole? Most likely.
Title: Re:Spam Ban Code?
Post by: Dayclone on April 12, 2003, 10:02 PM
Nope not really i got it off a site i think it was the disclaimer or somethin
Title: Re:Spam Ban Code?
Post by: Spht on April 13, 2003, 09:14 AM
Quote from: Dayclone on April 12, 2003, 10:02 PM
Nope not really i got it off a site i think it was the disclaimer or somethin

I somehow doubt that very much.
Title: Re:Spam Ban Code?
Post by: Banana fanna fo fanna on April 13, 2003, 10:20 AM
+1 to Haze because he's off of my list.