To use JAPI:
- Import common.j to "scripts\common.j" - check hello.w3x if this isn't clear
- In both war3.lua and we.lua, uncomment (remove "--") from the front of the line that says injectdll(proc,"bin\japi.dll")
- Make sure you don't have a common.j lying around in your warcraft folder
