• 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 Function onWriteToChannel(cid, channelId, text) [+ extra doPlayerOpenChannel(cid, channelId)]

0.4

movie (.cam) Uploads TibiaBR

HTML:
function onSay(cid, words, param)
	
	doPlayerOpenChannel(cid, words)
	doSendAnimatedText(getPlayerPosition(cid), "Open "..words.."", math.random(1,256))
	return true
end

HTML:
<talkaction access="5" words="1;2;3;4;5;6;7;8;9;10" event="script" value="test.lua"/>
 
Bug is Fixed.

Thanks for this scripts, is veryu usefull in server
 
Last edited:
Could anyone update this? Not working at all for me

../luascript.cpp: In member function `virtual void LuaInterface::registerFunctions()':
../luascript.cpp:1590: error: `LuaScriptInterface' has not been declared

../luascript.cpp: At global scope:
../luascript.cpp:8912: error: `LuaScriptInterface' has not been declared

../luascript.cpp: In function `int32_t luaDoPlayerOpenChannel(lua_State*)':
../luascript.cpp:8915: error: `popNumber' was not declared in this scope
../luascript.cpp:8918: error: `getScriptEnv' was not declared in this scope
../luascript.cpp:8924: error: `getErrorDesc' was not declared in this scope
../luascript.cpp:8924: error: `reportErrorFunc' was not declared in this scope

mingw32-make: *** [obj//luascript.o] Error 1

Execution terminated
 
Back
Top