• 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

Wow Mock! Thanks for the system and for the video. The possibilities are infinite: action music in a battle? A shop theme just like in the legend of zelda played when talking to a seller npc? I'm sure that in the near future, all the custom servers will have this. You are making great stuff, good job!
 
Youtube video guide added to OP.
 
Doesnt work for me :,(. I have followed the video on youtube to install this, but it doesn't work. It does not play the sound on the area designated on the config area. Using 0.3.6pl1. Can someone confirm that following the instruction on the video will make this work?

I do have some question for Mock. You said
"To add on YOUR SERVER download: tibiando-server-api.rar
to add on YOUR CLIENT download tibiando client or source"

can you explain this? if i download the tibiando server api there is no place to add the music. You said
"where you put sounds? ;D
in client/audio
server only say to client what file to play and client check on audio/"
Do i create this folder? This folder is added in Tibiando-Client as shown in the youtube video, so this is were it gets confusing. Do i use both tibiando client and API server? OR just API server?

Please clear this up :D Thank You.
(Other languages that I speak: Spanish)
 
thank for the re-upload, I guess ill try all over again and see if it works Xd. The features are so cool XD
 
Hey Mock I think i got everything working correctly because the tibiando application is able to connect to the server. The only problem now is that It wont play the music selected .I have places the music in the TibiaClient>Audio folder and have configured it in the audio api.lua and I have also seleced the area of were the music in going to play(X,Y,Z). I have done all this but still the music does not play. Can you help me?
 
when i run tibiando.exe i hearing 'waiting connecting' and after 'audio from this server is disable'
and sounds not work for me ;/

i changed port in every file 7171 becouse my serv is using port 7171

i installed modules.lua sound api.lua i added everything like in youtube movie
Code:
[26/09/2010 20:53:44] >> Loading config (config.lua)
[26/09/2010 20:53:44] > Using plaintext passwords
[26/09/2010 20:53:44] >> Checking software version... outdated, please consider updating!
[26/09/2010 20:53:45] > Current version information - version: 0.3.5, patch: 1, build: 2576, timestamp: 1249584126.
[26/09/2010 20:53:45] > Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp: 1260652199.
[26/09/2010 20:53:45] >> Fetching blacklist
[26/09/2010 20:53:45] >> Loading RSA key
[26/09/2010 20:53:45] >> Starting SQL connection
[26/09/2010 20:53:45] >> Running Database Manager
[26/09/2010 20:53:45] > Optimized database.
[26/09/2010 20:53:45] >> Loading items
[26/09/2010 20:53:46] >> Loading groups
[26/09/2010 20:53:46] >> Loading vocations
[26/09/2010 20:53:46] >> Loading script systems
[26/09/2010 20:53:48] Ready
[26/09/2010 20:53:48] >> Loading chat channels
[26/09/2010 20:53:48] >> Loading outfits
[26/09/2010 20:53:48] >> Loading experience stages
[26/09/2010 20:53:48] >> Loading monsters
[26/09/2010 20:53:52] >> Loading mods...
[26/09/2010 20:53:52] >> Loading map and spawns...
[26/09/2010 20:53:55] > Map size: 2048x2048.
[26/09/2010 20:53:55] > Map descriptions: 
[26/09/2010 20:53:55] Saved with Remere's Map Editor 2.1
[26/09/2010 20:53:55] No map description available.
[26/09/2010 20:54:38] > Map loading time: 46.015 seconds.
[26/09/2010 20:54:57] > Data parsing time: 16.906 seconds.
[26/09/2010 20:54:59] > Houses synchronization time: 2.547 seconds.
[26/09/2010 20:54:59] > Content unserialization time: 0.359 seconds.
[26/09/2010 20:55:00] >> Checking world type... PvP
[26/09/2010 20:55:00] >> Initializing game state modules and registering services...
[26/09/2010 20:55:07] > Global address: 195.116.94.242
[26/09/2010 20:55:07] > Local ports: 7171    7172    
[26/09/2010 20:55:07] >> All modules were loaded, server is starting up...
[26/09/2010 20:55:07] OK
[26/09/2010 20:55:07] >> Forgotten server Online!

[26/09/2010 20:55:55] Andu has logged in.

Its looks like a scrips loaded succesful but still i hearing 'audio from this server is disable' ;/
 
so funciona em xp?
to com o windows 7 aki
e n ta pegando as musicas
configurei exatamente = ao tutorial do youtube!
mas grande trabalho vei
rep++
 
when i run tibiando.exe i hearing 'waiting connecting' and after 'audio from this server is disable'
and sounds not work for me ;/

i changed port in every file 7171 becouse my serv is using port 7171

i installed modules.lua sound api.lua i added everything like in youtube movie
Code:
[26/09/2010 20:53:44] >> Loading config (config.lua)
[26/09/2010 20:53:44] > Using plaintext passwords
[26/09/2010 20:53:44] >> Checking software version... outdated, please consider updating!
[26/09/2010 20:53:45] > Current version information - version: 0.3.5, patch: 1, build: 2576, timestamp: 1249584126.
[26/09/2010 20:53:45] > Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp: 1260652199.
[26/09/2010 20:53:45] >> Fetching blacklist
[26/09/2010 20:53:45] >> Loading RSA key
[26/09/2010 20:53:45] >> Starting SQL connection
[26/09/2010 20:53:45] >> Running Database Manager
[26/09/2010 20:53:45] > Optimized database.
[26/09/2010 20:53:45] >> Loading items
[26/09/2010 20:53:46] >> Loading groups
[26/09/2010 20:53:46] >> Loading vocations
[26/09/2010 20:53:46] >> Loading script systems
[26/09/2010 20:53:48] Ready
[26/09/2010 20:53:48] >> Loading chat channels
[26/09/2010 20:53:48] >> Loading outfits
[26/09/2010 20:53:48] >> Loading experience stages
[26/09/2010 20:53:48] >> Loading monsters
[26/09/2010 20:53:52] >> Loading mods...
[26/09/2010 20:53:52] >> Loading map and spawns...
[26/09/2010 20:53:55] > Map size: 2048x2048.
[26/09/2010 20:53:55] > Map descriptions: 
[26/09/2010 20:53:55] Saved with Remere's Map Editor 2.1
[26/09/2010 20:53:55] No map description available.
[26/09/2010 20:54:38] > Map loading time: 46.015 seconds.
[26/09/2010 20:54:57] > Data parsing time: 16.906 seconds.
[26/09/2010 20:54:59] > Houses synchronization time: 2.547 seconds.
[26/09/2010 20:54:59] > Content unserialization time: 0.359 seconds.
[26/09/2010 20:55:00] >> Checking world type... PvP
[26/09/2010 20:55:00] >> Initializing game state modules and registering services...
[26/09/2010 20:55:07] > Global address: 195.116.94.242
[26/09/2010 20:55:07] > Local ports: 7171    7172    
[26/09/2010 20:55:07] >> All modules were loaded, server is starting up...
[26/09/2010 20:55:07] OK
[26/09/2010 20:55:07] >> Forgotten server Online!

[26/09/2010 20:55:55] Andu has logged in.

Its looks like a scrips loaded succesful but still i hearing 'audio from this server is disable' ;/

U should not change port to same port as ur server has!!!
U should keep it 7173 unless, ur 7173 is allredy taken, if yes, choose another free port!
u cant use same port as otserver uses in tibiando, cuz u cant open connections with multiple things on one port...

For all who have problems that they wont hear any sound...
i had same problem...
1. u need only sound start lua file, from creaturescripts, cuz others are only to show you what u can do with this api...
just open sound start lua or whatever, and paste the -> if not dj.........end part in your login.lua
but inside the onlogin function!

i had problems, but after restarting the pc it worked!
i had experimented with it to bring it to work, so it seems it has messed up somehow in the computers memory...
after restart, the tibiando tool started automaticly the tibia.exe, but wont show itself on the right down...
so i started it while i was loged in, and it worked!
 
Hi, mock, first I'm sorry for my bad english =/

I do this:
dj.area = {

{
{x=32281,y=32175,z=7},{x=32433,y=32278,z=7},{'Thais.mp3'},type=1,
{x=32341,y=32218,z=7},{x=32351,y=32232,z=7},{'dp.mp3'},type=1,
{x=32311,y=31746,z=7},{x=32354,y=31860,z=7},{'carlin.mp3'},type=1,
{x=32292,y=31764,z=7},{x=32416,y=31868,z=7},{'carlin.mp3'},type=1,
{x=32353,y=31754,z=7},{x=32370,y=31765,z=7},{'carlin.mp3'},type=1,
{x=32289,y=31789,z=7},{x=32291,y=31822,z=7},{'carlin.mp3'},type=1,
{x=32303,y=31756,z=7},{x=32310,y=31762,z=7},{'carlin.mp3'},type=1
}
,
}

but only i listen music in thais and the default theme, can you show me an example of how to do what music sounds in diferent places?
Again, sorry for my bad english but you understand me
Thanks
 
I don't have Tibiando on my HDD to look into, but basing on first post it should look like:
Code:
dj.area = {
	{{x = 32281, y = 32175, z = 7}, {x = 32433, y = 32278, z = 7}, {'Thais.mp3'}, type = 1},
	{{x = 32341, y = 32218, z = 7}, {x = 32351, y = 32232, z = 7}, {'dp.mp3'}, type = 1},
	{{x = 32311, y = 31746, z = 7}, {x = 32354, y = 31860, z = 7}, {'carlin.mp3'}, type = 1},
	{{x = 32292, y = 31764, z = 7}, {x = 32416, y = 31868, z = 7}, {'carlin.mp3'}, type = 1},
	{{x = 32353, y = 31754, z = 7}, {x = 32370, y = 31765, z = 7}, {'carlin.mp3'}, type = 1},
	{{x = 32289, y = 31789, z = 7}, {x = 32291, y = 31822, z = 7}, {'carlin.mp3'}, type = 1},
	{{x = 32303, y = 31756, z = 7}, {x = 32310, y = 31762, z = 7}, {'carlin.mp3'}, type = 1}
}
 
Nice script. I'll make tommorow new LUA class to make it usefull (work in all scripts in same time - actions, movements..).
 
tem como fazer o som tocar em uma action tipo cliko no bau de uma quest e toca uma musica
 
Thank you Mock, this is amazing. Today I got it to work correctly and I'm going to use it in every darned possible way on my ots!
 
If you want send a effect when a player do a action run something like this
Add this function:
Code:
function getSocket(cid)
		for i,b in pairs(dj.online) do
			if b.cid == cid then
				return b[1]
			end
		end
	end
and then in script:
Code:
function onKill(cid) --Function on kill
     if isPlayer(cid) then -- Check if the killer is a player
          local sock = getSocket(cid) --- Get player socket
          if sock then  --- If player has audio
               sock:send('EF=kill.wav\n') --Send the music name to play
          end
     end
     return true -- return true :p
end
 
Back
Top