Thread

he-alllppppppp! (help) please :) (Sdk)

he-alllppppppp! (help) please :) // Sdk

1  |  

swe

Mar 5, 2002, 4:47pm
aight, emm, well im tring to make a phone bot, as something to occupy my
time, and well get a better understading of VB. well aight, i know how to
make multiple bots log in (diffrent way then the post before) but what i
wanna know is how do i give em each diffrent controls, like how do i make a
specific one say something instead of the other one, or do something instead
of the other

binarybud

Mar 5, 2002, 5:17pm
Keeping track of , and controlling the "instance" of each Bot created is how you "select" which one your using at the time.
Setting up a class to do this is the easiest way to keep track of this information.

Leo :)



[View Quote]

zeo toxion

Mar 5, 2002, 6:32pm
well you have to use add a control and timer for each bot right? If your
first bot is controled by the control called sdk1 and sdk2 and so on then
you can set which bot it is controling by putting sdk1. before it or sdk2.
if you want to control the second bot. I may not make sense to you but i
know what im talking about lol.

[View Quote]

jey

Mar 5, 2002, 7:15pm
All you have to do is just set the instance. I am not sure of the VB
command, but in C++ it is: aw_instance_set(void &instance); thats all you
need. You only need one(1) timer, and one(1) control. Just change the
instances. Oh and a hint: when a bot "hears" an event, ie: someone entering
a world, the current instance of the application is set to the bot that
"heard" the event. :)
Hope this helps. :)
Jey(302100)

[View Quote]

zeo toxion

Mar 5, 2002, 7:39pm
in vb if you use grimms aw sdk control you have to make a new control and
timer for each bot you plan to make. You contorl the bots by making each
control have a similar name but whith a number for example for if you name
then by sdk# then you put sdk1. to control bot1 and sdk2. to control bot
two.

[View Quote]

jey

Mar 5, 2002, 8:36pm
Mmmm . . . well thats crappy. Another small reason why I stick with C++
:D

[View Quote]

zeo toxion

Mar 5, 2002, 9:33pm
its not "crappy" its just the way it works...for a lot fo people VB is
easier to make things then C++ but yes i agree it is better. I know a lot
about Vb though.

[View Quote]

grimble

Mar 6, 2002, 12:50am
Not crappy ... just different. You can have a control array in VB and
load/unload instances of the control dynamically, which is synonymous with
accepting the instance pointer from the aw_create method in C.

Grims

[View Quote]

swe

Mar 6, 2002, 12:54pm
thanx lol! i think i totally understand what u mean :)
[View Quote]

swe

Mar 6, 2002, 12:56pm
lol, i thought it was obvious i was using VB since i said "well get a better
understading of VB" hehe :) but thanc for tring anyway :)
[View Quote]

strike rapier

Mar 6, 2002, 4:22pm
yeah, just use multiple controls, i have a old FireStorm systems bot u can
have a look though, its got easy 3 way telephone bot. Its 1 of the first I
made and has a few bugs, but it still can provide you with a idea.

Ill post it later, but im writing this post offline and it will take me a
day to find the old file and bute force though the password on the ZIP.

- Mark

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2023. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn