No sir. If i would have changed the default t[10] to an long long int(long int) it would of threw back tons of errors from the other variables only being ints. Instead I did long long int s[10] and in the line where POS is I defined it like so:
Code:
if (!get_line(mob_f, line)) {
log("SYSERR: Format error in last line of mob #%d\n"
"...expecting line of form '# # #', but file ended!", nr);
exit(1);
}
if((retval = sscanf(line, " %d %d %d %lli ", t, t + 1, t + 2, s)) != 4) {
if(retval == 0) {
t[0] = 0;
} else if(retval == 1) {
t[0] = 0;
t[1] = 0;
} else if(retval == 2) {
t[2] = 0;
t[3] = 0;
} else if(retval == 3) {
s[0] = 0;
} else {
log("SYSERR: Format error in mob #%d, third line after S flag\n"
"...expecting 4 arguments, but has %d", nr, retval);
exit(1);
}
}
GET_POS(mob_proto + i) = t[0];
GET_DEFAULT_POS(mob_proto + i) = t[1];
GET_SEX(mob_proto + i) = t[2];
GET_MAX_POWERLEVEL(mob_proto + i) = s[0];