• 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!

GlobalEvent Stream Live From Your Website!

Wow that is a really stupid reason. So you tell me if Someone named on Otland Alexander, you can't use the name Alex? Bcz its same name?


its not the same thing man.


I always say cyko to cykotitan. cant you just pick something els that is not something with cyko or cykotitan?
 
Do you get errors, or is the document only empty?

Between im not Cykotitan.

I have this error in My Server Console:

PHP:
[Error - GlobalEvent Interface] 
data/globalevents/scripts/stream.luanThink
Description: 
(luaGetThingPosition) Thing not found
[Error - GlobalEvent Interface] 
data/globalevents/scripts/stream.luanThink

And no paint the cordenades in stream.json
I have all good! I'm use linux and url of the json is good!
Thanks Cyko!
 
mmm cyko! In my stream.json only paint this

PHP:
{}

Only paint this. Please help me!
 
I have problem. I see players but I can't see floor, walls and other itemid's.
This is screen from my page:
elo.png
 
Take picture on the temple or the place you want and add create new folder and name it images and name the image stream.png:
Code:
background-image:url('images/stream.png')

Between i recommend take the picture from the mapeditor and also hide zones and shit.
 
You should put a tutorial on how to add this on Windows aswell.. And btw, I'm getting errors in TFS 0.3.6. This is NOT working on 0.3.6 :p

jzwm7d.png
 
not work - screenSHU - The fastest screen capture ever.
:<

[Error - GlobalEvent Interface]
data/globalevents/scripts/stream.lua:eek:nThink
Description:
(luaGetCreatureOutfit) Creature not found

[Error - GlobalEvent Interface]
data/globalevents/scripts/stream.lua:eek:nThink
Description:
(luaGetThingPosition) Thing not found
 
Last edited:
I fix the lua script (works for me in 0.4).. it print player info on json... but, gesior load info but dont show players... need someone to fix gesior right now..

Code:
function onThink(cid, interval)
local cyko = {   
streampos = getSpectators({x=427,y=470,z=7}, 40, 20, false), --Middle pos of the temple and radius.
ghost = false, --You want allow players which using ghost? true of false. 
}      
local stream = "{"
if cyko.streampos then
for i = 1, #cyko.streampos do
local cid = cyko.streampos[i]
if isPlayer(cid) and isPlayerGhost(cid) == cyko.ghost then
stream = stream .. '"'..getCreatureName(cid)..'":['.. getThingPosition(cid).x ..','.. getThingPosition(cid).y ..','.. getThingPosition(cid).z ..','.. getCreatureOutfit(cid).lookType ..','.. getCreatureOutfit(cid).lookAddons ..','.. getCreatureOutfit(cid).lookHead ..','.. getCreatureOutfit(cid).lookBody ..','.. getCreatureOutfit(cid).lookLegs ..','.. getCreatureOutfit(cid).lookFeet ..',0,'.. (getCreatureLookDirection(cid)) ..',' .. getCreatureOutfit(cid).lookTypeEx .. ','.. getCreatureSkullType(cid) ..'],';
end
end
end
stream = stream .. '}'
local text = stream
print("" .. text .. "")
local file = io.open("/home/otsserver/www/public_html/cache/stream.json", "w")
file:write("".. text .. "")
file:close() 
 return true 
end
 
Last edited:
Back
Top