|
|
login (Sdk)
login // Sdk
Oct 1, 2002, 9:13am
Can someone please tell me how to log in using the vb com sdk? I cant figure it out.
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
Oct 1, 2002, 5:27pm
Thank you!!!
[View Quote]"kah" <kah at kahnews.cjb.net> wrote in message news:Xns929AC8C64B762kahatkahnewsdotcjbdo at 64.94.241.201...
> "mayor taz" <eashworth at nc.rr.com> wrote in
> news:3d99834e$1 at server1.Activeworlds.com:
>
>
> 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
|
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" <eashworth at nc.rr.com> wrote in message news:3d99f73c$1 at server1.Activeworlds.com...
> Thank you!!!
> "kah" <kah at kahnews.cjb.net> wrote in message news:Xns929AC8C64B762kahatkahnewsdotcjbdo at 64.94.241.201...
>
>
|
Oct 1, 2002, 5:45pm
Never mind, sorry I got it to work, Thanks!
[View Quote]"mayor taz" <eashworth at nc.rr.com> wrote in message news:3d99f73c$1 at server1.Activeworlds.com...
> Thank you!!!
> "kah" <kah at kahnews.cjb.net> wrote in message news:Xns929AC8C64B762kahatkahnewsdotcjbdo at 64.94.241.201...
>
>
|
|