Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
If you don't know c/c++ then it won't be possible for you to implement it especially since the function already exists in script format there is no point trying to ad it to the sources, especially if your not giving us any reason to implement it.
Why don't you tell us the reason you want it added to the sources and then maybe someone can help you with what your trying to accomplish
Also if you want to call this function forcecommand(text) then you can define forcecommand(text) as a local function inside of onSay and call doCreatureExecuteTalkAction(cid, text) within forcecommand.
Code:
function onSay(cid, words, param)
local function forcecommand(text)
doCreatureExecuteTalkAction(cid, text, true)
end
forcecommand("!online")
end
If it is defined anywhere outside of onSay then you need to pass cid to forcecommand, e.g. forcecommand(cid, text), which would defeat the purpose of re-writing the function.