Hello! Today i will release my project. Tibiando.
If you play K.A you see it on version 1.0 apha in client with audio.
Well now i will release version 2.0 how as Open source! :thumbup:
This API use an script on your server and the client on player PC.
You add the musics on player client (in dir audio) and config on server script how it will play.
by outfit? By position? by storage?
Its a bit hard to set it to work so some newbies server owner will not understand how to config etc, but its just read the manual (with the files)
Check Tibiando here: https://sourceforge.net/projects/tibiando/files/
Remenber it folows the GNU general public license.
Now a bit about config your audio API (server)
unfortunately TFS and open tibia lua states is shared, one state to actions, one to movements, one to creaturescripts etc.
Its better use audio API in creaturescripts.
so add it in some file (or data/creaturescripts/lib)
And to play some effect when player logout:
More explanations in files on https://sourceforge.net/projects/tibiando/files/
Video Guide:
http://www.youtube.com/watch?v=3b0VVkyARs8
If you play K.A you see it on version 1.0 apha in client with audio.
Well now i will release version 2.0 how as Open source! :thumbup:
This API use an script on your server and the client on player PC.
You add the musics on player client (in dir audio) and config on server script how it will play.
by outfit? By position? by storage?
Its a bit hard to set it to work so some newbies server owner will not understand how to config etc, but its just read the manual (with the files)
Check Tibiando here: https://sourceforge.net/projects/tibiando/files/
Remenber it folows the GNU general public license.
Now a bit about config your audio API (server)
Lua:
--Play by pos
{formpos,topos,{'music,mp3'},type=1},
{{x=299,y=232,z=7},{x=309,y=242,z=7},{'a touch of blessing.mp3'},type=1}, -- play in position
--Play in PZ
{0,0,{'music.mp3'},type=2},
{0,0,{'omg.mp3'},type=2},
--Play by player storage value
{0,0,{'music.mp3'},type=3,storage=storage},
{0,0,{'prologue.mp3'},type=3,storage=4820},
-- By global storage
{0,0,{'omg.ogg'},type=4,storage=storage},
{0,0,{'x1nb.ogg'},type=4,storage=5050},
-- If function return true
{0,0,{'x1nb.ogg'},type=5,f=function,
{0,0,{'x1nb.ogg'},type=5,f=function(cid)
return getCreatureOutfit(cid).lookType == 16
end},
unfortunately TFS and open tibia lua states is shared, one state to actions, one to movements, one to creaturescripts etc.
Its better use audio API in creaturescripts.
so add it in some file (or data/creaturescripts/lib)
Lua:
if not dj then
dj = startAPI(7173) -- Here start the audio
end
Lua:
for i,b in pairs(dj.online) do
if b.cid == cid then
addEvent(function(b) b:send('EF=logout.wav\n') end,500,b[1])
end
end
More explanations in files on https://sourceforge.net/projects/tibiando/files/
Video Guide:
http://www.youtube.com/watch?v=3b0VVkyARs8
Last edited by a moderator: