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/
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/