Logic types control: |
Logic type (ASM) is a set of any distinctive propeties of objects. You can chop all objects from 'tree' logic type. If you use cleaver to any object from 'fish' logic type you will get a steak. You can fish in any tiles with 'water' logic type. Etc. You must use 'list of types' for links between graphic and logic types. List of types subdivide into 4 lists: maps, statics, objects, chars. You must remember: the graphic type can't link to more than 1 logic types! Function for work with list of types: UO.asmTLMapClear() UO.asmTLStaticClear() UO.asmTLObjectClear() UO.asmTLCharClear() These function clear these lists of types. UO.asmTLMapOpen(string FileName) UO.asmTLStaticOpen(string FileName) UO.asmTLObjectOpen(string FileName) UO.asmTLCharOpen(string FileName) These function load from file FileName list of types. You can load files from Injection folder ONLY! You can't work with file "ilaunch.xml" also. UO.asmTLMapSave(string FileName) UO.asmTLStaticSave(string FileName) UO.asmTLObjectSave(string FileName) UO.asmTLCharSave(string FileName) These function save to file FileName list of types. You can save files to Injection folder ONLY! You can't work with file "ilaunch.xml" also. UO.asmTLMapAdd(number GraphicType, string LogicType) UO.asmTLStaticAdd(number GraphicType, string LogicType) UO.asmTLObjectAdd(number GraphicType, string LogicType) UO.asmTLCharAdd(number GraphicType, string LogicType) These function set link between graphic type GraphicType and logic type LogicType in list of types. UO.asmTLMapGRemove(number GraphicType) UO.asmTLStaticGRemove(number GraphicType) UO.asmTLObjectGRemove(number GraphicType) UO.asmTLCharGRemove(number GraphicType) These function erase link between graphic type GraphicType and any logic type in list of types. string UO.asmTLMapGetLogic(number GraphicType) string UO.asmTLStaticGetLogic(number GraphicType) string UO.asmTLObjectGetLogic(number GraphicType) string UO.asmTLCharGetLogic(number GraphicType) These function allow test the graphic type for link with any logic types. It return the name of logic type. Examples for control list of types (examples for use lists of types will place to another part of help): Examples:
;Fishing 1
sub main() ;Clear Map list of types. UO.asmTLMapClear() ;Add link between logic type 'water' and graphic type 0x00aa to Map list of types. UO.asmTLMapAdd(0x00aa,'water') ;Add link between logic type 'water' and graphic type 0x00ab to Map list of types. UO.asmTLMapAdd(0x00ab,'water') ;Recall function of fishing. CatchFishSee() ;Clear Map list of types. UO.asmTLMapClear() end sub
;Fishing 2 sub main() ;Clear Map list of types. UO.asmTLMapClear() ;Load Map list of types (with logic type 'water'). UO.asmTLMapOpen('WaterMapTiles.dat') ;Recall function of fishing. CatchFishSee() ;Clear Map list of types. UO.asmTLMapClear() end sub |