Either you remove the attachoffset = line (it will use the current difference to the player position then), or you set attachoffset to a good value. So either this
PHP Code:
with (findimg(200)) {
x = playerx + 1.5;
y = playery + 1.5;
z = playerz;
attachtoowner = true;
}
or this
PHP Code:
with (findimg(200)) {
attachtoowner = true;
attachoffset = {1.5,1.5,0};
}
The second is the preferred method.