GetSourceIP()

From ElectronicWar

Jump to: navigation, search
Function information for getSourceIP()
Function getSourceIP()
Parameters None
API Banking/Attack
Cost $250
Level 1
CPU Usage 1
Description Returns the IP address in the form of a string when called in a banking or attack script. In a banking environment, the function returns the IP address of the computer which called the function. In an attack environment, the function returns the IP address of the computer which initiated the given attack.


[edit] Banking Example

lowerDeposit(getSourceIP(), getAmount());

Deposits the amount specified to the person that this is executed on.

[edit] Attack Example

message(getSourceIP(), "Hello World!");

If this was in the initialize event of an attack script it would display "Hello World" when the user started an attack.

Personal tools