ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Thank the Lord - For SDK features? Why not? (Sdk)
Thank the Lord - For SDK features? Why not? // Sdktwisted horizonDec 29, 2000, 1:21am
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C0711C.32F95D40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Don't know if any of you botters noticed yet, but I was checking to see = if there was a function to see if a specific citizen was on (no, darn, = as i suspected) and stumbled across this in 3.1: int aw_delete_all_objects (void) DESCRIPTION Deletes all of the objects in a world. CALLBACK AW_CALLBACK_DELETE_ALL_OBJECTS_RESULT NOTES This method is new in Active Worlds 3.1 and requires at least SDK build = 18 and world server build 28.=20 aw_delete_all_objects provide a simple mechanism for deleting all of the = objects in a world. Only instances owned by a caretaker (i.e. aw_int = (AW_WORLD_CARETAKER_CAPABILITY) returns TRUE) may use this method. For a complete description of cells and property in Active Worlds, see = Property. EXAMPLE int rc; /* delete all objects in the world */ if (rc =3D aw_delete_all_objects ()) printf ("Unable to delete all objects (reason %d)\n", rc); else printf ("All objects deleted. I hope you made a backup!\n"); SEE ALSO aw_object_add aw_object_change aw_object_delete aw_object_load aw_query ------=_NextPart_000_0007_01C0711C.32F95D40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <META content=3Dtext/html;charset=3Diso-8859-1 = http-equiv=3DContent-Type> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT color=3D#000000 size=3D2>Don't know if any of you botters = noticed yet,=20 but I was checking to see if there was a function to see if a specific = citizen=20 was on (no, darn, as i suspected) and stumbled across this in = 3.1:</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><!--mstheme--><FONT face=3D"century gothic, arial, helvetica"> <H3><!--mstheme--><FONT color=3D#000066>int aw_delete_all_objects = (void)<!--mstheme--></FONT></H3> <H4><!--mstheme--><FONT = color=3D#000066>DESCRIPTION<!--mstheme--></FONT></H4> <P>Deletes all of the objects in a world.</P> <H4><!--mstheme--><FONT = color=3D#000066>CALLBACK<!--mstheme--></FONT></H4> <P>AW_CALLBACK_DELETE_ALL_OBJECTS_RESULT</P> <H4><!--mstheme--><FONT color=3D#000066>NOTES<!--mstheme--></FONT></H4> <P><EM>This method is new in Active Worlds 3.1 and requires at least SDK = build=20 18 and world server build 28. </EM></P> <P><STRONG>aw_delete_all_objects</STRONG> provide a simple mechanism for = deleting all of the objects in a world. Only instances owned by a=20 caretaker (i.e. <A = href=3D"http://activeworlds.com/sdk/aw_int.htm">aw_int</A>=20 (<STRONG>AW_WORLD_CARETAKER_CAPABILITY</STRONG>) returns = <STRONG>TRUE</STRONG>)=20 may use this method.</P> <P>For a complete description of cells and property in Active Worlds, = see <A=20 href=3D"http://activeworlds.com/sdk/property.htm">Property</A>.</P> <H4><!--mstheme--><FONT = color=3D#000066>EXAMPLE<!--mstheme--></FONT></H4><!--mstheme--></FONT><PR= E> int rc; /* delete all objects in the world */ if (rc =3D <STRONG>aw_delete_all_objects</STRONG> ()) printf ("Unable to delete all objects (reason %d)\n", rc); else printf ("All objects deleted. I hope you made a = backup!\n");</PRE><!--mstheme--><FONT=20 face=3D"century gothic, arial, helvetica"> <H4><!--mstheme--><FONT color=3D#000066>SEE = ALSO<!--mstheme--></FONT></H4> <P><A=20 href=3D"http://activeworlds.com/sdk/aw_object_add.htm">aw_object_add</A><= BR><A=20 href=3D"http://activeworlds.com/sdk/aw_object_change.htm">aw_object_chang= e</A><BR><A=20 href=3D"http://activeworlds.com/sdk/aw_object_delete.htm">aw_object_delet= e</A><BR><A=20 href=3D"http://activeworlds.com/sdk/aw_object_load.htm">aw_object_load</A= ><BR><A=20 href=3D"http://activeworlds.com/sdk/aw_query.htm">aw_query</A><BR></P><!-= -mstheme--></FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_0007_01C0711C.32F95D40-- tony56Dec 29, 2000, 7:38am
Cool!!!!!! It would save a lot of time querying and then deleting it (?)
.... -- - Tony56 (chandler56 at mail.com) "Freedom: That's What The Government Wants You To Believe!" ____________________________________________________________ [View Quote] int aw_delete_all_objects (void) DESCRIPTION Deletes all of the objects in a world. CALLBACK AW_CALLBACK_DELETE_ALL_OBJECTS_RESULT NOTES This method is new in Active Worlds 3.1 and requires at least SDK build 18 and world server build 28. aw_delete_all_objects provide a simple mechanism for deleting all of the objects in a world. Only instances owned by a caretaker (i.e. aw_int (AW_WORLD_CARETAKER_CAPABILITY) returns TRUE) may use this method. For a complete description of cells and property in Active Worlds, see Property. EXAMPLE int rc; /* delete all objects in the world */ if (rc = aw_delete_all_objects ()) printf ("Unable to delete all objects (reason %d)\n", rc); else printf ("All objects deleted. I hope you made a backup!\n"); SEE ALSO aw_object_add aw_object_change aw_object_delete aw_object_load aw_query twisted horizonDec 29, 2000, 10:42am
You'd better believe it could. Lol.... I've been working on bots that do
that for big worlds, and they're kind of annoying. Thank God we finally got one of these. Now all we need is those legendary golden God-I-want-'em-so-badly added attributes to the AW_EVENT_AVATAR_CHANGE: moved_on_shift and moved_on_fly If Roland ever gets this idea (or HamFon or whoever does the SDK programming) then.... wow.... we'll have a high-power SDK.... And how about bots sending sounds? I think I need to make a wishlist page for SDK features. E-mail me (joshua_trask at capecod.com) if you have any you want. -Twisted Horizon [View Quote] |