Gelio
Lua PHP C++ programmer
Hello. How to make, to player can't move in mine script. I've found out something, about doPlayerSetNoMove(cid, cannotMove) and mayNotMove(cid, x) functions, but when I put it into a script I get that errors:
I need help, because I want to make first login tutorial on my OT server, but when player will be allowed to move tutorial will move in for example to somebody's house. Help me as fast as possible.
Yours,
Gelio
P.S.: Sorry for my english.
Mine script:Lua Script Error: [Action Interface]
data/actions/scripts/popup test.luanUse
data/actions/scripts/popup test.lua:4: attempt to call global 'doPlayerSetNoMove
' (a nil value)
stack traceback:
data/actions/scripts/popup test.lua:4: in function <data/actions/scripts
/popup test.lua:1>
Lua Script Error: [Action Interface]
data/actions/scripts/popup test.luanUse
data/actions/scripts/popup test.lua:4: attempt to call global 'doPlayerSetNoMove
' (a nil value)
stack traceback:
data/actions/scripts/popup test.lua:4: in function <data/actions/scripts
/popup test.lua:1>
Code:
function onUse(cid, item, frompos, item2, topos)
doPlayerPopupFYI(cid, "Test message")
doPlayerSetNoMove(cid, 0)
end
Yours,
Gelio
P.S.: Sorry for my english.
Last edited: