Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
Printable View
Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
How am i retarded? http://images.akamai.steamuserconten...0DC4260F88776/
lua code:
function getExperienceForLevel(level)
local level = level or Self.Level()
return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
end
function getExperienceLeft(level)
local level = level or Self.Level() + 1
return getExperienceForLevel(level) - Self.Experience()
end
It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.
Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.