ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
VB SDK Question (Bots)
VB SDK Question // BotsdionJun 27, 2002, 11:13pm
SDK.AwInit (AW_BUILD)
rc = SDK.AwCreate(0, 0) If rc Then MsgBox "Unable to login (reason " & rc & ")" SDK.AwLoginName = BotName.Text SDK.AwLoginOwner = CitNum.Text SDK.AwLoginPrivilegePassword = CitPPW.Text SDK.AwLoginApplication = "" rc = SDK.AwLogin If rc Then MsgBox "Unable to login (reason " & rc & ")" rc = SDK.AwEnter (World.Text) If rc Then MsgBox "Unable to enter world " & World.Text & "." SDK.AwTeleportX = EW.Text * 10 SDK.AwTeleportY = 0 SDK.AwTeleportZ = NS.Text * 10 SDK.AwTeleportYaw = 0 SDK.AwTeleportWarp = False SDK.AwTeleportWorld = World.Text If SDK.AwTeleport(SDK.AwSession) Then MsgBox "Unable to teleport session " & SDK.AwSession Else MsgBox "Session " & SDK.AwSession & " teleported to 0N 0W" End If What's wrong with this? I am getting a "Unable to enter world, AWTeen. Reason # 27." dionJun 27, 2002, 11:20pm
nevermind about that, that was a mistake, LOL :-P
But I dunno if i have the teleport thing right... EW.Text is the East-West direction and NS.Text is the North-South direction. I put -3000 as North-South and 0 as East-West. Should that take it to 3000s 0w? [View Quote] dionJun 28, 2002, 1:46am
thanks to robbie, all is set :-)
New question, LOL. How do you change colors, bold, and italics inside a richtextbox? [View Quote] zeo toxionJun 28, 2002, 2:07am
Email me and i can send you a module that will do that for you
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A message from Zeo Toxion -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [View Quote] dionJun 29, 2002, 1:04am
zeo toxionJun 29, 2002, 1:24am
whoops i put at activeworlds.com heh its at my.activeworlds.com its updated now
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A message from Zeo Toxion -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [View Quote] |