|
sdk stuffs (Sdk)
sdk stuffs // Sdk
Aug 18, 2001, 2:03am
umm in my bot i have many diferent forms for the dierent things the bot does
and a menu bar at the top, really no main window except for the menu bar
that is always showing....but the diferent forms will be usign the sdk not
the menu bar.....and i guess i have to put the sdk and timer on each
form.... will this screw the bot up with multiple things of these?
--
- Brandon
(website coming soon)
World: A'Dude
Co-owned world: Safira
Aug 18, 2001, 3:20am
arg and you know how it says Fucktion AwInit (Build as long) As Long? do i
have to declare that or put it somewhere? cause the adk.AwInit and etc.
doesnt seem to work
[View Quote]"brandon" <brandon at my.activeworlds.com> wrote in message
news:3b7de905$1 at server1.Activeworlds.com...
> umm in my bot i have many diferent forms for the dierent things the bot
does
> and a menu bar at the top, really no main window except for the menu bar
> that is always showing....but the diferent forms will be usign the sdk not
> the menu bar.....and i guess i have to put the sdk and timer on each
> form.... will this screw the bot up with multiple things of these?
>
> --
> - Brandon
> (website coming soon)
> World: A'Dude
> Co-owned world: Safira
>
>
|
Aug 18, 2001, 3:23am
sdk.awinit(AW_BUILD) sdk does the rest itself
[View Quote]brandon wrote:
>
> arg and you know how it says Fucktion AwInit (Build as long) As Long? do i
> have to declare that or put it somewhere? cause the adk.AwInit and etc.
> doesnt seem to work
>
> "brandon" <brandon at my.activeworlds.com> wrote in message
> news:3b7de905$1 at server1.Activeworlds.com...
> does
|
Aug 18, 2001, 3:24am
whats wrong with this code it says ELse without If:
[View Quote]"the derek" <ImTheDerek at yahoo.com> wrote in message
news:3B7DFA07.26C688B5 at yahoo.com...
> sdk.awinit(AW_BUILD) sdk does the rest itself
>
> brandon wrote:
i
bot
bar
not
|
Aug 18, 2001, 3:25am
woops here it is:
' Login to World
rc = sdk.AwEnter(LOGIN_WORLD)
If rc Then MsgBox "Unable to enter world (reason " & rc & ")"
Else
MsgBox sdk.AwWorldWelcomeMessage
'End If
and there IS an If but it sats Else without If
[View Quote]"the derek" <ImTheDerek at yahoo.com> wrote in message
news:3B7DFA07.26C688B5 at yahoo.com...
> sdk.awinit(AW_BUILD) sdk does the rest itself
>
> brandon wrote:
i
bot
bar
not
|
Aug 18, 2001, 3:27am
and can you answer my first question toi please? sorry for all the questions
but i need ot knwo this to get the bot to log-in
[View Quote]"the derek" <ImTheDerek at yahoo.com> wrote in message
news:3B7DFA07.26C688B5 at yahoo.com...
> sdk.awinit(AW_BUILD) sdk does the rest itself
>
> brandon wrote:
i
bot
bar
not
|
Aug 18, 2001, 3:48am
If rc Then
MsgBox "Unable to enter world (reason " & rc & ")"
Else
MsgBox sdk.AwWorldWelcomeMessage
End If
try that
you also had a "'" in front of end if
i dont think you can put the method on the same
line as if if you havean else
if that doesnt work check your code for another
else out somewhere
[View Quote]brandon wrote:
>
> woops here it is:
>
> ' Login to World
> rc = sdk.AwEnter(LOGIN_WORLD)
> If rc Then
MsgBox "Unable to enter world (reason " & rc & ")"
> Else
> MsgBox sdk.AwWorldWelcomeMessage
> 'End If
>
> and there IS an If but it sats Else without If
>
> "the derek" <ImTheDerek at yahoo.com> wrote in message
> news:3B7DFA07.26C688B5 at yahoo.com...
> i
> bot
> bar
> not
|
Aug 18, 2001, 3:49am
you only need one sdk and one timer for each bot
instance regardless of forms
to use the sdk thats on a diferent form do it like
you would with any other object
formname.sdk.action
replace formname with the name of the form and
action with what you wanna do
[View Quote]brandon wrote:
>
> and can you answer my first question toi please? sorry for all the questions
> but i need ot knwo this to get the bot to log-in
>
> "the derek" <ImTheDerek at yahoo.com> wrote in message
> news:3B7DFA07.26C688B5 at yahoo.com...
> i
> bot
> bar
> not
|
Aug 18, 2001, 4:02am
oh ok thanks
[View Quote]"the derek" <ImTheDerek at yahoo.com> wrote in message
news:3B7E0012.7AD3E84D at yahoo.com...
> you only need one sdk and one timer for each bot
> instance regardless of forms
> to use the sdk thats on a diferent form do it like
> you would with any other object
> formname.sdk.action
> replace formname with the name of the form and
> action with what you wanna do
>
> brandon wrote:
questions
Long? do
etc.
the
menu
sdk
each
|
Aug 18, 2001, 4:08am
also my bot loggs in, i know becuaee the world log says so and it pops up
the welcome message in a mnsgbox. But it wont say sdk.AwSay("Hi") or
anything and it doesnt even appear no avatar no nothing
also whats the code to move the bot, teleport, i only saw AwTeleport but
that is to teleport other people
[View Quote]"brandon" <brandon at my.activeworlds.com> wrote in message
news:3b7de905$1 at server1.Activeworlds.com...
> umm in my bot i have many diferent forms for the dierent things the bot
does
> and a menu bar at the top, really no main window except for the menu bar
> that is always showing....but the diferent forms will be usign the sdk not
> the menu bar.....and i guess i have to put the sdk and timer on each
> form.... will this screw the bot up with multiple things of these?
>
> --
> - Brandon
> (website coming soon)
> World: A'Dude
> Co-owned world: Safira
>
>
|
Aug 18, 2001, 4:47am
if it cant talk or shows no avatar then you didnt
do aw_create right
[View Quote]brandon wrote:
>
> also my bot loggs in, i know becuaee the world log says so and it pops up
> the welcome message in a mnsgbox. But it wont say sdk.AwSay("Hi") or
> anything and it doesnt even appear no avatar no nothing
>
> also whats the code to move the bot, teleport, i only saw AwTeleport but
> that is to teleport other people
>
> "brandon" <brandon at my.activeworlds.com> wrote in message
> news:3b7de905$1 at server1.Activeworlds.com...
> does
|
Aug 18, 2001, 10:19am
this is how you do it for diff. forms: if your main form is called mainFrm
and your SDK is put on that form, you'll do this to acces the SDK from
another form (if the sdk object is called sdk): mainFrm.sdk.AwSay "hi"
KAH
[View Quote]"brandon" <brandon at my.activeworlds.com> wrote in message
news:3b7de905$1 at server1.Activeworlds.com...
> umm in my bot i have many diferent forms for the dierent things the bot
does
> and a menu bar at the top, really no main window except for the menu bar
> that is always showing....but the diferent forms will be usign the sdk not
> the menu bar.....and i guess i have to put the sdk and timer on each
> form.... will this screw the bot up with multiple things of these?
>
> --
> - Brandon
> (website coming soon)
> World: A'Dude
> Co-owned world: Safira
>
>
|
Aug 18, 2001, 10:29am
I suggest you read some code first... I'll post the stuff I allways use for
login:
Dim rc As Integer, world As String
Dim unihost As String
Dim uniport As String
On Error Resume Next
unihost = txtUniHost.Text 'these two settings allow for login to other
universes
uniport = txtUniPort.Text
rc = sdk.AwCreate(unihost, uniport)
If rc Then
MsgBox "Unable to create a bot (reason " & rc & ")"
Exit Sub
End If
sdk.AwLoginOwner = txtOwner.Text
sdk.AwLoginPrivilegePassword = txtPassword.Text
sdk.AwLoginName = txtBotName.Text
sdk.AwLoginApplication = "MBE/KAHBOT MusicSearcher Bot" 'change this to
whatever your bot is called
rc = sdk.AwLogin
If rc Then
MsgBox "Unable to login (reason " & rc & ")"
Exit Sub
End If
world = txtWorld.Text
rc = sdk.AwEnter(world)
If rc Then
MsgBox "Unable to enter " & world & " (reason " & rc & ")"
Exit Sub
End If
sdk.AwMyX = Val(txtMyX.Text) * 1000 'this might've been your error... if you
enter 10 for the west/east coords 'without multiplying by 1000 the bot will
enter at 0.01w same applicies to all position values
sdk.AwMyZ = Val(txtMyZ.Text) * 1000 'this is north/south, *NOT* west/east
position!
sdk.AwMyY = Val(txtMyY.Text) * 1000
sdk.AwMyYaw = 0 'makes the av face north
sdk.AwMyType = txtMyType.Text 'av number
rc = sdk.AwStateChange 'this *MUST* be called
If rc Then
MsgBox "Unable to change state (reason " & rc & ")"
Exit Sub
Else
MsgBox "Login succesfull! Yay!" 'have something like
'this to see if the bot did everything it was told to do
'note that if you gave it wrong params this won't show
End If
to use that code you need to have all the textboxes with those names present
on the same form as the SDK... hope it will help...
KAH
Aug 18, 2001, 1:59pm
oh i was wondoring how to teleport them
[View Quote]"kah" <kah at kahbot.com> wrote in message
news:3b7e5fbd$1 at server1.Activeworlds.com...
> I suggest you read some code first... I'll post the stuff I allways use
for
> login:
>
> Dim rc As Integer, world As String
> Dim unihost As String
> Dim uniport As String
> On Error Resume Next
>
> unihost = txtUniHost.Text 'these two settings allow for login to other
> universes
> uniport = txtUniPort.Text
>
> rc = sdk.AwCreate(unihost, uniport)
> If rc Then
> MsgBox "Unable to create a bot (reason " & rc & ")"
> Exit Sub
> End If
>
> sdk.AwLoginOwner = txtOwner.Text
> sdk.AwLoginPrivilegePassword = txtPassword.Text
> sdk.AwLoginName = txtBotName.Text
> sdk.AwLoginApplication = "MBE/KAHBOT MusicSearcher Bot" 'change this to
> whatever your bot is called
> rc = sdk.AwLogin
> If rc Then
> MsgBox "Unable to login (reason " & rc & ")"
> Exit Sub
> End If
> world = txtWorld.Text
> rc = sdk.AwEnter(world)
> If rc Then
> MsgBox "Unable to enter " & world & " (reason " & rc & ")"
> Exit Sub
> End If
>
> sdk.AwMyX = Val(txtMyX.Text) * 1000 'this might've been your error... if
you
> enter 10 for the west/east coords 'without multiplying by 1000 the bot
will
> enter at 0.01w same applicies to all position values
> sdk.AwMyZ = Val(txtMyZ.Text) * 1000 'this is north/south, *NOT* west/east
> position!
> sdk.AwMyY = Val(txtMyY.Text) * 1000
> sdk.AwMyYaw = 0 'makes the av face north
> sdk.AwMyType = txtMyType.Text 'av number
>
> rc = sdk.AwStateChange 'this *MUST* be called
> If rc Then
> MsgBox "Unable to change state (reason " & rc & ")"
> Exit Sub
> Else
> MsgBox "Login succesfull! Yay!" 'have something like
> 'this to see if the bot did everything it was told to do
> 'note that if you gave it wrong params this won't show
> End If
>
> to use that code you need to have all the textboxes with those names
present
> on the same form as the SDK... hope it will help...
>
> KAH
>
>
>
|
Aug 18, 2001, 2:03pm
yes, but you obviously didn't log them in correctly in the first place... to
teleport, or change stuff like avs, set the new value of something like
sdk.AwMyX then call sdk.AwStateChange.
KAH
[View Quote]"brandon" <brandon at my.activeworlds.com> wrote in message
news:3b7e90f7$1 at server1.Activeworlds.com...
> oh i was wondoring how to teleport them
|
Aug 18, 2001, 2:19pm
erm ok...for uniport and unihost what do i type for active worlds
[View Quote]"kah" <kah at kahbot.com> wrote in message
news:3b7e91b9 at server1.Activeworlds.com...
> yes, but you obviously didn't log them in correctly in the first place...
to
> teleport, or change stuff like avs, set the new value of something like
> sdk.AwMyX then call sdk.AwStateChange.
>
> KAH
>
> "brandon" <brandon at my.activeworlds.com> wrote in message
> news:3b7e90f7$1 at server1.Activeworlds.com...
>
>
|
Aug 18, 2001, 2:55pm
ARG
this god dam bot is screwed so i mid as well just give up...it keeps saying
errors for stupid ass things like for txtMyZ.Text is hightlights the .Text
and says its wrong or something....jesus why do they have to make
programming so hard lol
Aug 18, 2001, 5:46pm
universe=auth.activeworlds.com
port=0 (default)
[View Quote]brandon wrote:
>
> erm ok...for uniport and unihost what do i type for active worlds
>
> "kah" <kah at kahbot.com> wrote in message
> news:3b7e91b9 at server1.Activeworlds.com...
> to
|
|