-
Notifications
You must be signed in to change notification settings - Fork 112
Targeting Orion Assistant
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
graphicOrFlags - searching filter:
-
mine - searching for cave tiles;
-
tree - searching for trees;
-
water - searching for water tiles;
-
land - searching for only land tiles;
-
any - searching of any type of tile (static tiles have higher priority over landscape).
Have a target.
Resul: true if target is on.
Set the target trap for object(s) serial.
void Orion.WaitTargetType('graphic', ['color'=0xFFFF], ['container'=self], ['flags'], [recurse=true]);
Set the target trap for object, found by searching container.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- container - Searched Container.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
void Orion.WaitTargetGround('graphic', ['color'=0xFFFF], ['distance'=searchObjectsDistance], ['flags']);
Set the target trap for object found by search on the ground.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Set the target trap for object, found by searching container.
-
- findListName - Search list name.
-
- container - Container being searched.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
Set the target trap for object found by searching the ground.
-
- findListName - Search list name.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Set the target trap on the ground.
graphic - type of the tile, might be lasttile
x - World X coordinate
y - World Y coordinate
z - World Z coordinate
Set the target trap on the ground, relative Character.
graphic - type of the tile, might be lasttile
x - X coordinate bias in the world
y - Y coordinate bias in the world
z - Z coordinate bias in the world
Cancel of the current wait of the target.
Point the target on a serial object.
Point the target on the object found by searching container.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- container - Searched Container.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
void Orion.TargetGround('graphic', ['color'=0xFFFF], ['distance'=searchObjectsDistance], ['flags']);
Point the target on the object found by searching the ground.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Point the target on the object found by serching container.
-
- findListName - Search list name.
-
- container - Container being searched.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
Point the target on the object found by searching the ground.
-
- findListName - Search list name.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Point target on a ground.
graphic - type of the tile, might be lasttile
x - World X coordinate
y - World Y coordinate
z - World Z coordinate
Point target on a ground relative Character.
graphic - type of the tile, might be lasttile
x - X coordinate bias in the world
y - Y coordinate bias in the world
z - Z coordinate bias in the world
This function checks if targeted tile is valid for targeting.
-
- graphicOrFlags - tile type by graphic id or flags.
-
- x - X coordinate on the map.
-
- y - Y coordinate on the map.
Returns true if tile is valid for targeting.
This function checks if targeted tile( relative to character position on the map ) is valid for targeting.
-
- graphicOrFlags - tile type by graphic id or flags.
-
- x - X offset on the map.
-
- y - Y offset on the map.
Returns true if tile is valid for targeting.
- void Orion.CancalTarget();
Cancels current target ( if present in client ).
Awaits ( blocks execution ) for a target for 'delay' amount of time.
If client had a target already, immediately returns true.
Get type of target.
Returns: 0 if there's no target, 1 - neutral, 2 - harmful, 3 - helpful.
Waiting while there is a sight in the client.
If the client does not have a sight, it will immediately return true;
Result: true if there have no target.
Add target hook in to queue for object(s) serial.
void Orion.AddWaitTargetType('graphic', ['color'=0xFFFF], ['container'=self], ['flags'], [recurse=true]);
Add target hook in to queue for object, found by searching container.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- container - Searched Container.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
void Orion.AddWaitTargetGround('graphic', ['color'=0xFFFF], ['distance'=searchObjectsDistance], ['flags']);
Add target hook in to queue for object found by search on the ground.
-
- graphic - Type or type list for search. 0xFFFF ignored.
-
- color - Colour or Colour list for search. 0xFFFF ignored.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Add target hook in to queue for object, found by searching container.
-
- findListName - Search list name.
-
- container - Container being searched.
-
- flags - Flag Search Filters.
-
- recurse - Recursive Search in subcontainers.
Add target hook in to queue for object found by searching the ground.
-
- findListName - Search list name.
-
- distance - Search Distance.
-
- flags - Flag Search Filters.
Add target hook in to queue on the ground.
graphic - type of the tile, might be lasttile
x - World X coordinate
y - World Y coordinate
z - World Z coordinate
Add target hook in to queue on the ground, relative Character.
graphic - type of the tile, might be lasttile
x - X coordinate bias in the world
y - Y coordinate bias in the world
z - Z coordinate bias in the world