My bad, i missed an apostrophe XD
getmapxy(getd("$mapPRT"+strnpcinfo(2)+"$"), getd("$xPRT["+atoi(strnpcinfo(2))+"]"), getd("$yPRT["+atoi(strnpcinfo(2))+"]"), UNITTYPE_NPC, strnpcinfo(3));
Anyway we can help you better if you post the script or infos of what you really want to achieve.
Maybe this could help too
- script Pronterian -1,{
end;
OnInit:
donpcevent "::OnSetPCoord";
end;
OnSetPCoord:
.@id = atoi(strnpcinfo(2));
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
setd "$@PrtMap"+.@id+"$", .@map$;
setd "$@PrtX"+.@id+"", .@x;
setd "$@PrtY"+.@id+"", .@y;
end;
}
prontera,150,150,1 duplicate(Pronterian) Pronterian#1 844
prontera,150,152,1 duplicate(Pronterian) Pronterian#2 844
prontera,150,154,1 duplicate(Pronterian) Pronterian#3 844
then fetch the variables with $@PrtMap1$ $@PrtX1 $@PrtY1 and so on..
PS: I haven't test the script myself