Albanon
New Member
- Joined
- Mar 5, 2011
- Messages
- 93
- Reaction score
- 1
local pos = getCreaturePos(cid,target)
function onCastSpell(cid, var)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "your target is: " .. pos(var))
return doCombat(cid, combat, var)
end
I'm just trying to make a simple spell that will return the target players position
so, basically, exivia pos "bob
and a text message tells the player bobs position.
I have no idea why this doesn't work. I'm using this distro https://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/
function onCastSpell(cid, var)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "your target is: " .. pos(var))
return doCombat(cid, combat, var)
end
I'm just trying to make a simple spell that will return the target players position
so, basically, exivia pos "bob
and a text message tells the player bobs position.
I have no idea why this doesn't work. I'm using this distro https://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/