Ricerca oggetti
Objects searching Orion Assistant
#A group of commands to work with object search functions for Orion Assistant 2.0.
Command format:
NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
flags - search filters:
• fast - the search stops on the first found object;
• near - search for the nearest object to the character;
• mobile - search only for alive creatures;
• item - search only inanimate objects;
• human - search only for humanoid creatures, types: 0x0190-0x0193, 0x03DB, 0x03DF and 0x03E2;
• live - search only for living creatures;
• dead - search only for dead creatures, types: 0x0192 and 0x0193.
• injured - Searching for a friend with lowest HP (works only for FindFriend/FindEnemy).
• next - Searching for next object (works only for FindFriend/FindEnemy).
• ignorefriends - ignores friends(Introduced in OA 2.0.8.0).
• ignoreenemies - ignores enemies (Introduced in OA 2.0.8.0).
_When using human, live или dead - mobile flag is set automatically.
_When using next - fast flag is set automatically.
________________________________________
notoriety - Wickedness of the desired character.
• innocent/blue
• friendly/green
• gray
• criminal
• enemy/orange
• murderer/red
• invulnerable/yellow
________________________________________
distance - The search distance.
In addition to numerical values, it can take string constants: finddistance, usedistance, opencorpsedistance.
________________________________________
• void Orion.UseType('graphic', , , [recurse=true]);
Search for an object by type and color in the container.
•
o graphic - Type or list of types. 0xFFFF is ignored.
•
o color - The color or list of colors. 0xFFFF is ignored.
•
o container - The container in which the search is performed.
•
o recurse - Recursive search for sub-containers.
________________________________________
• void Orion.UseFromGround('graphic', , , );
Search for an object by type and color on the ground.
•
o graphic - Type or list of types. 0xFFFF is ignored.
•
o color - The color or list of colors. 0xFFFF is ignored.
•
o distance - The search distance.
•
o flags - Search filter flags.
________________________________________
• bool Orion.UseTypeList('listName', , [recurse=true]);
Search for an object from the find list in the container.
•
o listName - The name of the find list.
•
o container - The container in which the search is performed.
•
o recurse - Recursive search for sub-containers.
Result: true if the object was found and used.
________________________________________
• bool Orion.UseFromGroundList('listName', , );
Search for an object on the find list on the ground.
•
o listName - The name of the find list.
•
o distance - The search distance.
•
o flags - Search filter flags.
Result: true if the object was found and used.
________________________________________
• StringList Orion.FindType('graphic', , , , , , [recurse=true]);
Search for an object by type and color.
•
o graphic - Type or list of types. 0xFFFF is ignored.
•
o color - The color or list of colors. 0xFFFF is ignored.
•
o container - The container in which the search is performed.
•
o flags - Search filter flags.
•
o distance - The search distance.
•
o notoriety - Wickedness of the desired character.
•
o recurse - Recursive search for sub-containers.
Result: List of found serials.
________________________________________
• void Orion.Ignore('serial', [state=true]);
Set / remove the ignore flag on the serial object.
________________________________________
• void Orion.IgnoreReset();
Remove the ignore flag from all objects.
________________________________________
• GameObject Orion.FindObject('serial');
Result: an object of type GameObject or null.
________________________________________
• int Orion.Count('graphic', , , , [recurse]);
Returns the total number of items (the number of items, not the number of objects found).
•
o graphic - Type or list of types. 0xFFFF is ignored.
•
o color - The color or list of colors. 0xFFFF is ignored.
•
o container - The container in which the search is performed.
•
o distance - The search distance.
•
o recurse - Recursive search for sub-containers.
Result: the amount of items.
________________________________________
• void Orion.ResetIgnoreList();
Reset the use of the ignore list.
________________________________________
• void Orion.UseIgnoreList('listName');
Use ignore list listName.
________________________________________
• StringList Orion.FindList('listName', , , , , [recurse=true]);
Search for an object in the find list.
•
o listName - The name of the find list.
•
o container - The container in which the search is performed.
•
o flags - Search filter flags.
•
o distance - The search distance.
•
o notoriety - Wickedness of the desired character.
•
o recurse - Recursive search for sub-containers.
________________________________________
• GameObject Orion.ObjAtLayer('layerName', );
Result: an object of type GameObject in the specified layer of the object 'serial' or null.
________________________________________
• String Orion.FindFriend(, );
Searching for a friend serial from friends list.
•
o flags - Searching filter flags.
•
o distance - Searching distance.
________________________________________
• String Orion.FindEnemy(, );
Searching for an enemy serial from enemies list.
•
o flags - Searching filter flags.
•
o distance - Searching distance.