Hello everyone
I have problem with scrpit which sending message when you StepOut from tile with action id = 4486.
Here is scrpit:
Where is problem?? :blink:
Here !!!:
So I'm not sure that I good use function "getCreatureLookDirection"
If someone can convert this script that it will works i will be very thankful
P.S. I'm using TFS 0.3.6
I have problem with scrpit which sending message when you StepOut from tile with action id = 4486.
Here is scrpit:
Lua:
function onStepOut(cid, item, position, fromPosition)
local message = "Welcome in Dsasd City"
local leave = "You are leaving Dsasd City"
local dirx = getCreatureLookDirection(cid)
if isPlayer(cid) and dirx = NORTH then
doSendMagicEffect(getCreaturePosition(cid),27)
doPlayerSendTextMessage(cid,19,message)
elseif isPlayer(cid) and dirx = SOUTH then
doSendMagicEffect(getCreaturePosition(cid),27)
doPlayerSendTextMessage(cid,19,leave)
else
return false
end
end
Where is problem?? :blink:
Here !!!:
So I'm not sure that I good use function "getCreatureLookDirection"
If someone can convert this script that it will works i will be very thankful
P.S. I'm using TFS 0.3.6
Last edited: