Jump to content
  • 0

Iteminfo.lua Edit Problem


cheewei30

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  01/12/16
  • Last Seen:  

Hello guys. i have another problem today.. how do i actually edit iteminfo.lua?

 

before this i am using old client 2012 and add custom item via idnum2itemdesctable,idnum2itemdisplaynametable and idnum2itemresnametable.

 

Now i am using 20130807 client and it use iteminfo.lua instead to manage item.

 

After i try to add something in the iteminfo.lua. it's apear error and item in game become X or apple

 

Edit Iteminfo.lua

post-36684-0-46414200-1454656146_thumb.png

 

After click client Error 1

post-36684-0-50005200-1454656154_thumb.png

 

After click client Error 2

post-36684-0-65177800-1454656162_thumb.png

 

In game Item Error

post-36684-0-64771500-1454656171_thumb.png

 

Everything go smooth before i edit the iteminfo,lua in system folder and no error.

 

Here is the actual problem i am trying to fix.. the custom item 30002, slotable/equip/image but just it's show apple in inventory or the time we drop it.

post-36684-0-77440900-1454656475_thumb.png

 

 

Can anyone please guide  me how to fix this problem . Or i am using the Wrong method to add Custom Item via Iteminfo.lua 

 

Hope people who know please tech me how to do it.. thanks a lot.

Edited by cheewei30
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

I believe that you missed to add curleys at the last part of the code.

 

Base on the image you provided, you should do it like this.

	[30002] = {
		unidentifiedDisplayName = "",
		unidentifiedResourceName = "",
		unidentifiedDescriptionName = {
		},
		identifiedDisplayName = "",
		identifiedResourceName = "",
		identifiedDescriptionName = {
		},
		slotCount = 0,
		ClassNum = 0
	},
}

function itemAdder(curTable, refTable)
	for ItemID,DESC in pairs(curTable) do
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  01/12/16
  • Last Seen:  

Thanks a lot bro . the problem solve... 

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...