Single Cell Query (Sdk)

Single Cell Query // Sdk

1  |  

strike rapier

Oct 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


Oct 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


[View Quote]

strike rapier

Oct 25, 2002, 5:23pm
Thankya Grimmble :D

[View Quote]

1  | is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn