Three variants of conditions are possible: if directly is specified in a condition the text of the message, there should not be more nothing, including marks of any operations. If lastmsg the text of last message or its part Can be used in cycles 'repeat', 'for', 'while'.Īt use of last message from the server in the conditional operators, there is some rule of syntax: The operator 'Continue' continues execution of a cycle on the following step. If the level is more 1, interrupts given amount parental cycles. If hour = 23 and min = 45 or #count = 100įor change of priorities use parentheses:įor interruption of action of the operators 'while', 'for' and 'repeat' you can use the command 'Break'. The priorities are not present, is processed consistently. In the conditional operators and cycles you can use the following operations: >,, and also logic operations (and, or, xor). The conditional operators, cycles, transitions Target - kind of the cursor (0 - hand 1 - sight) Īt two or more started scripts you can address to variable, certain in other scripts of the pilot for others characters, having added to a name variable number of the script through a point. Laststatictype - type of last static purpose (tree.) Lastspell - number of last spell which was used through the book Lastskill - number last scill which was used through the menu Skills Lastliftedid - identifier of a thing, which by last was touched from a place (is moved, has visited in 'hand'). if is necessary for you by a shovel click on a surface of the cave in the given coordinates, it is necessary to specify '3' if it is necessary to click through 'lasttarget' on a item, it is necessary to specify '1' and 'Id' of a item catching a fish we indicate coordinates of a point and class '2'). Lasttargetkind - class of last purpose (1 - item 2 - ground 3 - static's or water) (i.e. Lasttargetx - coordinate of last purpose Lasttargetid - identifier of last purpose Lastobjecttype - type of last used object
Lastobjectid - identifier of last used object Set timer // establishes value timer in 0Ĭhardir - direction of a sight of the character (where the character revolves)Ġ - the character looks at north, everyone 45 degrees of turn clockwise add 1. Can be used practically in any operators and combinations. Timer - considers(counts) quantity(amount) ms from a beginning of performance of the script. The note 2: For correct definition by the Pilot of the majority of parameters of the character at you on the UO screen the Character Status window should be opened. The note 1: means, that you can change value by this variable in the scripts through the command 'set', all others variable only for reading The change variable occurs synchronously to a character set. Variable during performance of the script can be changed through the table of display variable. #i.2 - we address to variable #i from the script which is taking place in a window number 2. Syntax of the instruction such variable following:
Uopilot hitting a key generator#
In the command 'set' you can use the generator of random numbers: random (number) returns number in a range from 0 up to number-1Īt two or more started scripts you can address to variable, certain in other scripts of the pilot. if line variable, contains line performance of an integer, it can be used as numerical variable. at giving something line variable, it all is appropriated up to the end of a line, with the appropriate replacements
With line variable some mathematical operations are possible: At division the result is approximated to smaller whole. The following operations are supported: +, -, *, /, also you can use brackets for change of priorities of performance of mathematical operations. Variable change only at participation 'set' and 'for', the command 'repeat' uses value, not changing it.īetween a mark of operation and values there should be a separator. Symbols *, $, %, +, -, *, /, >, %arr īefore use variable in the scripts you should define it through the command 'set'. The words consist of symbols 0-9, A-z, A-y. If the first word in a line not the command - the line is considered as the comment. The first word in a line - command, other words - parameters. In one line there can be only one command. Be attentive at use of earlier versions of the program. The given documentation contains the description of language of the scripts of the program UOPilot of the version 1.07 beta 5.