Valhalla Legends Forums Archive | Battle.net Bot Development | Channel view help!!

AuthorMessageTime
EviL_MarinE
Hey, my bot is working and connected to battle.net now (my coding woo!), but i am stuck on Channel View, i have this atm:

[code]
Username = PublicModule.KillNull(Mid(Data, 29))
ListView1.ListItems.Add Username
[/code]

I have a feeling i need more to add to that, and more coding, but like what :(

Cany anybody help me on this?
November 8, 2004, 7:14 PM
Quarantine
How does one make a Connection to Battle.net yet not know how to add something to a listview?
November 8, 2004, 8:00 PM
Yegg
he didn't make that big an error, only the adding part if ur just adding a user name u could do

[code]ListView1.ListItems.Add , , username[/code]
November 8, 2004, 11:54 PM
Minux
[quote author=Warrior link=topic=9473.msg87939#msg87939 date=1099944035]
How does one make a Connection to Battle.net yet not know how to add something to a listview?
[/quote]

He obviously didn't, but it's not going to get better when people like Yegg just go and post the answer without explaining it. Which results in Copy/Paste.
November 9, 2004, 1:20 AM
Yegg
well sorry if i helped some1.
November 9, 2004, 1:33 AM
BaDDBLooD
[quote author=Yegg link=topic=9473.msg88007#msg88007 date=1099963994]
well sorry if i helped some1.
[/quote]

i think the point of his post was that you didn't help anyone.

just EDIT your post explaining why you need to have , , when adding only text.
November 9, 2004, 1:40 AM
EviL_MarinE
I made a attempt and missed , ,

[quote author=Warrior link=topic=9473.msg87939#msg87939 date=1099944035]
How does one make a Connection to Battle.net yet not know how to add something to a listview?
[/quote]

It is my my coding........

Thx for help guys

oh and, can sum1 explain why i have to have , , ?
November 9, 2004, 6:46 PM
l2k-Shadow
[quote author=EviL_MarinE link=topic=9473.msg88080#msg88080 date=1100026015]
oh and, can sum1 explain why i have to have , , ?
[/quote]

Read the yellow help text which displays when you write "Listview1.ListItems.Add "
November 9, 2004, 10:23 PM
hismajesty
You're omitting the first two params.
November 9, 2004, 10:26 PM
Minux
[quote author=hismajesty[yL] link=topic=9473.msg88122#msg88122 date=1100039170]
You're omitting the first two params.
[/quote]

Which by the way are Index and Key. Neither are necessary in order for it to work.
November 10, 2004, 12:27 AM
EviL_MarinE
aight my channel view is nearly 100% right, it adds and removes the name on JOIN and LEAVE

it displays and removes the names that join AFTER the bot joins

I want it to display the names in the channel already

Can anybody help me? ;D
November 12, 2004, 5:02 PM
Kp
[quote author=EviL_MarinE link=topic=9473.msg88639#msg88639 date=1100278920]aight my channel view is nearly 100% right, it adds and removes the name on JOIN and LEAVE

it displays and removes the names that join AFTER the bot joins

I want it to display the names in the channel already

Can anybody help me? ;D[/quote]

Yes.  Add the name when you get the USER event (but beware duplicate updates).
November 12, 2004, 5:22 PM

Search