Difference between revisions of "API ReplenishWeapon"

From Vendetta Lua
Jump to: navigation, search
(ReplenishWeapon)
Line 1: Line 1:
 
=== ReplenishWeapon ===
 
=== ReplenishWeapon ===
==== Definition: ====
+
==== Definition ====
 
ReplenishWeapon(int itemid, int x, func cb) -> nil
 
ReplenishWeapon(int itemid, int x, func cb) -> nil
  
 
+
==== Description ====
==== Description: ====
+
 
Repairs the ship if [[itemid]] is a ship. Not tested on weapon IDs yet.
 
Repairs the ship if [[itemid]] is a ship. Not tested on weapon IDs yet.
 
The meaning of x is unknown. 1 seems to work as a value.
 
The meaning of x is unknown. 1 seems to work as a value.
  
==== Arguments: ====
+
==== Arguments ====
* ''itemid'' [[itemid]] of ship or possibly weapon<br>
+
* ''itemid'' [[itemid]] of ship or possibly weapon
* ''x'' unknown, number 1 seems to work<br>
+
* ''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

ReplenishWeapon

Definition

ReplenishWeapon(int itemid, int x, func cb) -> nil

Description

Repairs the ship if itemid is a ship. Not tested on weapon IDs yet. The meaning of x is unknown. 1 seems to work as a value.

Arguments

  • itemid itemid of ship or possibly weapon
  • x unknown, number 1 seems to work
  • cb function to be called once the transaction is complete