Valhalla Legends Forums Archive | Battle.net Bot Development | Idle

AuthorMessageTime
TeEhEiMaN
I was wondering if someone can post a Basic VB Idle for cleanslatebot.
Thx
TeEhEiMaN
May 25, 2003, 6:45 PM
______
A very simple way of doing it in Minutes

[code]Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot1.Connected Then
If frmOptions.chkIdle.Value = Checked Then
counter = counter + 1
If counter >= 5 Then '5min = 5 2hrs = 120
CleanSlateBot1.Send frmOptions.antiidlemsg.Text 'send the idle message
Addtext vbBlue, txtName.Text & ": ", vbWhite, frmOptions.antiidlemsg.Text
counter = 0
End If
End If
End If
End Sub[/code]

Edit - Make it a habit to use the intergrated [ code ] and [ /code ] tags, please. Thanks.
May 25, 2003, 7:23 PM
TeEhEiMaN
thank you
May 25, 2003, 7:30 PM
TeEhEiMaN
I get an error on "Addtext" vbBlue
May 25, 2003, 7:40 PM
______


u need Gorks addtext function
http://www.valhallalegends.com/docs/rtbox.htm
May 25, 2003, 7:43 PM
TeEhEiMaN
i alrdy have that , Im not sure what the problem is?
May 25, 2003, 7:46 PM
TeEhEiMaN
Addtext vbBlue, txtName.Text & ": ",

I think the txtName.Text it the thing that mess's me up, What is the txtName?
May 25, 2003, 7:51 PM
______
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=0#msg10629 date=1053892278]
Addtext vbBlue, txtName.Text & ": ",

I think the txtName.Text it the thing that mess's me up, What is the txtName?
[/quote]

just make txtname your name u logon as
the txtname.text is under my logon event. like logged on as username
edit: txtname.text = username
May 25, 2003, 7:55 PM
TeEhEiMaN
Im still gettin the error on Addtext vbBlue, I installed that script u told me to do also.What the heck is wrong! >:(
May 25, 2003, 8:30 PM
______
create a text box name it txtname then under ur logon even when successful

txtname.text = username


or if your still having problems then you dont have the antiidle msg text box or frmoptions

Edit: All in else fails just take it out but you wont see it on your bot, but bnet will see it.
May 25, 2003, 8:33 PM
TeEhEiMaN
Does this look right for the txt Box's cause I get an error on chkIdle = GetStuff("Misc", "chkedIdle"), Once I get this im pretty sure the idle will work.


Private Sub Command1_Click()
WriteStuff "Misc", "Master", txtMaster.Text
WriteStuff "Misc", "Trigger", txtTrigger.Text
WriteStuff "Misc", "Idle", txtIdle.Text

Unload Me

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

txtMaster.Text = GetStuff("Misc", "Master")
txtTrigger.Text = GetStuff("Misc", "Trigger")
txtIdle.Text = GetStuff("Misc", "Idle")
chkIdle = GetStuff("Misc", "chkedIdle")
End Sub
May 25, 2003, 8:51 PM
______
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=0#msg10637 date=1053895909]
Does this look right for the txt Box's cause I get an error on chkIdle = GetStuff("Misc", "chkedIdle"), Once I get this im pretty sure the idle will work.


Private Sub Command1_Click()
WriteStuff "Misc", "Master", txtMaster.Text
WriteStuff "Misc", "Trigger", txtTrigger.Text
WriteStuff "Misc", "Idle", txtIdle.Text

Unload Me

End Sub

[/quote]


wheres the writestuff "Misc", "chkedIdle,chkedIdle.value
im assuming chkeidle is a check box
May 25, 2003, 9:01 PM
tA-Kane
TeEhEiMaN, please use the [ code ] and [ /code ] tags.
May 25, 2003, 9:18 PM
TeEhEiMaN
[code]
Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot1.Connected Then
If Form5.chkIdle.Value = Checked Then
counter = counter + 1
If counter >= 1 Then '5min = 5 2hrs = 120
CleanSlateBot1.Send Form5.txtIdle.Text 'send the idle message
counter = 0
End If
End If
End If
End Sub
[/Code]

Thats what I have set, It Looks i put It in perfect, It runs with out errors but does no idle, HELP ME PLZZZZZZZZZZzz
[/code]
May 25, 2003, 9:42 PM
______
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=0#msg10655 date=1053898969]
[code]

It runs with out errors but does no idle, HELP ME PLZZZZZZZZZZzz
[/code]
[/quote]

do u have text in the txtIdle.Text if so you have to wait 1 min after you turn it on.
May 25, 2003, 10:10 PM
TeEhEiMaN
I did, I got no clue why its not working, Did the script I send look right?
May 25, 2003, 10:50 PM
______
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=0#msg10655 date=1053898969]
[code]
Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot1.Connected Then
If Form5.chkIdle.Value = Checked Then
counter = counter + 1
If counter >= 1 Then '5min = 5 2hrs = 120
CleanSlateBot1.Send Form5.txtIdle.Text 'send the idle message
counter = 0
End If
End If
End If
End Sub
[/code][/quote]

Seems to be fine to me :-\

Edit: fixed badly corrupting tags.
May 25, 2003, 11:02 PM
TeEhEiMaN
If anyone has aim and could walk me throught this, I would really appreciate it. Thanks
Aim: xTeEhEiMaNx
May 26, 2003, 1:44 AM
tA-Kane
[quote author=______ link=board=17;threadid=1429;start=15#msg10664 date=1053903772]
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=0#msg10655 date=1053898969][/Code][/quote]Please remember that for some dumb reason, the tags are case-sensitive, and only work when they're completely lower-case.[/quote]
May 26, 2003, 3:25 AM
TeEhEiMaN
Here are both of the codes

Form 5 With all the TXT box's
[code]
Private Sub Command1_Click()
WriteStuff "Misc", "Master", txtMaster.Text
WriteStuff "Misc", "Trigger", txtTrigger.Text
WriteStuff "Misc", "Idle", txtIdle.Text
WriteStuff "Misc", "chkIdle", chkIdle.Value

Unload Me

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

txtMaster.Text = GetStuff("Misc", "Master")
txtTrigger.Text = GetStuff("Misc", "Trigger")
txtIdle.Text = GetStuff("Misc", "Idle")
chkIdle.Value = GetStuff("Misc", "chkIdle")
End Sub
[/code]

Forum 1 With the Code
[code]
Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot1.Connected Then
If Form5.chkIdle.Value = Checked Then
counter = counter + 1
If counter >= 1 Then '5min = 5 2hrs = 120
CleanSlateBot1.Send Form5.txtIdle.Text 'send the idle message
AddChat vbBlue, txtUsername.Text & ": ", vbWhite, Form5.txtIdle.Text
counter = 0
End If
End If
End If
End Sub
[/code]


What the fuck, Its set up perfect?!
May 26, 2003, 7:38 PM
TeEhEiMaN
Can someone please help me with this?
May 27, 2003, 4:06 AM
laurion
[quote author=TeEhEiMaN link=board=17;threadid=1429;start=15#msg10789 date=1053977903]
Forum 1 With the Code
[/quote]
May 27, 2003, 10:11 AM
RhiNo
well your code is
[code]Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot1.Connected Then
If Form5.chkIdle.Value = Checked Then
counter = counter + 1
If counter >= 1 Then '5min = 5 2hrs = 120
CleanSlateBot1.Send Form5.txtIdle.Text 'send the idle message
AddChat vbBlue, txtUsername.Text & ": ", vbWhite, Form5.txtIdle.Text
counter = 0
End If
End If
End If
End Sub[/code]
It may help if you add Form5.txtIdle.text &vbCrLf this seems to always be what my problem is when sending stuff to battle.net
May 27, 2003, 1:58 PM
Stealth
[quote author=RhiNo link=board=17;threadid=1429;start=15#msg10869 date=1054043907]
It may help if you add Form5.txtIdle.text &vbCrLf this seems to always be what my problem is when sending stuff to battle.net
[/quote]

CleanSlateBot will automatically add vbCrLf to the end of the string to be sent.

I noticed your code refers to your timer running once every minute. To my knowledge, timer object intervals are stored in integer-types [+/- 32767] that translate into milliseconds, so the highest interval you could have would be a little under 33 seconds. What interval did you specify?

What you may want to try is adding a series of messageboxes or AddChats that will occur if certain parts of the code run (ie, one inside each If statement) to see at what point it fails.
May 27, 2003, 9:13 PM
______
is the timer1 on your main form?
May 28, 2003, 1:24 PM
RhiNo
ehhh sr dont really use bnls all that often for certain reasons but thats besides the point
May 28, 2003, 2:56 PM
CrAz3D
Private Sub AntiIdle_Timer()
If frmOptions.txtIdle.text = "" Then
Exit Sub
End If
If frmOptions.txtInterval.text = "" Then
Exit Sub
End If


Idle2 = Idle2 + 1
If Idle2 >= frmOptions.txtInterval.text Then
CleanSlateBot1.Send frmOptions.txtIdle.text
Idle2 = 0
End If
End Sub

In your declares area Public Idle2 sa an integer
May 28, 2003, 3:44 PM

Search