API RepairShip: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
Line 1: | Line 1: | ||
=== RepairShip === | === RepairShip === | ||
==== Definition | ==== Definition ==== | ||
RepairShip(int itemid, int x, func cb) -> nil | RepairShip(int itemid, int x, func cb) -> nil | ||
==== Description | ==== Description ==== | ||
Repairs the ship itemid in the station. Tested with active ship id. The cb is a callback function which is called after the ship is repaired. | Repairs the ship itemid in the station. Tested with active ship id. The cb is a callback function which is called after the ship is repaired. | ||
Line 10: | Line 10: | ||
See also [[API_ReplenishWeapon]] and [[API_ReplenishAll]]. | See also [[API_ReplenishWeapon]] and [[API_ReplenishAll]]. | ||
==== Arguments | ==== Arguments ==== | ||
* ''itemid'' [[itemid]] of ship | * ''itemid'' [[itemid]] of ship | ||
* ''x'' unknown, number 1 seems to work | * ''x'' unknown, number 1 seems to work | ||
* ''cb'' function to be called once the transaction is complete | * ''cb'' function to be called once the transaction is complete |
Revision as of 22:16, 16 June 2009
RepairShip
Definition
RepairShip(int itemid, int x, func cb) -> nil
Description
Repairs the ship itemid in the station. Tested with active ship id. The cb is a callback function which is called after the ship is repaired.
x is unknown, but a value of 1 seems to work.
See also API_ReplenishWeapon and API_ReplenishAll.
Arguments
- itemid itemid of ship
- x unknown, number 1 seems to work
- cb function to be called once the transaction is complete