Refactor/Cleanup/BugFixes
- PCHAR to char*
- remove pulsing variable.
- Replace TargetIt #define with function.
- VOID to void
- remove void as a parameter
- RemoveCommand for /permignore added.
- Added function Moving(PSPAWNINFO pSpawn) to avoid the plugin spam sitting when the character moves manually.
- move most if not all commands to their own line following an if statement.
- Removed commented out plugin API calls.
- change char var[MAX_STRING] parameters to use char*
- Changed atob to do a case insensitive compare and remove looping through the character array setting characters to lowercase.
- CHAR to char
- Add spacing after move if statements for readability.
- Adjust the clear option for /farm farmmob clear so that it doesn't return. Which allows "UpdateSearchString()" to occur.
- DWORD to unsigned long
- refactor SearchSpawns to significantly reduce the likelyhood that it would fail to find targets accurately.
- reduce lag produced by SearchSpawns by using base cases, and removing the use of PathExists in favor of getting a PathLength which is saved to a variable, then verifying the pathlength isn't -1
- refactor AmFacing(unsigned long) to use the correct formula.
- Update NavCommands.h to update from deprecated API function calls. Update uses the same thing that is in cwtncommon.
- Adjustments for the updated NavCommands.h were made to MQ2FarmTest.cpp
- Prototypes adjusted to match their definitions.
- unsigned __int64 to uint64_t