Jump to content
  • 0

iteminfo.lua


Super Arki

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  30
  • Reputation:   0
  • Joined:  10/25/15
  • Last Seen:  

Hi Guys! Im just going to ask about iteminfo.lua

 

Do i need to manually add

 

[<item id>] = {
unidentifiedDisplayName = <item name to show when not magnified>,
unidentifiedResourceName = <file name prefix used for all the images and drop sprite when not magnified>,
unidentifiedDescriptionName = { <comma separated list of strings>,<to get multiple lines>,<in item description> },
identifiedDisplayName = <item name to show when magnified>,
identifiedResourceName = <file name prefix used for all the images and drop sprite when magnified>,
identifiedDescriptionName = { <same format as unidentifiedDescriptionName but for magnified items> },
slotCount = <number of slots>,
ClassNum = <View ID - yes the same one that was there item_db>
},

 

Of my custom item?

 

Thank you!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  354
  • Reputation:   110
  • Joined:  01/30/13
  • Last Seen:  

Open you system/iteminfo.lua (if you don't have one, just download him here in rathena).

 

Add in last line of the file (to make more easy to found, or you can add following the item id order)

[<item id>] = {
unidentifiedDisplayName = <item name to show when not magnified>,
unidentifiedResourceName = <file name prefix used for all the images and drop sprite when not magnified>,
unidentifiedDescriptionName = { <comma separated list of strings>,<to get multiple lines>,<in item description> },
identifiedDisplayName = <item name to show when magnified>,
identifiedResourceName = <file name prefix used for all the images and drop sprite when magnified>,
identifiedDescriptionName = { <same format as unidentifiedDescriptionName but for magnified items> },
slotCount = <number of slots>,
ClassNum = <View ID - yes the same one that was there item_db>
},

 

Example:

    [20302] = {
        unidentifiedDisplayName = "Hat",
        unidentifiedResourceName = "ĸ",
        unidentifiedDescriptionName = {
            "Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
        },
        identifiedDisplayName = "Costume Beelzebub Crown",
        identifiedResourceName = "Cº£¸£Á¦ºêºêÀÇ¿Õ°ü",
        identifiedDescriptionName = {
            "A crown of MVP Beelzebub from nameless island. Its give noble atmosphere.",
            "Class: ^777777Costume^000000",
            "Defense: ^7777770^000000",
            "Location: ^777777Upper^000000",
            "Weight: ^7777770^000000",
            "Required Level: ^7777771^000000",
            "Jobs: ^777777All^000000"
        },
        slotCount = 0,
        ClassNum = 1343
    },

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  30
  • Reputation:   0
  • Joined:  10/25/15
  • Last Seen:  

So i really need to script it all?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  354
  • Reputation:   110
  • Joined:  01/30/13
  • Last Seen:  

You really want a automatic put-in-file, This is not "script" you just adding the item visual information, name, id, sprite, type, slot and description

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Well you could say it's the files in data/ like id2numdesctable and in one file, converting those is a pain in the a** if you have too many items.

Regards,

Chris

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