xLosT
Member
I have not yet tested
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?
Do you get errors, or is the document only empty?
Between im not Cykotitan.
[Error - GlobalEvent Interface]
data/globalevents/scripts/stream.luanThink
Description:
(luaGetThingPosition) Thing not found
[Error - GlobalEvent Interface]
data/globalevents/scripts/stream.luanThink
background-image:url('images/stream.png')
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
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