Board ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
c.bello // User Search
c.bello // User SearchObject Change HelpOct 2, 2003, 12:08am
Hey all, I need some serious help with making a bot to change objects on
button clicks, anyone that can help me out please let me know! Object Change HelpOct 2, 2003, 8:58pm
LOL, im sorry man thanks but it did not assist me any, I am really trying to
get this bot done and no one seems to be able to sit down and show me what to do. Object Change HelpOct 4, 2003, 9:23pm
I am fairly new to programming and i need to know how to make the click of a
button activate an object change, Do i make the button and then double click it and put the code in that sub for an obejct change and thats all? Object Change HelpOct 4, 2003, 9:24pm
also, what is the exaxt code i should be using in that sub (sdk 1.0)
Object Change HelpOct 4, 2003, 9:42pm
oh and 2 more things lol, how can i either keep the object that is changed,
object number or how do i let the bot know the new one, and the things that i dont want to change like description do i even need that line? or the X Z .... Object Change HelpOct 4, 2003, 10:15pm
ok good news, i go the bot to change an object, however i need to be able to
do it again, so i need to know how to to auto replace the object number Object Change HelpOct 4, 2003, 11:02pm
thanks andras, can anyone give me a VB example to help clarify that?
Object Change HelpOct 4, 2003, 11:57pm
ah and thank lord fett i appreciate it, i am really getting close to
finishing this bot Object Change HelpOct 5, 2003, 2:12am
thank you all who helped me, i have this all down now, thanks again.
VB, AWSdk 1.0, Changing Objects Help NeededOct 1, 2003, 7:38pm
Hey all, I am working on a bot that will have multiple change_object
commands and I am looking for a little help with it because i am getting an error 204 (can't locate object) and i am absoloutley sure the coords/object number are correct. I also need to know how to after the bot changes the object keep the object number the same. Thanks Alot C.Bello heres the code i have Private Sub invisible1_Click() Dim rc As Long sdk.aw_int_set (AW_OLD_OBJECT_NUMBER), 996509472 sdk.aw_int_set (AW_OBJECT_OLD_X), 1544237 sdk.aw_int_set (AW_OBJECT_OLD_Z), 194363 sdk.aw_int_set (AW_OBJECT_X), 1544237 sdk.aw_int_set (AW_OBJECT_Y), 695 sdk.aw_int_set (AW_OBJECT_Z), 194363 sdk.aw_int_set (AW_OBJECT_YAW), 270 sdk.aw_int_set (AW_OBJECT_OWNER), 351617 sdk.aw_string_set (AW_OBJECT_MODEL), ("spt2white.rwx") sdk.aw_string_set (AW_OBJECT_DESCRIPTION), "o" sdk.aw_string_set (AW_OBJECT_ACTION), "create visible no" rc = sdk.aw_object_change If rc Then MsgBox "Unable to change object (reason " & rc & ")" Else MsgBox "Object Changed" End If End Sub |