Anyone know 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/
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.)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)