ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Single Cell Query (Sdk)
Single Cell Query // Sdkstrike rapierOct 25, 2002, 12:56am
Would it be possable for someone to tell me how you can work out and set a single cell to be queried using aw_cell_next so I could create some manual / specialist query routines for my bot? If you could explain in either CPP or VB its fine with me, id apreciate any help with the matter
- Mark grimbleOct 25, 2002, 1:32am
Quick and dirty solution in VB ... easy enough to do in C instead.
Public Function awe_cell_query(cell_x As Long, cell_z As Long) As Long Dim cellIterator As Long cellIterator = Val("&H" & Right("0000" & Hex(cell_x), 4) & Right("0000" & Hex(cell_z), 4)) aw_int_set(AW_CELL_ITERATOR, cellIterator) aw_bool_set(AW_CELL_COMBINE, False) awe_cell_query = aw_cell_next() End Function Grims [View Quote] |