Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: CrAz3D on May 30, 2004, 11:45 PM

Title: Odd War3 Problem
Post by: CrAz3D on May 30, 2004, 11:45 PM
Quote[10:37:42 PM] «CrAz3D»rejoin/reconnect or w/e plz?
[10:37:48 PM] Retained has left then channel
[10:37:50 PM] Retained has joined has joined the channel using WAR3 with a ping of 31 and the flags 0
[10:37:50 PM] Retained is in the channel using WAR3 with a ping of 31 and the flags 0

Retained (a stealthbot) leaves the channel, the enters the channel.  Upon entering I recieve a Join event & a User event.

Any ideas what I'm doing wrong?...this has only happened when bot the bot rejoinning & my bot are both on WAR3.


OnUser Code:
If Flags And &H2 Then
   Form1.RoomList.ListItems.Add 1, , Username
       Form1.RoomList.FindItem(Username).ForeColor = vbGreen
       Form1.RoomList.ListItems(1).ListSubItems.Add , , Funcs.ReverseString(Left(Message, 4))
       Form1.RoomList.ListItems(1).ListSubItems.Add , , Ping
   Form1.RoomList.ListItems(1).ToolTipText = Username & ":" & Funcs.ReverseString(Left(Message, 4)) & ":" & Ping
Else
   Form1.RoomList.ListItems.Add , , Username
       Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ListSubItems.Add , , Funcs.ReverseString(Left(Message, 4))
       Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ListSubItems.Add , , Ping
   Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ToolTipText = Username & ":" & Funcs.ReverseString(Left(Message, 4)) & ":" & Ping
End If


OnJoin Code:
Form1.RoomList.ListItems.Add , , Username
       Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ToolTipText = Username & ":" & Funcs.ReverseString(Left(Message, 4)) & ":" & Ping
       Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ListSubItems.Add , , Funcs.ReverseString(Left(Message, 4))
       Form1.RoomList.ListItems(Form1.RoomList.ListItems.Count).ListSubItems.Add , , Ping
Title: Re:Odd War3 Problem
Post by: Eric on May 30, 2004, 11:54 PM
It's a stats update.
Title: Re:Odd War3 Problem
Post by: CrAz3D on May 30, 2004, 11:55 PM
So ignore it, if I don't care what the user's stats are?
Title: Re:Odd War3 Problem
Post by: PaiD on May 30, 2004, 11:57 PM
Correct
Title: Re:Odd War3 Problem
Post by: CrAz3D on May 31, 2004, 12:03 AM
Stupid war3...or not

Thanks
Title: Re:Odd War3 Problem
Post by: Eric on May 31, 2004, 12:27 AM
Quote from: CrAz3D on May 31, 2004, 12:03 AM
Stupid war3...or not

Thanks
Same thing happens with D2.
Title: Re:Odd War3 Problem
Post by: CrAz3D on May 31, 2004, 10:22 AM
Alrighty then, I just decided to ignore all of the info, I wouldn't use it/display it anway.  Thanks
Title: Re:Odd War3 Problem
Post by: DarkMinion on May 31, 2004, 01:14 PM
Why wouldn't you use it?
Title: Re:Odd War3 Problem
Post by: CrAz3D on May 31, 2004, 02:05 PM
My bot isn't much of a chat bot, is has a chat box & a send textbox, that is all in the way of chatting.