User Tools

Site Tools


scripting-target

Scripting - Targets data and function

Here can find some infomation about Enhanced Scripting function and data for Target operazion!

Target Status

Check Target
Syntax Target.HasTarget( )
Description:
Get status if have target cursor in game or not
Returns: bool
In Object: Target
Parameters: none

Get Last Target Serial
Syntax Target.GetLast( )
Description:
Get serial number of last target
Returns: int
In Object: Target
Parameters: none

Get Last Attack Serial
Syntax Target.GetLastAttack( )
Description:
Get serial number of last attack target
Returns: int
In Object: Target
Parameters: none





Wait Target

Wait For Target
Syntax Target.WaitForTarget(int, optional bool)
Description:
Pause script for wait server send target request. Must set a pause limit in ms. and optional flag True or False. True Not show cursor, false show it
Returns: void
In Object: Target
Parameters: int Pause, bool BlockCursor




Target Action

Target Relative
Syntax Target.TargetExecuteRelative(int or mobile, int)
Description:
Send target execute to specific land point whit offset distance from mobile. Distance is calculated by target mobile direction.
Returns: void
In Object: Target
Parameters: int Serial or Mobile Mobiletarget, int offset

Target Execute
Syntax Target.TargetExecute(int or item or mobile or int, int, int)
Description:
Send target execute to specific serial, item, mobile, X Y Z point.
Returns: void
In Object: Target
Parameters: int Serial or Item ItemtoTarget or Mobile Mobile to target or Point3D StaticCoords or int XCoord, int YCoord, int ZLevel

Prompt Target
Syntax Target.PromptTarget(none or string)
Description:
Pick the serial from item or mobile. Can also specific a text message for prompt
Returns: int
In Object: Target
Parameters: none or string stringmessage

Prompt Target Ground Position
Syntax Target.PromptTargetGround(none or string)
Description:
Pick the coords from ground target. Can also specific a text message for prompt
Returns: Point3D
In Object: Target
Parameters: none or string stringmessage

Cancel Target
Syntax Target.Cancel( )
Description:
Cancel target cursor.
Returns: void
In Object: Target
Parameters: none

Last Target
Syntax Target.Last( )
Description:
Target last object or mobile targetted.
Returns: void
In Object: Target
Parameters: none

Last Target Queued
Syntax Target.LastQueued( )
Description:
Queue next target to Last.
Returns: void
In Object: Target
Parameters: none

Last Self
Syntax Target.Self( )
Description:
Target Self.
Returns: void
In Object: Target
Parameters: none

Last Self Queued
Syntax Target.SelfQueued( )
Description:
Queue Next target to Self.
Returns: void
In Object: Target
Parameters: none

Set Last Target
Syntax Target.SetLast(mobile or int)
Description:
Force set last target to specific mobile, by mobile type or serial.
Returns: void
In Object: Target
Parameters: mobile MobileTarget or int SerialTarget

Clear Last Target
Syntax Target.ClearLast( )
Description:
Clear Last Target.
Returns: void
In Object: Target
Parameters: none

Clear Queue Target
Syntax Target.ClearQueue( )
Description:
Clear Queue Target.
Returns: void
In Object: Target
Parameters: none

Clear Last and Queue Target
Syntax Target.ClearLastandQueue( )
Description:
Clear Last and Queue Target.
Returns: void
In Object: Target
Parameters: none




Target Filter

Set last Target Filter
Syntax Target.SetLastTargetFromList(String)
Description:
Set Last Target from gui filter selector.
Returns: void
In Object: Target
Parameters: String TargetFilterName

Perform Target Filter
Syntax Target.PerformTargetFromList(string)
Description:
Execute Target from gui filter selector.
Returns: void
In Object: Target
Parameters: String TargetFilterName

Attack Target Filter
Syntax Target.AttackTargetFromLis(sting)
Description:
Attack Target from gui filter selector.
Returns: void
In Object: Target
Parameters: String TargetFilterName

Get Target from Filter
Syntax Target.GetTargetFromList(string)
Description:
Get Mobile object from GUI Filter selector. If no mobile found return null
Returns: mobile
In Object: Target
Parameters: String TargetFilterName

scripting-target.txt · Last modified: 2018/10/04 12:41 by wikiadmin