Lineage 2 Tower Forum

Full Version: Plugin behavior issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I cannot get this to work (will not append to file):

local file = io.open(GetDir() .. "\\plugins\\Drops.txt", "a");
file:write("TOI");
file:flush();

I know that one uses file;close() to close the file, but flush should save things to the file, but it does not.

I do use file:close() later in the same block.
I tried creating Drops.txt in path because am not sure if append function will create a file if it does not already exist.

I recently updated L2 retail to get the game patches and since then have seen issues with some NPC's not responding, etc.
Reference URL's