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

GetSocket function in Tibiando

Slime

Active Member
Joined
Jan 25, 2014
Messages
115
Reaction score
33
I guess implementing this function is crucial to adding spell/attack/hit sounds to the game. And here's my noob question. Where do I paste this?

function getSocket(cid)
if not dj then
error('You have to install tibiando. The tibiando work ONLY in creaturescripts. This function too.')
end
for i,b in pairs(dj.online) do
if b.cid == cid then
return b[1]
end
end
end

original script:
http://otland.net/threads/getsocket-cid-function-to-audio-module.122162/
 
Back
Top