• 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!

Lua isWalkable

AnarchGov

Member
Joined
Oct 3, 2011
Messages
263
Reaction score
6
The isWalkable function does not seem to work on my server lol. Any ideas on what to try and use instead?
 
Last edited:
Why don't we start with what you attempted to try and see what's wrong with it?
What is your script? What are you trying to do? What errors are you getting?
 
No errors, this is a spell knocks players and monsters back 3 squares when used...the problem is it will kock them through walls. This script worked almost perfectly on my old server, but now it does not seem to react to the isWalkable function. Thanks for the reply.


Here's the function:

function isWalkable(cid, pos) -- Cykotitan's edit of Scarlet Ay (No more errors when checking invalid tiles)
pos.stackpos = 0
if getTileThingByPos(pos).uid ~= 0 then
local n = getTileInfo(pos)
if n.protection == false and n.house == false and getTopCreature(pos).uid == 0 and doTileQueryAdd(cid, pos) == RETURNVALUE_NOERROR then
return true
end
end
end
 
Last edited:
Back
Top