What prints getCreaturePosition(cid) on console? Just that, i'm asking this question because i don't have a server so i can't test it.
local pos = getThingPos(cid)
print(string.format("x = %d, y = %d, z = %d", pos.x, pos.y, pos.z))
No server?
Maybe you want to hook up on this, http://otland.net/f21/test-your-script-testserver-185993/
Sorry for offtopic
You mean like:or did I understand you wrong?LUA:local pos = getThingPos(cid) print(string.format("x = %d, y = %d, z = %d", pos.x, pos.y, pos.z))
function onUse(cid, item, fromPosition, itemEx, toPosition)
print(getCreaturePosition(cid))
return true
end