getSourcePort()
From Hack Wars Wiki
| Function information for getSourcePort() | |
| Function | getSourcePort() |
| API | Attack |
| Cost | $10 |
| Level | 5 |
| CPU Usage | 1 |
| Description | Returns the port that is running this attack. |
Example
message(getSourceIP(), "Port "+getSourcePort()+" is commencing attack."); |
This will send "Port <port#> is commencing attack." to the person using the attack port.
Might also want to see:
getSourceIP()
message()
