Ok, this is the function that calls serialize.save:
The variable "enchantments":
It used to work as it should, but now I get this error message:
Any ideas what is wrong?
EDIT: nevermind, it was my fault, somehow the "enchantments" table got deleted while the mud was connected.
function logout ()
require "serialize"
SetVariable ("enchantments", serialize.save ("enchantments"))
end --function
The variable "enchantments":
<variable name="enchantments">enchantments = {}
enchantments.kingdom = "ring131138"
enchantments.perfection = "ring98681"
enchantments.mercy = "ring69437"
enchantments.cleanse = "ring108387"</variable>
It used to work as it should, but now I get this error message:
Run-time error
World: Lusternia
Function/Sub: logout called by trigger
Reason: processing trigger "logout"
C:\Program Files\MUSHclient\lua\serialize.lua:78: Variable 'enchantments' does not exist
stack traceback:
[C]: in function 'assert'
C:\Program Files\MUSHclient\lua\serialize.lua:78: in function 'save'
[string "Script file"]:2422: in function <[string "Script file"]:2419>
Any ideas what is wrong?
EDIT: nevermind, it was my fault, somehow the "enchantments" table got deleted while the mud was connected.