Hi guys, I'm not friends with English, so I use the translator, I hope he will translate my question correctly
I began to find out how work file, @ItemIno@ and are inside the function
Spoiler
function main()for ItemID, DESC in pairs(tbl)do
result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)ifnot result ==truethenreturnfalse, msg
endfor k, v in pairs(DESC.unidentifiedDescriptionName)do
result, msg = AddItemUnidentifiedDesc(ItemID, v)ifnot result ==truethenreturnfalse, msg
endendfor k, v in pairs(DESC.identifiedDescriptionName)do
result, msg = AddItemIdentifiedDesc(ItemID, v)ifnot result ==truethenreturnfalse, msg
endendifnil~= DESC.EffectID then
result, msg = AddItemEffectInfo(ItemID, DESC.EffectID)endifnot result ==truethenreturnfalse, msg
endifnil~= DESC.costume then
result, msg = AddItemIsCostume(ItemID, DESC.costume)endifnot result ==truethenreturnfalse, msg
endendreturntrue,"good"end
I wanted to repeat function in my program (Lua Development Tools) but unfortunately I get a error
Spoiler
Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...oduct-win32.win32.x86_64\workspace\test\src\test.lua:51: attempt to call global 'AddItem' (a nil value)
Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...oduct-win32.win32.x86_64\workspace\test\src\test.lua:51: attempt to call global 'AddItem' (a nil value)
please tell me gow fix it or How to make him work?
Question
SeMgA
Hi guys, I'm not friends with English, so I use the translator, I hope he will translate my question correctly
I began to find out how work file, @ItemIno@ and are inside the function
I wanted to repeat function in my program (Lua Development Tools) but unfortunately I get a error
Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...oduct-win32.win32.x86_64\workspace\test\src\test.lua:51: attempt to call global 'AddItem' (a nil value)
Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...oduct-win32.win32.x86_64\workspace\test\src\test.lua:51: attempt to call global 'AddItem' (a nil value)
please tell me gow fix it or How to make him work?
test.lua
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.