zombieAttack()

From Hack Wars Wiki

Jump to: navigation, search


Function information for zombieAttack()
Function zombieAttack(string zombieIP,int zombiePort,string opponentIP, int opponentPort)
API Watch
Cost $15,000
Level 15
CPU Usage 10
Description Launches an attack from the zombie and port indicated against the opponent represented by the IP and port.


Every attack attempt costs $20 - even if the zombie is not a valid zombie (anymore), was already attacking, overheated, the target IP or port were invalid or any other reason.

Limitations

This function only works if the watch was fired by triggerWatch(). If a watch using this function was fired by a scan or attack then zombieAttack() will be skipped.

Example

When fired this watch example will attack Port 1 of 900.800.6.002 by using the attack port of 900.800.6.001. Note: In this example the zombie used is a NPC. NPCs cannot be zombiefied.

zombieAttack("900.800.6.001",0,"900.800.6.002",1);
Personal tools