Work with the UO map: |
ASM knows how to work with the files of UO map. The corresponding functions are represented below.
number asmMapGetZ(number X, number Y, number Map) Function returns value Z of the cell of map 0 in the coordinates of the X, Y. number asmMapGetTile(number X, number Y, number Map) Function returns the graphic type 'Tile' of the cell of map 0 in the coordinates of the X, Y. Example:
If UO.asmTLMapGetLogic(UO.asmMapGetTile(X,Y,0))=='water' Then; If it is water
UO.WaitTargetTile(STR(0),STR(X),STR(Y),STR(UO.asmMapGetZ(X,Y)); Install the target to it UO.UseType(FishingPole); Use fishpole Wait(5000); We await the biting :) EndIf |