Damon
Check my status to contact me :)
this little script shows the player, where he is located!
he just have to look to one side and say !local
and then script tells him, if its nort,south...
so "exiva" will get easier:
Player is far to the nort!
!local
you are looking to north...
i found this script in my ots folder, don't know if you already have it or it is new?
goto:
\data\talkactions\scripts
and create new .lua file named "local"
and add:
then add to talkactions.xml
Kind Regards,
Damon
if new, pls rep++
he just have to look to one side and say !local
and then script tells him, if its nort,south...
so "exiva" will get easier:
Player is far to the nort!
!local
you are looking to north...
i found this script in my ots folder, don't know if you already have it or it is new?
goto:
\data\talkactions\scripts
and create new .lua file named "local"
and add:
PHP:
-- [( Script edited by Doidin )] --
function onSay(cid, words, param)
local direction = getCreatureLookDirection(cid)
if direction == NORTH then
doPlayerSendTextMessage(cid, 23, "You are looking to north.")
elseif direction == EAST then
doPlayerSendTextMessage(cid, 23, "You are looking to east.")
elseif direction == SOUTH then
doPlayerSendTextMessage(cid, 23, "You are looking to south.")
elseif direction == WEST then
doPlayerSendTextMessage(cid, 23, "You are looking to west.")
end
return TRUE
end
then add to talkactions.xml
PHP:
<talkaction words="!local" event="script" value="local.lua"/>
Kind Regards,
Damon
if new, pls rep++