Jump to content
  • 0

ItemIno lua error


SeMgA

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  12/29/12
  • Last Seen:  

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)
		if not result == true then
			return false, msg
		end
		for k, v in pairs(DESC.unidentifiedDescriptionName) do
			result, msg = AddItemUnidentifiedDesc(ItemID, v)
			if not result == true then
				return false, msg
			end
		end
		for k, v in pairs(DESC.identifiedDescriptionName) do
			result, msg = AddItemIdentifiedDesc(ItemID, v)
			if not result == true then
				return false, msg
			end
		end
		if nil ~= DESC.EffectID then
			result, msg = AddItemEffectInfo(ItemID, DESC.EffectID)
		end
		if not result == true then
			return false, msg
		end
		if nil ~= DESC.costume then
			result, msg = AddItemIsCostume(ItemID, DESC.costume)
		end
		if not result == true then
			return false, msg
		end
	end
	return true, "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?

test.lua

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   1
  • Joined:  07/15/20
  • Last Seen:  

I'm not sure what you're trying to achieved though, however if you are planning to create a custom ItemInfo Lua for your server, I believe the answer is hexing your client using WARP or NEMO. The "AddItem" function is obviously not in the ItemInfo lua it is being called from somewhere (I think the Client)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...