• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Can't do talkactions /a

jasiexxx

New Member
Joined
Nov 10, 2009
Messages
62
Reaction score
1
Location
Hollywood/Poland
Hello i have prbl. if i traying do /a in console you can see it and actions don't work
cant_tp

I copy old file from tfs and isn't work mayby it's not problem or another file couse after some changes it work's but i dont changes talkactions i have tfs 0.4.0_dev :D dont ask why :p Have next profil but ban :(

Help me pls!

Please Close Theard i found errors in lib < position :D
 
Last edited by a moderator:
PHP:
function onSay(cid, words, param, channel)
	local t = {}
	if(param ~= '') then
		t = string.explode(param, ",")
	end

	local n = tonumber(t[1])
	if(not n) then
		n = 1
	end

	local pid = cid
	if(t[2]) then
		pid = getPlayerByNameWildcard(t[2])
		if(not pid or (isPlayerGhost(pid) and getPlayerAccess(pid) > getPlayerAccess(cid))) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
			return true
		end
	end

	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

Try this one <_<
 
Back
Top