Jump to content
  • 0

About NEMO iteminfo.lub per char-server


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

Does someone tried this patch? How can i make it work? Thanks!

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

Did Neo stop developing the patcher? The last update was in May 2016.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

I don't know, but i need help about my concern.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

On 20.02.2017 at 10:51 AM, Limestone said:

Does someone tried this patch? How can i make it work? Thanks!

Code of this patch passes name of selected "char server" as parameter to "main" function in the file iteminfo.lub iteminfo.lua

How do you want to use it?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

5 minutes ago, Functor said:

Code of this patch passes name of selected "char server" as parameter to "main" function in the file iteminfo.lub iteminfo.lua

How do you want to use it?

actually, i don't know how to use it, maybe you can teach me how to make it work? xD

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

In any case you need to modify iteminfo.lub / iteminfo.lua after applying patch to EXE.

I will show you simple example. We will add name of selected "char server" to all identified item's names.

Open iteminfo.lub / iteminfo.lua and change:

main = function()
    for ItemID,DESC in pairs(tbl) do
        result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)

to:

main = function(server_name)
    for ItemID,DESC in pairs(tbl) do
        result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName.." "..server_name, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)

P.S. You can use it to set different item's descriptions for different char servers.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

9 minutes ago, Functor said:

In any case you need to modify iteminfo.lub / iteminfo.lua after applying patch to EXE.

I will show you simple example. We will add name of selected "char server" to all identified item's names.

Open iteminfo.lub / iteminfo.lua and change:


main = function()
    for ItemID,DESC in pairs(tbl) do
        result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)

to:


main = function(server_name)
    for ItemID,DESC in pairs(tbl) do
        result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName.." "..server_name, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)

P.S. You can use it to set different item's descriptions for different char servers.

About the item description, how can i make it different from other char servers?

Edited by Limestone
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

Open iteminfo.lub / iteminfo.lua and after:

		identifiedDescriptionName = {
			"An orange root that is supposedly good for your vision. Despite the Beta Carotene, kids don't care much for it.",
			"^000088Recovers a small amount of HP^000000.",
			"^ffffff_^000000",
			"Weight :^777777 2^000000",
		},

add:

		identifiedDescriptionName2 = {
			"Second version of description for Carrot",
		},

change:

        for k,v in pairs(DESC.identifiedDescriptionName) do
            result, msg = AddItemIdentifiedDesc(ItemID, v)
            if not result then
                return false, msg
            end
        end

to:

	if server_name ~= "rAthena" and DESC.identifiedDescriptionName2 ~= nill then
            for k,v in pairs(DESC.identifiedDescriptionName2) do
                result, msg = AddItemIdentifiedDesc(ItemID, v)
                if not result then
                    return false, msg
                end
            end
	else
            for k,v in pairs(DESC.identifiedDescriptionName) do
                result, msg = AddItemIdentifiedDesc(ItemID, v)
                if not result then
                    return false, msg
                end
            end
	end

If selected server is not "rAthena" and item has second version of description - we will see it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

46 minutes ago, Functor said:

Open iteminfo.lub / iteminfo.lua and after:


		identifiedDescriptionName = {
			"An orange root that is supposedly good for your vision. Despite the Beta Carotene, kids don't care much for it.",
			"^000088Recovers a small amount of HP^000000.",
			"^ffffff_^000000",
			"Weight :^777777 2^000000",
		},

add:


		identifiedDescriptionName2 = {
			"Second version of description for Carrot",
		},

change:


        for k,v in pairs(DESC.identifiedDescriptionName) do
            result, msg = AddItemIdentifiedDesc(ItemID, v)
            if not result then
                return false, msg
            end
        end

to:


	if server_name ~= "rAthena" and DESC.identifiedDescriptionName2 ~= nill then
            for k,v in pairs(DESC.identifiedDescriptionName2) do
                result, msg = AddItemIdentifiedDesc(ItemID, v)
                if not result then
                    return false, msg
                end
            end
	else
            for k,v in pairs(DESC.identifiedDescriptionName) do
                result, msg = AddItemIdentifiedDesc(ItemID, v)
                if not result then
                    return false, msg
                end
            end
	end

If selected server is not "rAthena" and item has second version of description - we will see it.

I got a error

"System/ItemInfo.lua:116484: unexpected symbol near '='"

this is the line that the error indicates: "main = function(server_name)"

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

You should upload original and modified files to the file hosting and show a link.

P.S. It is better to not quote big messages. ;)

Edited by Functor
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...