Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: EviL_MarinE on November 08, 2004, 01:14 PM

Title: Channel view help!!
Post by: EviL_MarinE on November 08, 2004, 01:14 PM
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:


Username = PublicModule.KillNull(Mid(Data, 29))
ListView1.ListItems.Add Username


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

Cany anybody help me on this?
Title: Re: Channel view help!!
Post by: Warrior on November 08, 2004, 02:00 PM
How does one make a Connection to Battle.net yet not know how to add something to a listview?
Title: Re: Channel view help!!
Post by: Yegg on November 08, 2004, 05:54 PM
he didn't make that big an error, only the adding part if ur just adding a user name u could do

ListView1.ListItems.Add , , username
Title: Re: Channel view help!!
Post by: Minux on November 08, 2004, 07:20 PM
Quote from: Warrior on November 08, 2004, 02:00 PM
How does one make a Connection to Battle.net yet not know how to add something to a listview?

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.
Title: Re: Channel view help!!
Post by: Yegg on November 08, 2004, 07:33 PM
well sorry if i helped some1.
Title: Re: Channel view help!!
Post by: BaDDBLooD on November 08, 2004, 07:40 PM
Quote from: Yegg on November 08, 2004, 07:33 PM
well sorry if i helped some1.

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.
Title: Re: Channel view help!!
Post by: EviL_MarinE on November 09, 2004, 12:46 PM
I made a attempt and missed , ,

Quote from: Warrior on November 08, 2004, 02:00 PM
How does one make a Connection to Battle.net yet not know how to add something to a listview?

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

Thx for help guys

oh and, can sum1 explain why i have to have , , ?
Title: Re: Channel view help!!
Post by: l2k-Shadow on November 09, 2004, 04:23 PM
Quote from: EviL_MarinE on November 09, 2004, 12:46 PM
oh and, can sum1 explain why i have to have , , ?

Read the yellow help text which displays when you write "Listview1.ListItems.Add "
Title: Re: Channel view help!!
Post by: hismajesty on November 09, 2004, 04:26 PM
You're omitting the first two params.
Title: Re: Channel view help!!
Post by: Minux on November 09, 2004, 06:27 PM
Quote from: hismajesty[yL] on November 09, 2004, 04:26 PM
You're omitting the first two params.

Which by the way are Index and Key. Neither are necessary in order for it to work.
Title: Re: Channel view help!!
Post by: EviL_MarinE on November 12, 2004, 11:02 AM
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
Title: Re: Channel view help!!
Post by: Kp on November 12, 2004, 11:22 AM
Quote from: EviL_MarinE on November 12, 2004, 11:02 AMaight 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

Yes.  Add the name when you get the USER event (but beware duplicate updates).