• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Need Help in doPlayerSetNoMove

Matkas

New Member
Joined
Dec 13, 2008
Messages
14
Reaction score
0
Hello,
I try to make script which after use blocked Target(monster or Player).


Code:
doPlayerSetNoMove(cid, 0)
Player Can move.
Code:
doPlayerSetNoMove(cid, 1)
Player can't move.


I try to make something like that, but it doesn't work.

Code:
function onSay(cid, words, param)

doPlayerSetNoMove(Target, 1)

end

Or
Code:
function onSay(cid, words, param)

doCreatureSetNoMove(Target, 1)

end

Maybe you watch or read Harry Potter?
This script must be something like petrificus totalus.

Sorry for my english, I think you know what i mean.
Please Help!

Cya!
 
Code:
local target = getPlayerByNameWildcard(param)
doPlayerSetNoMove(target, TRUE)
 
Thanks, but it doesn't work.

Code:
[11/07/2009 17:45:41] Lua Script Error: [TalkAction Interface] 
[11/07/2009 17:45:41] data/talkactions/scripts/nierusz.lua:onSay

[11/07/2009 17:45:41] luaDoCreatureSetNoMove(). Creature not found

Ohh I forgot... I work on TFS 0.3.4pl2.

Cya
 
Back
Top