• 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 Make Player Unmovable

Arn

Member
Joined
Mar 8, 2010
Messages
282
Reaction score
18
Hi, I'm looking for a simple way to make a player unmovable for a short period of time. I was thinking paralyze, but that only makes them move slower if I'm correct.

Please help, and thank you,

-Arn
 
You can also modify the formula in the paralyze spell so they wouldn't be able to move, because you're setting their move speed so low they can't move, i think anyway
 
Lua:
function doFreeze(cid, time)
	doCreatureSetNoMove(cid, true)
	addEvent(function() 
		if (isCreature(cid)) then doCreatureSetNoMove(cid, false) end
	end, time, cid) 
end

This way addEvent(doCreatureSetNoMove,10*1000,cid, 0) can throw errors in console, when player logout/relog.
 
Back
Top