Tips and Tricks
From Hack Wars Wiki
Before you read this guide you should read the Getting Started Guide and complete the quests so that you have at least a basic understanding of HackWars
Contents |
Choosing your Opponent (NPC)
When fighting NPCs you should experiment to find out who you can attack without overheating and how effectivly you can do it.
Start at the bottom of the ladder and work your way up, if an opponent is too strong then move back down the ladder until you have better levels and equipment then try again
Player Vs Player (PvP)
When you decide to PvP BE CAREFUL, if you attack the wrong player you could find that you have become a farm instead of a threat
Get your levels up, buy strong equipment and powerful scripts then pick out someone you can attack AND defend against, in the virtual world you must be on guard at all times
When you are away...
There are several things you can do for when you log off
- Port Manager
- There is no need to leave your attack and redirection ports turned on as they will just take up CPU while you are gone, just turn them back on when you get back
- Turn on your bank and HTTP ports so you can collect your Daily Pay
- Watch Scripts
- Scan watchs are easy to get around with trial and error attacks
- ALWAYS have a health watch on your Bank Port as this is the most likely target for hackers
- If you are coding your own scripts don't limit yourself to logMessage() commands as logs can be changed or deleted easily
Tactics
There are several tactics that you can use to disable opposing scripts or even turn them against your opponent.
- Multiporting
As you improve your CPU you will be able to have multiple attack ports running at once, this allows you to use Multiporting.
To multiport open 2 attack windows, target 2 ports belonging to the same address, make sure that the port you want to reduce to 0 is targetted by your second attack, then attack with your first port, wait a little while then attack with your second port, as soon as your first port is under attack cancel it, most attacks will continue until the port has lost all it's health so while your first port is being attacked your real attack is continuing from your second port.
Scripting
- Alias
You might find yourself constantly using the same function throughout scripts, this can hike up the costs quite quickly. Aliasing stops this happening by only calling the original function once, but allows you to call the aliased name many times with no extra charge. Void: This type of function is used when the function will not return any value. string: This type of function is used when the function will return a value in the form of a string. int: This type of function is used when the function will return a value in the form of a integer. float: This type of function is used when the function will return a value in the form of a float. boolean: This type of function is used when the function will return a value in the form of a boolean.
Declaring an alias is usually done outside of the main function (int main() {}).
example:
void w_File(string file, string text) { writeFile(file, text); } int main() { w_File("file","some data"); } |
