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

Tibia Tibiando - Audio API for tibia

I have a question.
It all works fine except the music keeps playing when I walk on no music zones and never stops just changes if I enter a new zone.Do I need to outline my music zones with no music zones(in audio_api) so that I step on something to turn it off or is there some settings I havent found that would allow me to do this.Other than this issue this is a great release.(+rep)
 
How do you set it to play for more than 1 person? When I play only 1 person can listen,when he turns off his tibiando someone else can hear, but only 1 player at a time.
Thanks for any help.
:)
 
it is possible to add sounds (small light wav ones perhaps) to attaks and skills?
(sword effects, for axes and more specific.. ? spears, arrows, runes, for spells like explode fxs and such.... ) ??
i would really appreciate some help so i could manually add those ^_^
 
Do the whole files like on video should be all the time in client folder or just for an installation? Like I'm going to send my ots client for friend and I have to send to him all of these or there just one more folder with musics?
 
Ive got some good sound files now but I still can only have 1 person listen at a time.....what did I do wrong and how do I fix it ;p
anyone?
 
Edit your Tibiando like this: (everything errors has been deleted)
Lua:
In audio_api.lua  (...)

function onDj()
        if server then
            local ret,var = coroutine.resume(dj.co1)
            assert(ret,var)
            if ret == true and var then
                dj.n = dj.n+1
                local ipa = var:getpeername()
                dj.online[dj.n] = {var,ip=ipa,ended=os.clock()-1}
                local urs = getPlayer(ipa)
                if urs then
                    if dj.print then  print(ipa..' Logged in: '.. getCreatureName(urs) ) end
                   dj.online[dj.n].player = getCreatureName(urs)
                   dj.online[dj.n].fu = false
                   dj.online[dj.n].t = os.time()+4
                   dj.online[dj.n].cid = urs
                else
                if dj.print then
                     print(ipa..' Logged in: no char.' )
                   
                end
                end
            end
            for index,varm in pairs(dj.online) do
                sock_mannager(varm,index)
                if varm.t and varm.t <= os.time() then
                play(varm,index)
                end
            end
        end
        addEvent(onDj,dj.delay)
    end
    function insideArea(p1,p2,me)
        if not me then return false end
        if p1.x <= me.x and p2.x >= me.x then
            if p1.y <= me.y and p2.y >= me.y then
                if p1.z >= me.z and p2.z <= me.z then
                    return true
                end
            end
        end
        return false
    end
    addEvent(print,300,'>> Everything are alright. Unreal 2D TSB is running now!')
    addEvent(onDj,300)
    addEvent(print,600,'< > SERVER STARTED! < >')
    addEvent(onDj,600)
    return dj

(...)
 
I have a question? Mock its possible? Its working like that?
Lua:
{0,0,{'weap_axe.ogg'},type=5,f=function(cid)
return getPlayerWeaponType(cid).weaponType == WEAPON__AXE
end},
 
Back
Top