L2packethack better than HlaPeX because hlaPeX not best program for manipulation with packages but more clear for beginners .It is lacks such as for example: use only one script.
Differences from 3.1.2: - mistakes are corrected at work with several connections - in scripts new procedures and variables (about them it is possible to learn in a theme the Built in variables and functions for scripts) are added - the editor of scripts (has put more convenient component) is improved - on Viewing buttons for work with a broad gully of
Difference from 3.1.3 are added: - works on Interlude servers (on OFF precisely)
The built in variables and functions for scripts
Accessible variables:
pck (string) - a current processable package (without first two bytes with a size)
FromClient (boolean) - the package (pck) has come from the client (that not FromServer)
FromServer (boolean) - the package (pck) has come from a server (that not FromClient)
buf (string) - the buffer used by some functions
ConnectName (string) - a name char from or to which there is a package (works since version 3.1.3)
Accessible functions:
ShowTab and HideTab - for display/concealment of the panel to operate which it is possible from script SendToClient - sends the client contents of a variable buf SendToServer - sends a server contents of a variable buf SendToClientEx (CharName: string) - sends the client with name CharName contents of a variable buf (works since version 3.1.3)
SendToServerEx (CharName: string) - sends a server with name CharName contents of a variable buf (works since version 3.1.3) (to a package buf are automatically added 2 bytes lengths)
ReadD (var index:integer):integer - reads from a variable pck number (4 bytes)
ReadS (var index:integer):string - reads from a variable pck line
ReadC (var index:integer):byte - reads from a variable pck byte
Index - an initial position of reading which is modified by function (moves on number byte)
HStr (h:string):string - will transform a line to HEX-sequence For example, HStr (' AA 00 BB 00 CC 00 ') will return a chain of byte * $AA * $ 00 * $ BB * $ 00 * $ CC * $ 00. It is possible to transfer a line both with blanks, and without them; the register of symbols has no value.
WriteS (v:string) - writes to a variable buf a line (machine translation in unicode)
WriteD (v:integer; ind:integer=0) - writes to a variable buf number (4 bytes)
WriteC (v:byte; ind:integer=0) - writes to a variable buf one byte
In first two procedures there is a unessential parameter ind. If the parameter is not specified, the variable buf is supplemented with bytes/number, the part of the buffer differently is modified. An example: buf=HStr (' AA BB CC DD EE ');
If to cause function WriteD (10,1) we shall receive buf = [AA BB CC DD EE 0A 00 00 00].
Example script:
begin
if FromClient and (ConnectName='SokolA') and (pck=HStr('1b 04 00 00 00')) then begin
buf:=HStr('45 00 00 00 00 00 00 00 00 00');
SendToServerEx('SokolB');
pck:='';
end;
end.At reception from the client playing for чара with anybody SokolA a package 1b 04 00 00 00 ("Victory") непропустит this package also will send social action a package 45 00 00 00 00 00 00 00 00 00 (the command to sit down) on behalf of the client playing for чара with anybody SokolB, тоесть is played by you in two windows, in one SokolA, in other SokolB, press in the first Victory, and SokolB sits down.
On menu Scripts:
Procedure Init is caused when you establish beside with a script a tick. Procedure Free is caused when you clean beside with a script a tick. The basic body of a script (between begin and end) is caused each time at reception of a package from a server or the client if the script is noted by a tick.
On menu In addition:
the Basic body of a script (between begin and end) is caused on pressing the button To execute, and Stop, or on the termination of work of a script stops or on pressing.
Download: http://rapidshare.co...1.6Eng.zip.html


Sign In
Register
Help



MultiQuote


