Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: kazooie on May 31, 2003, 11:33 PM

Title: help a newb
Post by: kazooie on May 31, 2003, 11:33 PM
need help with idle msg's,

any help is appreciated
Title: Re:help a newb
Post by: Busted51 on June 01, 2003, 12:17 AM
Private Sub AntiIdle_Timer()
'notice this timers interval is 1000, that is for 1 second
IdleTick = IdleTick + 1 'this is a public variable, it adds a
'second to the variable each time the timer executes
If IdleTick >= 120 Then 'if 2 minutes have gone by then...
SendChat "./me - " & IniIdle & " (Bot Name)"
IdleTick = 0 'reset the variable to start over
End If
End Sub

The       "./me - " & IniIdle & " (Bot Name)"
                   

                       is a fourm glitch.. sorry...
Title: Re:help a newb
Post by: tA-Kane on June 02, 2003, 02:08 PM
Quote from: Busted51 on June 01, 2003, 12:17 AMis a fourm glitch.. sorry...
I don't beleive it would be if you'd use the [ code ] tags.