Limos can you give me xml file and where i should put that script?
Thanks!Put this in:
Code:data/actions/scripts/leveldoll.lua
And in the actions.xml add:
Code:<action itemid="idoftheitem" script="leveldoll.lua"/>
[04/05/2013 13:55:25] [Error - LuaScriptInterface::loadFile] data/actions/scripts/leveldoll.lua:15: 'end' expected (to close 'function' at line 8) near '<eof>'
[04/05/2013 13:55:25] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/leveldoll.lua)
[04/05/2013 13:55:25] data/actions/scripts/leveldoll.lua:15: 'end' expected (to close 'function' at line 8) near '<eof>
It's working now!Depense on which server you use, if you are not sure about such things, you can also look at the other action lines with itemid, then just add the id you are using for the script and the lua file name.
By looking at your other threads I guess you use something like 0.3, so that would be like this.
XML:<action itemid="2110" event="script" value="other/script.lua"/>