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

Live Stream -/ Help \-

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,249
Solutions
71
Reaction score
621
Location
Hell
Hello otlanders!
i've found a live stream script in my datapack :D. I think #Cyko made it.
whatever...

Im getting these errors when i enable it in .xml file.

Code:
[20/02/2014 17:30:27] [Error - GlobalEvent Interface]
[20/02/2014 17:30:27] data/globalevents/scripts/stream.lua:onThink
[20/02/2014 17:30:27] Description:
[20/02/2014 17:30:27] (luaGetCreatureOutfit) Creature not found

[20/02/2014 17:30:27] [Error - GlobalEvent Interface]
[20/02/2014 17:30:27] data/globalevents/scripts/stream.lua:onThink
[20/02/2014 17:30:27] Description:
[20/02/2014 17:30:27] (luaGetThingPosition) Thing not found


and .. stream.lua

Code:
function onThink(cid, interval)
local cyko = {  
  streampath = io.open('/xampp/htdocs/cache/stream.json',"w"),
   streampos = getSpectators({x=1000,y=1000,z=7}, 18, 15, false), --Middle pos of the temple and radius.
   ghost = false, --You want allow players which using ghost? true of false.
   generateoutfits = getCreatureOutfit(cid),
   generateplayerspos = getThingPos(cid),
}  
  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)..'":['.. cyko.generateplayerspos.x ..','.. cyko.generateplayerspos.y ..','.. cyko.generateplayerspos.z ..','.. cyko.generateoutfits.lookType ..','.. cyko.generateoutfits.lookAddons ..','.. cyko.generateoutfits.lookHead ..','.. cyko.generateoutfits.lookBody ..','.. cyko.generateoutfits.lookLegs ..','.. cyko.generateoutfits.lookFeet ..',0,'.. (getCreatureLookDirection(cid)) ..',' .. cyko.generateoutfits.lookTypeEx .. ','.. getCreatureSkullType(cid) ..'],';
       end
     end
   end
    stream = stream .. '}'
  cyko.streampath:write(stream)
  cyko.streampath:close()
  return true
end
 
Last edited:
Yes, u have the "Talkactions" , but u dont have the system in sources.
 
I dont know if Cyko wrote it or not, but if I were you I would search a cast which you have to edit your sources... I dont think it is worth to rely on such only lua based cast
 
Back
Top