Limestone Posted February 20, 2017 Posted February 20, 2017 Does someone tried this patch? How can i make it work? Thanks! Quote
0 Kakaroto Posted February 20, 2017 Posted February 20, 2017 Did Neo stop developing the patcher? The last update was in May 2016. Quote
0 Limestone Posted February 21, 2017 Author Posted February 21, 2017 I don't know, but i need help about my concern. Quote
0 Functor Posted February 22, 2017 Posted February 22, 2017 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? Quote
0 Limestone Posted February 22, 2017 Author Posted February 22, 2017 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 Quote
0 Functor Posted February 22, 2017 Posted February 22, 2017 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. Quote
0 Limestone Posted February 22, 2017 Author Posted February 22, 2017 (edited) 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 February 22, 2017 by Limestone Quote
0 Functor Posted February 22, 2017 Posted February 22, 2017 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. Quote
0 Limestone Posted February 22, 2017 Author Posted February 22, 2017 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)" Quote
0 Functor Posted February 22, 2017 Posted February 22, 2017 (edited) 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 February 22, 2017 by Functor Quote
Question
Limestone
Does someone tried this patch? How can i make it work? Thanks!
9 answers 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.