Whatever... EQ is messed up, MQ just followed their rules...Say you want to know what direction to move to get to your target. With MQ2Parm, you would use "$target(headingto)" or "$heading($target(y),$target(x))" -- or maybe it was $heading($target(x),$target(y)), but I cant even tell you that because of the mechanics of x y and z in MQ2Parms. The problem with x y and z is that MQ2's x isnt the same as what you would call EQ's x, for a very silly reason. Someone decided that EQ's x is "wrong" and that x most definitely must be a certain direction on the map, and y most definitely must be another certain direction on the map. This led to $char(x), $char(y) not being the same as you would see in /loc.
Copied from CVS:
Code: Select all
// $target(x)
} else if (!strncmp("target(x)",szVar,9)) {
CHAR szTemp[MAX_STRING] = {0};
i+=8;
if (!psTarget) {
strcpy(szOutput,"0");
} else {
sprintf(szTemp,"%1.2f",psTarget->X);
strcpy(szOutput,szTemp);
}
// $target(y)
} else if (!strncmp("target(y)",szVar,9)) {
CHAR szTemp[MAX_STRING] = {0};
i+=8;
if (!psTarget) {
strcpy(szOutput,"0");
} else {
sprintf(szTemp,"%1.2f",psTarget->Y);
strcpy(szOutput,szTemp);
}

