Creating and Using Programs

Compiled Programs

Compiling a script requires that a player has attained the level required to call the functions, as listed in the API, and also that the player pays the appropriate amount of money, determined by the functions called within the program and the number of occurrences.

A program is compiled by clicking the appropriate button in the Script Editor. Prior to compiling, it is advisable to Test Compile: this gives the player the compiling cost and tests the code’s validity. If the test compile finds invalid code, the event containing the faulty code is identified. The player’s name is attached to the program upon compiling.

Compiled programs can be installed on a player’s ports in Port Management (see below, section on Installing Programs), sold in stores to other players or installed on an opponent’s port after a successful attack.

While compiling code is restricted based on level, a player of a lower level may still install a program he or she has bought or traded.

De-compiling programs

A player is allowed to de-compile programs they themselves have made by selecting the compiled file in the File Browser (System—Home) and clicking the De-compile button at the top of the window. This will return 90% of the compile cost to the player; also, 90% of the experienced gained from compiling the program will be deducted. An uncompiled version of the script will appear on the player’s hard drive, which can now be edited. This can be useful to merchants who may have a large quantity of files to which they wish to make a change.
Note that once a program has been installed, it cannot be removed, and therefore not de-compiled.

http://www.plink-search.com

In this screen shot the de-compile option is highlighted in purple. Please note that the money returned is 90% of the compile cost, and NOT the price set by the user.

Installing Programs

Programs are installed from within the Port Manager by right-clicking a port under the heading Type and selecting a script to install (highlighted here in red).

http://www.plink-search.com