Thread

login (Sdk)

login // Sdk

1  |  

mayor taz

Oct 1, 2002, 9:13am
Can someone please tell me how to log in using the vb com sdk? I cant figure it out.

kah

Oct 1, 2002, 4:09pm
"mayor taz" <eashworth at nc.rr.com> wrote in
news:3d99834e$1 at server1.Activeworlds.com:

> Can someone please tell me how to log in using the vb com sdk? I cant
> figure it out.

rc = sdk.aw_create("auth.activeworlds.com", 5670)
If rc Then
'Could not create a bot instance
Exit Sub
End If

sdk.aw_int_set AW_LOGIN_OWNER, Val(txtOwner.Text)
sdk.aw_string_set AW_LOGIN_PRIVILEGE_PASSWORD, txtPassword.Text
sdk.aw_string_set AW_LOGIN_NAME, txtBotName.Text
sdk.aw_string_set AW_LOGIN_APPLICATION, "blah 1.0.1.356"

rc = sdk.aw_login
If rc Then
ConsoleMsg "Could not enter universe. Reason number " & rc,
MSG_TYPE_ERROR
Exit Sub
End If

rc = sdk.aw_enter(txtWorld.Text)
If rc Then
ConsoleMsg "Could not enter world. Reason number " & rc,
MSG_TYPE_ERROR
Exit Sub
End If

sdk.aw_int_set AW_MY_X, Val(txtMyX.Text) * 1000
sdk.aw_int_set AW_MY_Y, Val(txtMyY.Text) * 1000
sdk.aw_int_set AW_MY_Z, Val(txtMyZ.Text) * 1000
sdk.aw_int_set AW_MY_YAW, Val(txtMyYaw.Text) * 10
sdk.aw_int_set AW_MY_TYPE, Val(txtMyType.Text)

rc = sdk.aw_state_change

mayor taz

Oct 1, 2002, 5:27pm
Thank you!!!
[View Quote]

mayor taz

Oct 1, 2002, 5:40pm
....I can't get that to work...is there any thing else besides that I need to add?

[View Quote]

mayor taz

Oct 1, 2002, 5:45pm
Never mind, sorry I got it to work, Thanks!
[View Quote]

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