Valhalla Legends Forums Archive | Battle.net Bot Development | Squelch/Unsquelch problem SmallIcons -> Listview

AuthorMessageTime
Tass
For some reason I have a problem when the listview is refreshed when you unsquelch someone, sometimes they still show the icon that they are squelched, why is it doing this? :x

It's not sending some flags for the other people that are logged on his ip so it's not editing there icons? I think..
When I rejoin the channel they do not have the squelched icon
November 20, 2005, 6:21 PM
JoeTheOdd
See my Channel Class. Asuming your using VB, you should be able to easilly use this. Just pass your flagsupdate event to it, and their icon will be fixed.
November 20, 2005, 6:47 PM
Tass
I think the problem is that it's not getting the flag change because it works find any other time
I squelch Victory which he also has Victory[L]
When I unsquelch him I get:
[2:01:40 PM] Victory has been squelched.
[2:01:40 PM] Victory[L] Flags: 48
[2:01:40 PM] Victory Flags: 32
[2:01:47 PM] Victory[L] has been unsquelched.
[2:01:47 PM] Ops Flags: 2
[2:01:47 PM] Ops has aquired ops.
[2:01:47 PM] Legacy Flags: 2
[2:01:47 PM] Legacy has aquired ops.
[2:01:47 PM] RaGe[L] Flags: 0
[2:01:47 PM] Victim Flags: 0
[2:01:47 PM] Victory[L] Flags: 16
[2:01:47 PM] Victory Flags: 0
[2:01:47 PM] Epic Flags: 0
[2:01:47 PM] Narc Flags: 0
[2:01:47 PM] Malcolm[L] Flags: 0
[2:01:47 PM] tassinator Flags: 0
[2:01:47 PM] Doom[L] Flags: 0

It dosen't send new flags for Victory[L] when I unsquelch him, but wheN I leave channel and rejoin he's not squelched
November 20, 2005, 6:54 PM
shadypalm88
[quote author=Tass link=topic=13300.msg134810#msg134810 date=1132512867]
It dosen't send new flags for Victory[L] when I unsquelch him, but wheN I leave channel and rejoin he's not squelched
[/quote]Battle.net does send you the flag update for all users in your channel that are being unsquelched.  If I squelch Victory and unsquelch him both Victory and Victory[L] return to normal.
November 20, 2005, 7:06 PM
Tass
Ok, so where can I get some info on the Flags recieved in OnFlags?

I only don't get the change when the user gets the flags of 16 and that's usually when the user is using a ping plug. On sb it says it's UDP Plug [16], so how do I fix this??
November 20, 2005, 7:12 PM
shadypalm88
[quote author=Tass link=topic=13300.msg134814#msg134814 date=1132513936]
Ok, so where can I get some info on the Flags recieved in OnFlags?
[/quote]BnetDocs - Battle.net Flags Reference
November 20, 2005, 7:30 PM
Tass
So do you do the same thing for flags of 0 and flags of 16?
November 20, 2005, 7:38 PM
Kp
[quote author=Tass link=topic=13300.msg134819#msg134819 date=1132515504]So do you do the same thing for flags of 0 and flags of 16?[/quote]

No, I report a plug if someone has flags of 0x10 and do not report a plug for flags of 0.  You do realize that flags are a bitmask, right?
November 20, 2005, 7:42 PM
JoeTheOdd
Use the bitwise AND operator. Asume that flags are stored in m_lFlags.

[tt]If (m_lFlags And 32) Then
  'Squelched
Else
  'Not Squelched
End If[/tt]
November 20, 2005, 7:42 PM
Tass
Thanks for all your help I fixed it.
November 20, 2005, 7:47 PM

Search