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

how to play sound in tibiando action

[Error - Npc interface]
data/lib/modules.lua
Description:
data/lib/modules.lua:4: attempt to index local 'mod' <a nil value>
[Warning - LuaScriptInterface::initState] Cannot load data/lib/

Can anyone help me? :(
 
Config audio API - us.docx said:
You can config to send a sound effect in some scripts. (only on creaturescripts or in same lua state)
One way to do it would be to enable shared LUA states, but I dunno how to make that. The only other way around (AFAIK) would require TFS 0.3.7+ (registerCreatureEvent(uid, eventName) in the action + unregisterCreatureEvent(uid, eventName) in the creaturescript.)
 
Back
Top