januszek89
Scripter
Hello everyone!
I have problem with script. Here it is scrpit:
This is a script to jump 5 tiles.
And I'm searching someone which can change in this script:
Thanks for help . And sorry for my not good English .
I have problem with script. Here it is scrpit:
Code:
function onSay(cid, words, param, channel)
local t = {}
if(param ~= '') then
t = string.explode(param, ",")
end
local n = 5
if(not n) then
n = 5
end
local pid = cid
local pos = getClosestFreeTile(pid, getPosByDir(getCreaturePosition(pid), getCreatureLookDirection(pid), n), false, false)
if(not pos or isInArray({pos.x, pos.y}, 0)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")
return true
end
local tmp = getCreaturePosition(pid)
if(doTeleportThing(pid, pos, true) and not isPlayerGhost(pid)) then
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
return true
end
And I'm searching someone which can change in this script:
- User this talkaction can't penetrate the walls
- User this talkaction have exhaustion for 4-5min
Thanks for help . And sorry for my not good English .