lowerTransfer()

From Hack Wars Wiki

Jump to: navigation, search


Function information for lowerTransfer()
Function lowerTransfer(string ip, float amount)
API Banking
Cost $10
Level 1
CPU Usage 1
Description Transfers the amount specified in the form of a float to the petty cash of the player represented by the provided IP address in the form of a string. lowerTransfer takes the highest percentage (20%) in service charges and gives the least experience.



Example

This is what would be used in a basic bank script. It set's variables IP as a string, and amount as a float, which represent the person you're transfering to and the amount. These variables are represented by their proper functions.

string ip = getTargetIP();
float amount = getAmount();
lowerTransfer(ip, amount);
Personal tools